Пример #1
0
 public void OnClick()
 {
     if (currentState == MenuState.Pause)
     {
         currentImage.sprite = play;
         currentState        = MenuState.Play;
         gameRoot.Pause();
     }
     else
     {
         currentImage.sprite = pause;
         currentState        = MenuState.Pause;
         gameRoot.Play();
     }
 }