public static void PlayOneShot(string eventPath, Action <FmodEvent> init) { var ev = new FmodEvent(eventPath); init(ev); ev.Start().Release(); }
private void Awake() { Events = new FmodEvent[EventPaths.Length]; for (int i = 0; i < Events.Length; i++) { Events[i] = new FmodEvent(EventPaths[i]).LoadMarkers(); } }