Example #1
0
    public void destory()
    {
        frameSync.removeLogicUpdator(this);
        frameSync = null;

        LogicEvent.remove(this);

        destroyWorld();

        blueScore = 0;
        redScore  = 0;
        curState  = null;

        onFBGameDestroyed();
    }
Example #2
0
    void OnDestroy()
    {
        LogicEvent.remove(this);

#if FRAME_RECORDING
        FrameRecording.terminate();
#endif

#if !SCENEEDITOR_TOOL
        LuaProxy.terminate();
#endif

        SceneViews.terminate();

        RealTimeRAProcessCenter.terminate();

        Profiler.terminate();

        Game.terminate();

        Debuger.Close();
    }
Example #3
0
 public override void onExit()
 {
     base.onExit();
     LogicEvent.remove(this);
 }
Example #4
0
 void OnDestroy()
 {
     LogicEvent.remove(this);
 }
Example #5
0
 public override void clear()
 {
     LogicEvent.remove(this);
 }
Example #6
0
 public virtual void exit()
 {
     LogicEvent.remove(this);
     lookAtTarget  = null;
     useLerpLookAt = true;
 }