diff --git a/TanksOnAPlain/Assets/TanksOnAPlain.Unity/Components/Difficulty/DifficultyComponent.cs b/TanksOnAPlain/Assets/TanksOnAPlain.Unity/Components/Difficulty/DifficultyComponent.cs index 32259fa..5827f31 100644 --- a/TanksOnAPlain/Assets/TanksOnAPlain.Unity/Components/Difficulty/DifficultyComponent.cs +++ b/TanksOnAPlain/Assets/TanksOnAPlain.Unity/Components/Difficulty/DifficultyComponent.cs @@ -16,23 +16,9 @@ public class DifficultyComponent : SerializedMonoBehaviour void Update() { - //Difficulty *= 1 + DifficultyAsset.DifficultyScaling / 100 * Time.deltaTime; Difficulty += Time.deltaTime; } - // public float GetScaledValueAtan(float startValue, float endValue, float modifier) - // { - // return startValue + 2 * (endValue - startValue) / Mathf.PI * - // Mathf.Atan(modifier * Difficulty); - // } - // - // public int GetScaledValueAtan(int startValue, int endValue, float modifier) - // { - // Debug.Log($"{startValue} -> {endValue}\n=> {Mathf.RoundToInt(startValue + 2 * (endValue - startValue) / Mathf.PI * Mathf.Atan(modifier * Difficulty))}"); - // return Mathf.RoundToInt(startValue + 2 * (endValue - startValue) / Mathf.PI * - // Mathf.Atan(modifier * Difficulty)); - // } - public int GetScaledValueExp(int startValue, int endValue, int time) { var reverse = startValue > endValue; @@ -60,7 +46,6 @@ public float GetScaledValueExp(float startValue, float endValue, int time) var modifier = Mathf.Pow(time, 2) / (delta); var value = startValue + sign * Mathf.Pow(Difficulty, 2) / modifier; - //Debug.Log($"{time}^2 / {delta} = {modifier}\n{startValue} + {sign} * {Difficulty}^2 / {modifier} = {value}"); return Mathf.Clamp(value, reverse ? endValue : startValue, reverse ? startValue : endValue); diff --git a/TanksOnAPlain/Assets/TanksOnAPlain.Unity/Components/Pooling/PoolComponent.cs b/TanksOnAPlain/Assets/TanksOnAPlain.Unity/Components/Pooling/PoolComponent.cs index 0d0b681..f147569 100644 --- a/TanksOnAPlain/Assets/TanksOnAPlain.Unity/Components/Pooling/PoolComponent.cs +++ b/TanksOnAPlain/Assets/TanksOnAPlain.Unity/Components/Pooling/PoolComponent.cs @@ -12,9 +12,6 @@ namespace TanksOnAPlain.Unity.Components.Pooling { public class PoolComponent : SerializedMonoBehaviour { - // [OdinSerialize] - // PoolAsset PoolAsset { get; set; } - [OdinSerialize] List Pools { get; set; } = new();