void OnDestroy() { Game.terminate(); RealTimeRAProcessCenter.terminate(); FrameRecording.terminate(); SceneViews.terminate(); }
void Awake() { gameObject.AddComponent <ResourceManager>(); Debuger.SetOutputType(Debuger.OutputType.File); Debuger.SetDebugLevel((int)(Debuger.DebugLevel.Logic)); Game.create(); RealTimeRAProcessCenter.create(); FrameRecording.create(); SceneViews.create(); LogicEvent.add("onFBGameNewed", this, "onFBGameNewed"); LogicEvent.add("onFBGameStart", this, "onFBGameStart"); LogicEvent.add("onFBGameOver", this, "onFBGameOver"); }