Пример #1
0
    IEnumerator PushCor()
    {
        while (true)
        {
            yield return(new WaitForSeconds(breakingTime));

            if (pushedWall != null && inRun)
            {
                pushedWall.Break();
                FatnessModify(-1);
            }
        }
    }
 public void Tick()
 {
     if (!gameManager.IsPlaying && Input.GetButtonDown("Submit"))
     {
         gameManager.StartGame();
     }
     if (gameManager.IsPlaying && Input.GetButtonDown("Touch"))
     {
         leaks.CompleteTouch();
     }
     if (gameManager.IsPlaying && Input.GetButtonDown("Break"))
     {
         wall.Break();
     }
 }