You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/Source/Scripts/SO/Levels/LevelSO.cs

27 lines
837 B
C#

3 months ago
using UnityEngine;
using static D2D.Utilities.CommonGameplayFacade;
[CreateAssetMenu(menuName = "Game/Level")]
public class LevelSO : ScriptableObject
{
[SerializeField] private Wave[] waves;
[SerializeField] private float totalDuration = 300f;
[SerializeField] private float baseXPToLevelUp = 100f;
[SerializeField] private float stepXPOnLevelUp = 50f;
public Wave[] Waves => waves;
public float TotalDuration => totalDuration * (1 + _db.PassedLevels.Value / 10f);
public float BaseXPToLevelUp => baseXPToLevelUp;
public float StepXPOnLevelUp => stepXPOnLevelUp;
public const int LevelUps = 50;
/*public float LevelXp
{
get
{
var result = BaseXPToLevelUp * multiplier + (i * _levelSO.StepXPOnLevelUp * multiplier)
return result;
}
}*/
}