Пример #1
0
 void UpdatePlayIcon()
 {
     if (!HasEngineInstance() || _hotSpotStartEvent == null)
     {
         return;
     }
     _hotSpotStartEvent.ShowStopIcon = EngineFmodEvent.IsPlaying();
 }
Пример #2
0
 /// <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();
 }