Exemplo n.º 1
0
    void OnDestroy()
    {
        Game.terminate();

        RealTimeRAProcessCenter.terminate();

        FrameRecording.terminate();

        SceneViews.terminate();
    }
Exemplo n.º 2
0
    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");
    }