gather-and-defend/Assets/Scripts/General/GlobalConfigFile.cs
Felix Boucher 0aa3327433 appliquer global config aux différents endroits
PROBLÈME :

la config existait mais n'était pas appliquée nulle part

SOLUTION :

maintenant elle l'est

NOTES :

Elle n'est pas encore appliquée au flash de dégat
2023-08-05 15:55:54 -04:00

27 lines
757 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName = project_name + "/Global Config")]
public class GlobalConfigFile : ScriptableObject
{
public const string project_name = "Gather And Defend";
[Header("Enemies")]
public float enemyBaseDamage = 1;
public float enemyBaseLife = 1;
public Vector2 enemyBaseRange = Vector2.one;
public float enemyBaseAttackSpeed = 1;
public float damageFlashIntensity = 1;
[Header("resources")]
public float baseHarvestDuration = 1;
public float baseHarvestAmount = 1;
public bool useRandomHarvestDuration = false;
public float randomHarvestDurationMinimum = 0;
public float randomHarvestDurationMaximum = 0;
}