Example #1
0
 public void PlayCharacterSE(string characterName, 영웅상태 state)
 {
     try
     {
         if (state == 영웅상태.게임시작_아군)
         {
             PlaySE(characterSound[characterName].battleStart_Player);
         }
         else if (state == 영웅상태.게임시작_적군)
         {
             PlaySE(characterSound[characterName].battleStart_Enemy);
         }
         else if (state == 영웅상태.공격시)
         {
             PlaySE(characterSound[characterName].attack);
         }
         else if (state == 영웅상태.덱이없다)
         {
             PlaySE(characterSound[characterName].deckEmpty);
         }
         else if (state == 영웅상태.덱이적다)
         {
             PlaySE(characterSound[characterName].deckLittle);
         }
         else if (state == 영웅상태.죽을시)
         {
             PlaySE(characterSound[characterName].death);
         }
     }
     catch { }
 }
Example #2
0
    private IEnumerator PlayHeroSound(float waitTime, string name, 영웅상태 state)
    {
        yield return(new WaitForSeconds(waitTime));

        SoundManager.instance.PlayCharacterSE(name, state);
    }