//どちらかの引数をNullにすることで、この関数で完結した //と思ったが、スキルの種類が増えたため、現在は各スキルで関数を作っている。 //第1引数:射出型スキル 第2引数:設置型スキル protected void SkillInterface(ThrowSkillBase throwSkill, TokenSkillBase tokenSkill) { playerLocalVariables.Mana -= throwSkill.ManaCost; if (throwSkill == null) { tokenSkill.UseSkill(IP, gameObject); } else { throwSkill.UseSkill(IP, gameObject); } }
protected void Shot(ThrowSkillBase shot) { playerLocalVariables.Mana -= shot.ManaCost; shot.UseSkill(IP, gameObject); }
protected void PierceShot(ThrowSkillBase pierceShot) { playerLocalVariables.Mana -= pierceShot.ManaCost; pierceShot.UseSkill(IP, gameObject); }
protected void Missile(ThrowSkillBase missile) { playerLocalVariables.Mana -= missile.ManaCost; missile.UseSkill(IP, gameObject); }
protected void HeavyBullet(ThrowSkillBase heavyBullet) { playerLocalVariables.Mana -= heavyBullet.ManaCost; heavyBullet.UseSkill(IP, gameObject); }
protected void Grenade(ThrowSkillBase grenade) { playerLocalVariables.Mana -= grenade.ManaCost; grenade.UseSkill(IP, gameObject); }
protected void FlameBullet(ThrowSkillBase flameBullet) { playerLocalVariables.Mana -= flameBullet.ManaCost; flameBullet.UseSkill(IP, gameObject); }
protected void ExplosionBomb(ThrowSkillBase explosionBomb) { playerLocalVariables.Mana -= explosionBomb.ManaCost; explosionBomb.UseSkill(IP, gameObject); }
protected void Drone(ThrowSkillBase drone) { playerLocalVariables.Mana -= drone.ManaCost; drone.UseSkill(IP, gameObject); }
//ここから射出スキル protected void Armor_PiercingAmmunitioin(ThrowSkillBase armor_piercingAmmunitioni) { playerLocalVariables.Mana -= armor_piercingAmmunitioni.ManaCost; armor_piercingAmmunitioni.UseSkill(IP, gameObject); }