Exemplo n.º 1
0
 FrameSyncUpdateSimulator createFrameSyncUpdateSimulator(FrameSync frameSync)
 {
     if (_frameSyncUpdateSimulator == null)
     {
         _frameSyncUpdateSimulator = new FrameSyncUpdateSimulator();
     }
     _frameSyncUpdateSimulator.init(frameSync);
     return(_frameSyncUpdateSimulator);
 }
Exemplo n.º 2
0
    void onFBGameEnter()
    {
        FrameSyncUpdateSimulator simulator = createFrameSyncUpdateSimulator(Game.instance.fbGame.frameSync);

        Game.instance.fbGame.frameSyncUpdater = simulator;
        simulator.start();

        RealTimeRAProcessCenter.instance.start();
    }
Exemplo n.º 3
0
    void onFBGameOver()
    {
        Profiler.instance.stopPing();

        //??保存录像
        //RealTimeRAProcessCenter.instance.saveReplay();

        //创建帧同步更新模拟器
        FrameSyncUpdateSimulator simulator = createFrameSyncUpdateSimulator(Game.instance.fbGame.frameSync);

        Game.instance.fbGame.frameSyncUpdater = simulator;

        simulator.start();
    }