Esempio n. 1
0
 // +++ Life Cycle +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void Start()
 {
     Debug.Log("StartCalled");
     NvpEventController.SubscribeToEvent(NvpGameEvents.OnMainStarted, OnMainStarted);
     NvpEventController.SubscribeToEvent(NvpGameEvents.OnGameStarted, OnGameStarted);
     NvpEventController.SubscribeToEvent(NvpGameEvents.OnPlayerOneWins, OnPlayerOneWins);
     NvpEventController.SubscribeToEvent(NvpGameEvents.OnPlayAgain, OnPlayAgain);
 }
Esempio n. 2
0
 // +++ life cycle +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 void Start()
 {
     Debug.Log("Start called");
     NvpEventController.SubscribeToEvent(NvpGameEvents.OnMainStarted, OnMainStarted);
     NvpEventController.SubscribeToEvent(NvpGameEvents.OnGameStarted, OnGameStarted);
     NvpEventController.SubscribeToEvent(NvpGameEvents.OnPlayer1Wins, OnPlayer1Wins);
     NvpEventController.SubscribeToEvent(NvpGameEvents.OnPlayer2Wins, OnPlayer2Wins);
     NvpEventController.SubscribeToEvent(NvpGameEvents.OnResetGame, OnResetGame);
     NvpEventController.SubscribeToEvent(NvpGameEvents.OnExitGame, OnExitGame);
     NvpEventController.SubscribeToEvent(NvpGameEvents.OnOptionGame, OnOptionGame);
     NvpEventController.SubscribeToEvent(NvpGameEvents.OnExitOption, OnExitOption);
 }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     NvpEventController.SubscribeToEvent(NvpGameEvents.OnPauseObjectCheck, OnPauseObjectCheck);
 }