private void Start() { pauseMod = false; //Become invoker EventsManager.AddPauseCanceledInvoker(pauseCanceled); //Become listener EventsManager.AddPauseCanceledListener(PauseCanceled); }
private void Start() { //Save current timeScale savedTimeScale = Time.timeScale; //And stop time Time.timeScale = 0; //Become invoker EventsManager.AddPauseCanceledInvoker(pauseCanceled); //Become listener EventsManager.AddPauseCanceledListener(PauseCanceled); }