Ejemplo n.º 1
0
 public void ChangeOffPlay(OffPlay offPlay)//called from UI
 {
     if (!gameManager.isHiked)
     {
         gameManager.ChangeOffPlay(offPlay);
         currentOffPlay = offPlay;
     }
 }
Ejemplo n.º 2
0
 public void ChangeOffPlay(OffPlay offPlay)
 {
     currentOffPlay = Instantiate(offPlay, transform);
     if (currentOffPlay.isPass)
     {
         PassPlay();
         offPlayChange?.Invoke(currentOffPlay);
     }
     else
     {
         RunPlay();
         offPlayChange?.Invoke(currentOffPlay);
     }
 }