Example #1
0
 public override void AfterStart()
 {
     this.Mission.MakeDeploymentPlan();
     this._missionScoreboardComponent = this.Mission.GetMissionBehaviour <MissionScoreboardComponent>();
     this._gameMode        = this.Mission.GetMissionBehaviour <MissionMultiplayerGameModeBase>();
     this._timerComponent  = this.Mission.GetMissionBehaviour <MultiplayerTimerComponent>();
     this._roundComponent  = this.Mission.GetMissionBehaviour <IRoundComponent>();
     this._warmupComponent = this.Mission.GetMissionBehaviour <MultiplayerWarmupComponent>();
 }
 public override void OnBehaviourInitialize()
 {
     base.OnBehaviourInitialize();
     this.MissionLobbyComponent  = this.Mission.GetMissionBehaviour <MissionLobbyComponent>();
     this.GameModeBaseClient     = this.Mission.GetMissionBehaviour <MissionMultiplayerGameModeBaseClient>();
     this.NotificationsComponent = this.Mission.GetMissionBehaviour <MultiplayerGameNotificationsComponent>();
     this.RoundController        = this.Mission.GetMissionBehaviour <MultiplayerRoundController>();
     this.WarmupComponent        = this.Mission.GetMissionBehaviour <MultiplayerWarmupComponent>();
     this.TimerComponent         = this.Mission.GetMissionBehaviour <MultiplayerTimerComponent>();
     this.SpawnComponent         = Mission.Current.GetMissionBehaviour <SpawnComponent>();
     this._lastPerkTickTime      = Mission.Current.Time;
 }