void Start()
        {
            itemsToInject.Add(config);
            itemsToInject.Add(new GameData());

            OnGamePreStartEvent?.Invoke();
            OnGameStartEvent?.Invoke();
        }
Beispiel #2
0
    public void StartGame()
    {
        GameStarted = true;
        OnGameStartEvent?.Invoke();

        IsFade       = false;
        CurrentScore = 0;

        MainMenu.gameObject.SetActive(false);
        GameOver.gameObject.SetActive(false);
        Counter.gameObject.SetActive(true);
    }
Beispiel #3
0
 void HandleGameStart(OnGameStartEvent e)
 {
     _anim.SetTrigger("Pause");
 }