Пример #1
0
 public void PlaySFX(EAnimSFXType animSFXType)
 {
     m_AudioManager.PlayAnimSFX(m_PlayerInfoComponent.GetPlayerIndex(), animSFXType);
 }
Пример #2
0
    public void StopAnimSFX(int playerIndex, EAnimSFXType animSFXType)
    {
        AudioSource sourceToPlay = (playerIndex == 0) ? m_Player1AnimSFXAudioSources[animSFXType] : m_Player2AnimSFXAudioSources[animSFXType];

        sourceToPlay.Stop();
    }
Пример #3
0
    public AnimSFX(EAnimSFXType type)
    {
#if UNITY_EDITOR
        m_Name = type.ToString();
#endif
    }