protected override void Start() { base.Start(); turns = rechargeTurns; readyToAttack = false; sfx = GetComponent <SFXEvent>(); }
public void PlaySfx(SFXEvent sfx) { switch (sfx) { case SFXEvent.Kaching: AudioSource.PlayOneShot(Kaching); break; } }
public void PlaySFX(SFXEvent p_event) { SFXSound sfx = m_sounds.Get(p_event); if (sfx == null) { Debug.Log($"{p_event.Value} wasn't found in registered sounds"); } Play(sfx); }
public void PlaySFX(SFXEvent p_event) { m_soundSystem.PlaySFX(p_event); }
public SFX(SFXEvent p_event) { Event = p_event; }