public void SetFrameRate() { if (timer < gameRate) { timer++; } else { timer = 0f; neighbourScript.IterateEachCell(); } }
public void CheckInput() { if (GameStatus == (int)Gamestatus.start) { timeManagerScript.SetFrameRate(); } else if (GameStatus == (int)Gamestatus.stop) { Time.timeScale = 0; } else if (GameStatus == (int)Gamestatus.next) { neighbourScript.IterateEachCell(); GameStatus = (int)Gamestatus.stop; } }