void Update() { if (!Player.isPlaying) { if (CallBack != null) { CallBack.Invoke(); } CallBack = null; Canvas.RestoreDefault(); } }
// Clean up when confirm button is clicked public void EventWindowCleanup() { Canvas.RestoreDefault(); ConfirmButton.onClick.RemoveAllListeners(); }