mirror of
https://github.com/ryzij/Cube-Tower-Defense.git
synced 2026-07-14 01:56:57 +00:00
Небольшой фикс
This commit is contained in:
@@ -28,9 +28,6 @@ public class TurretsBuildTimer : MonoBehaviour
|
|||||||
|
|
||||||
private void OnStateChanged(GameManager.GameState newState)
|
private void OnStateChanged(GameManager.GameState newState)
|
||||||
{
|
{
|
||||||
if (newState == GameManager.GameState.BuildingPath)
|
|
||||||
return;
|
|
||||||
|
|
||||||
StopCoroutine(nameof(Timer));
|
StopCoroutine(nameof(Timer));
|
||||||
if (newState == GameManager.GameState.BuildingTurrets)
|
if (newState == GameManager.GameState.BuildingTurrets)
|
||||||
StartCoroutine(nameof(Timer));
|
StartCoroutine(nameof(Timer));
|
||||||
|
|||||||
Reference in New Issue
Block a user