Beispiel #1
0
 public static void PlaySound(string n, GameObject ob, OnEventNotify cb)
 {
     LoadFabric();
     if (FabricLoaded)
         playAudioWithPositionAndEvent(n, ob, cb);
 }
Beispiel #2
0
 private static void playAudioWithPositionAndEvent(string eventName, GameObject ob, OnEventNotify cb)
 {
     //AUDIO: with position
     EventManager.Instance.PostEventNotify(eventName, ob, cb);
 }
Beispiel #3
0
 public static void PlaySound(string n, OnEventNotify cb)
 {
     LoadFabric();
     if (FabricLoaded)
         playAudioAndEvent(n, cb);
 }
Beispiel #4
0
 private static void playAudioAndEvent(string eventName, OnEventNotify cb)
 {
     //AUDIO: without position
     EventManager.Instance.PostEventNotify(eventName, cb);
 }