Example #1
0
 //どちらかの引数を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);
     }
 }
Example #2
0
 protected void Shot(ThrowSkillBase shot)
 {
     playerLocalVariables.Mana -= shot.ManaCost;
     shot.UseSkill(IP, gameObject);
 }
Example #3
0
 protected void PierceShot(ThrowSkillBase pierceShot)
 {
     playerLocalVariables.Mana -= pierceShot.ManaCost;
     pierceShot.UseSkill(IP, gameObject);
 }
Example #4
0
 protected void Missile(ThrowSkillBase missile)
 {
     playerLocalVariables.Mana -= missile.ManaCost;
     missile.UseSkill(IP, gameObject);
 }
Example #5
0
 protected void HeavyBullet(ThrowSkillBase heavyBullet)
 {
     playerLocalVariables.Mana -= heavyBullet.ManaCost;
     heavyBullet.UseSkill(IP, gameObject);
 }
Example #6
0
 protected void Grenade(ThrowSkillBase grenade)
 {
     playerLocalVariables.Mana -= grenade.ManaCost;
     grenade.UseSkill(IP, gameObject);
 }
Example #7
0
 protected void FlameBullet(ThrowSkillBase flameBullet)
 {
     playerLocalVariables.Mana -= flameBullet.ManaCost;
     flameBullet.UseSkill(IP, gameObject);
 }
Example #8
0
 protected void ExplosionBomb(ThrowSkillBase explosionBomb)
 {
     playerLocalVariables.Mana -= explosionBomb.ManaCost;
     explosionBomb.UseSkill(IP, gameObject);
 }
Example #9
0
 protected void Drone(ThrowSkillBase drone)
 {
     playerLocalVariables.Mana -= drone.ManaCost;
     drone.UseSkill(IP, gameObject);
 }
Example #10
0
 //ここから射出スキル
 protected void Armor_PiercingAmmunitioin(ThrowSkillBase armor_piercingAmmunitioni)
 {
     playerLocalVariables.Mana -= armor_piercingAmmunitioni.ManaCost;
     armor_piercingAmmunitioni.UseSkill(IP, gameObject);
 }