/// <summary> /// /// </summary> /// <param name="sound"></param> /// <param name="position"></param> /// <param name="looped"></param> public void Play(Sounds sound, Vector3 position, bool looped = false) { AudioSource.transform.position = position; AudioClip clip = AudioList.GetSound(sound); StartedPlayingSound?.Invoke(clip.length); AudioSource.PlayOneShot(clip); AudioSource.transform.position = Vector3.zero; }