Skip to content

Commit

Permalink
chore: remove zombie code
Browse files Browse the repository at this point in the history
  • Loading branch information
mifiamigahna committed Nov 28, 2022
1 parent 9eabfda commit 21201a7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ namespace TanksOnAPlain.Unity.Components.Pooling
{
public class PoolComponent : SerializedMonoBehaviour
{
// [OdinSerialize]
// PoolAsset PoolAsset { get; set; }

[OdinSerialize]
List<Pool> Pools { get; set; } = new();

Expand Down

0 comments on commit 21201a7

Please sign in to comment.