private void OnDisable()
    {
        Scr_EventManager.StopListening("Update_Scores", UpdateScoreUI);
        Scr_EventManager.StopListening("PowerupUpdate", UpdatePowerupIcons);

        Scr_EventManager.StopListening("Mom_Comes", ShowMomTimer);
        Scr_EventManager.StopListening("Mom_In_Room", ResetMomTimer);
    }
Beispiel #2
0
 private void OnDisable()
 {
     Scr_EventManager.StopListening("Mom_Comes", () => {
         if (m_Input != null)
         {
             m_Input.VibrateIncrease(0.1f, 0.3f, 5.0f);
         }
     });
 }