public virtual IEnumerable <ISkill> GetSkills(Champion champion) { SkillBase fighter, ninja, priest, wizard; return(new ISkill[] { fighter = new FighterSkill(champion), ninja = new NinjaSkill(champion), priest = new PriestSkill(champion), wizard = new WizardSkill(champion), new SwingSkill(champion, fighter, GetValueOfDMHexEncoding(descriptor[6][0])), new ThrustSkill(champion, fighter, GetValueOfDMHexEncoding(descriptor[6][1])), new ClubSkill(champion, fighter, GetValueOfDMHexEncoding(descriptor[6][2])), new ParrySkill(champion, fighter, GetValueOfDMHexEncoding(descriptor[6][3])), new FightSkill(champion, ninja, GetValueOfDMHexEncoding(descriptor[6][4])), new StealSkill(champion, ninja, GetValueOfDMHexEncoding(descriptor[6][5])), new ThrowSkill(champion, ninja, GetValueOfDMHexEncoding(descriptor[6][6])), new ShootSkill(champion, ninja, GetValueOfDMHexEncoding(descriptor[6][7])), new IdentifySkill(champion, priest, GetValueOfDMHexEncoding(descriptor[6][8])), new HealSkill(champion, priest, GetValueOfDMHexEncoding(descriptor[6][9])), new InfluenceSkill(champion, priest, GetValueOfDMHexEncoding(descriptor[6][10])), new DeffendSkill(champion, priest, GetValueOfDMHexEncoding(descriptor[6][11])), new FireSkill(champion, wizard, GetValueOfDMHexEncoding(descriptor[6][12])), new AirSkill(champion, wizard, GetValueOfDMHexEncoding(descriptor[6][13])), new EarthSkill(champion, wizard, GetValueOfDMHexEncoding(descriptor[6][14])), new WaterSkill(champion, wizard, GetValueOfDMHexEncoding(descriptor[6][15])), }); }
// Use this for initialization void Start() { _Jumping = false; _Direction = new Vector3(0, 0, 1); _currentSkill = new KatanaStrike(); _rigidbody = GetComponent<Rigidbody>(); _animator = GetComponent<Animator>(); }