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
27 lines
757 B
C#
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;
|
|
}
|