public override void OnGraphPaused() { if (currentInstance != null) { currentInstance.Pause(); } }
protected override void OnPause() { if (currentInstance != null && currentInstance.isRunning) { currentInstance.Pause(); } }
//private bool isRegisted = false; //void RegisterUpdate() //{ // //if(isRegisted) // // return;; // // isRegisted = false; // //MonoManager.current.onUpdate += OnUpdate; // } // void UnRegisterUpdate() // { // //if(!isRegisted) // // return; // //isRegisted = true; // //MonoManager.current.onUpdate += OnUpdate; // } void OnPause() { if (currentInstance != null) { currentInstance.Pause(); //UnRegisterUpdate(); } }