void Start() { itemsToInject.Add(config); itemsToInject.Add(new GameData()); OnGamePreStartEvent?.Invoke(); OnGameStartEvent?.Invoke(); }
public void StartGame() { GameStarted = true; OnGameStartEvent?.Invoke(); IsFade = false; CurrentScore = 0; MainMenu.gameObject.SetActive(false); GameOver.gameObject.SetActive(false); Counter.gameObject.SetActive(true); }
void HandleGameStart(OnGameStartEvent e) { _anim.SetTrigger("Pause"); }