public void Respawn(int step) { int newMaxDepth = rootSettings.maxDepth + step; newMaxDepth = Mathf.Min(Mathf.Max(newMaxDepth, absMinimumDrop), absMaximumBoost); rootSettings.maxDepth = newMaxDepth; clearChildren(); rootSettings.spawnFractals(); }
public void Respawn(int step) { int newMaxDepth = rootSettings.maxDepth + step; newMaxDepth = Mathf.Min(Mathf.Max(newMaxDepth, absMinimumDrop), absMaximumBoost); rootSettings.maxDepth = newMaxDepth; clearChildren(); rootSettings.spawnFractals(); }