예제 #1
0
 public override void OnGraphPaused()
 {
     if (currentInstance != null)
     {
         currentInstance.Pause();
     }
 }
 protected override void OnPause()
 {
     if (currentInstance != null && currentInstance.isRunning)
     {
         currentInstance.Pause();
     }
 }
예제 #3
0
        //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();
            }
        }