Пример #1
0
 public void SetFrameRate()
 {
     if (timer < gameRate)
     {
         timer++;
     }
     else
     {
         timer = 0f;
         neighbourScript.IterateEachCell();
     }
 }
Пример #2
0
 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;
     }
 }