Beispiel #1
0
 protected override void Start()
 {
     base.Start();
     turns         = rechargeTurns;
     readyToAttack = false;
     sfx           = GetComponent <SFXEvent>();
 }
Beispiel #2
0
 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);
 }
Beispiel #5
0
 public SFX(SFXEvent p_event)
 {
     Event = p_event;
 }