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

        LogicEvent.remove(this);

        destroyWorld();

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

        onFBGameDestroyed();
    }
예제 #2
0
파일: Main.cs 프로젝트: CookiRui/script
    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();
    }
예제 #3
0
 public override void onExit()
 {
     base.onExit();
     LogicEvent.remove(this);
 }
예제 #4
0
 void OnDestroy()
 {
     LogicEvent.remove(this);
 }
예제 #5
0
 public override void clear()
 {
     LogicEvent.remove(this);
 }
예제 #6
0
 public virtual void exit()
 {
     LogicEvent.remove(this);
     lookAtTarget  = null;
     useLerpLookAt = true;
 }