protected override void OnStarted() { NetChannel.AddRemoteEvent("Client_GamemodeInfo", R_GamemodeInfo); NetChannel.AddRemoteEvent("Client_UpdateScores", R_UpdateScores); objectComponent.AddInstantiationEvent("Client_CreateCommandPost", I_CreateCommandPost); base.OnStarted(); }
protected override void OnStarted() { NetChannel.AddRemoteEvent("Client_GamemodeInfo", R_GamemodeInfo); NetChannel.AddRemoteEvent("Client_UpdateScores", R_UpdateScores); NetChannel.AddRemoteEvent("Client_IntelPickedUp", R_IntelPickedUp); NetChannel.AddRemoteEvent("Client_IntelDropped", R_IntelDropped); NetChannel.AddRemoteEvent("Client_IntelCaptured", R_IntelCaptured); NetChannel.AddRemoteEvent("Client_IntelReturned", R_IntelReturned); objectComponent.AddInstantiationEvent("Client_CreateIntel", I_CreateIntel); objectComponent.AddInstantiationEvent("Client_CreateCommandPost", I_CreateCommandPost); AudioBuffer intelAudioBuffer = AssetManager.LoadSound("UI/intel.wav"); if (intelAudioBuffer != null) { intelAudioSource = new AudioSource(intelAudioBuffer); intelAudioSource.IsSourceRelative = true; intelAudioSource.Gain = 0.4f; } base.OnStarted(); }