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