public void OnWinGame(int playerHealthPoint) { WinGameEventArgs winGame = new WinGameEventArgs { HealthPoint = playerHealthPoint }; WinGame?.Invoke(this, winGame); }
public void Win() { WinGame.Invoke(); if (Input.GetKeyDown(KeyCode.Space)) { StartCoroutine(ChangeToMenu()); } }
public static void OnWinGame(int winCount, int coinRewardCount) => WinGame?.Invoke(winCount, coinRewardCount);
private void OnWinGame(EventArgs e) => WinGame?.Invoke(this, e);