Beispiel #1
0
 public override void RegularUpdate()
 {
     if (ETime.FirstUpdateForScreen)
     {
         if (Input.GetKeyDown(KeyCode.G))
         {
             if (state == ReplayHelperState.RECORDING)
             {
                 var r = Replayer.End(null);
                 SaveData.Replays.SaveReplayFrames(saveReplayTo, r !.Value.frames());
                 state = ReplayHelperState.NONE;
             }
             else
             {
                 Replayer.BeginRecording();
                 state = ReplayHelperState.RECORDING;
             }
         }
     }
 }
Beispiel #2
0
 public void RunReplay()
 {
     state = ReplayHelperState.REPLAYING;
     Replayer.BeginReplaying(new Replayer.ReplayerConfig(replayFinishMethod,
                                                         SaveData.Replays.LoadReplayFrames(runReplay)));
 }