Esempio n. 1
0
    public static EnemySkill GetSkill(EnemySkillList skill)
    {
        switch (skill)
        {
        case EnemySkillList.None:
            break;

        case EnemySkillList.Tantrum:
            return(new Tantrum());

        case EnemySkillList.TantrumLeft:
            return(new TantrumLeft());

        case EnemySkillList.TantrumRight:
            return(new TantrumRight());

        case EnemySkillList.TantrumAll:
            return(new TantrumAll());

        case EnemySkillList.Singing:
            return(new Singing());

        case EnemySkillList.Cheers:
            return(new Cheers());
        }

        return(null);
    }
Esempio n. 2
0
 public string Desc(EnemySkillList skill)
 {
     if (sprites.ContainsKey(skill))
     {
         return(descriptions[skill]);
     }
     else
     {
         return(descriptions[EnemySkillList.None]);
     }
 }
Esempio n. 3
0
 public Sprite Get(EnemySkillList skill)
 {
     if (sprites.ContainsKey(skill))
     {
         return(sprites[skill]);
     }
     else
     {
         return(skill_list[0].sprite);
     }
 }