private void fire_ModeStarted(ModeTypes type, string title) { if (ModeStarted != null) { try { ModeStarted.Invoke(this, new ModeEventArgs(type, title)); } catch { } } }
static Game() { Events.GameMode.Finished.Subscribe(data => { var eventArgs = new GameModeFinishedEventArgs((Network.NetworkGroup)data.NetworkGroup_); ModeFinished?.Invoke(null, eventArgs); }); Events.GameMode.ModeStarted.Subscribe(data => { ModeStarted?.Invoke(null, System.EventArgs.Empty); }); }
static void ModeStartedHelper() { s_EffectsUnderway = false; ModeStarted?.Invoke(s_IsInPlayMode); }