コード例 #1
0
 public override void OnRemoveBehaviour()
 {
     if (this._isMultiplayer)
     {
         GameNetwork.AddRemoveMessageHandlers(GameNetwork.NetworkMessageHandlerRegisterer.RegisterMode.Remove);
     }
     GameNetwork.TerminateClientSide();
     this.Mission.Recorder.ClearRecordBuffers();
 }
コード例 #2
0
 public override void OnBehaviourInitialize()
 {
     base.OnBehaviourInitialize();
     if (this._isMultiplayer)
     {
         GameNetwork.AddRemoveMessageHandlers(GameNetwork.NetworkMessageHandlerRegisterer.RegisterMode.Add);
     }
     MBCommon.CurrentGameType = MBCommon.GameType.SingleReplay;
     GameNetwork.InitializeClientSide((string)null, 0, -1, -1);
     this.Mission.Recorder.RestoreRecordFromFile(this.FileName);
 }