IEnumerator SlowMotion() { GlobalController.EnterSlowMotion(); yield return(new WaitForSecondsRealtime(duration)); GlobalController.ExitSlowMotion(); }
override public void ActivateSwitch(bool b) { if (b) { if (duration > 0) { StartCoroutine(SlowMotion()); } else { GlobalController.EnterSlowMotion(); } } else { GlobalController.ExitSlowMotion(); } }
public void EnterSlowMotion() { GlobalController.EnterSlowMotion(); }