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); }
public string Desc(EnemySkillList skill) { if (sprites.ContainsKey(skill)) { return(descriptions[skill]); } else { return(descriptions[EnemySkillList.None]); } }
public Sprite Get(EnemySkillList skill) { if (sprites.ContainsKey(skill)) { return(sprites[skill]); } else { return(skill_list[0].sprite); } }