void UpdatePlayIcon() { if (!HasEngineInstance() || _hotSpotStartEvent == null) { return; } _hotSpotStartEvent.ShowStopIcon = EngineFmodEvent.IsPlaying(); }
/// <summary> /// Start the event in the editor (e.g. hotspot button pressed) /// </summary> public void ToggleStartEvent() { if (!HasEngineInstance()) { return; } if (EngineFmodEvent.IsPlaying()) { EngineFmodEvent.Stop(); } else { // Force the event to start, even if we are not in play mode EngineFmodEvent.Start(true); } UpdatePlayIcon(); }