Пример #1
0
 public void ChangeOffPlay(OffPlay offPlay)//called from UI
 {
     if (!gameManager.isHiked)
     {
         gameManager.ChangeOffPlay(offPlay);
         currentOffPlay = offPlay;
     }
 }
Пример #2
0
 public void ChangeOffPlay(OffPlay offPlay)
 {
     currentOffPlay = Instantiate(offPlay, transform);
     if (currentOffPlay.isPass)
     {
         PassPlay();
         offPlayChange?.Invoke(currentOffPlay);
     }
     else
     {
         RunPlay();
         offPlayChange?.Invoke(currentOffPlay);
     }
 }