public override void OnBehaviourInitialize() { base.OnBehaviourInitialize(); GameNetwork.AddNetworkHandler((IUdpNetworkHandler)this); }
public override void AfterStart() { GameNetwork.AddNetworkHandler((IUdpNetworkHandler)this); this.AddRemoveMessageHandlers(GameNetwork.NetworkMessageHandlerRegisterer.RegisterMode.Add); this._gameModeClient = Mission.Current.GetMissionBehaviour <MissionMultiplayerGameModeBaseClient>(); }
protected override void OnInitialize() { base.OnInitialize(); this.StartMultiplayer(); GameNetwork.AddNetworkHandler((IUdpNetworkHandler)this); }