Esempio n. 1
0
 public void AttackTwo(Character thrower)
 {
     if (mace.gameObject.activeInHierarchy)
     {
         mace.Swing();
     }
     else if (grenade.gameObject.activeInHierarchy)
     {
         grenade.Throw(thrower);
     }
     else if (bow.gameObject.activeInHierarchy)
     {
         bow.Shoot(thrower);
     }
     else if (boomerang.gameObject.activeInHierarchy)
     {
         boomerang.Throw(thrower);
     }
     else if (spear.gameObject.activeInHierarchy)
     {
         spear.Throw(thrower);
     }
     else if (gun.gameObject.activeInHierarchy)
     {
         gun.Shoot(thrower);
     }
 }
Esempio n. 2
0
 public void AttackTwo(Character thrower)
 {
     if (mace.gameObject.activeInHierarchy)
     {
         mace.Swing();
     }
     else if (grenade.gameObject.activeInHierarchy)
     {
         grenade.Throw(thrower);
     }
     //else if (bow.gameObject.activeInHierarchy)
     //{
     //    bow.Shoot(player);
     //}
     else if (boomerang.gameObject.activeInHierarchy)
     {
         boomerang.Throw(thrower);
     }
 }