Ejemplo n.º 1
0
 void initialOrder()
 {
     foreach (var a in _combatHandler.GetAbilities())
     {
         if (a.GetType() == typeof(AbilityBlock))
         {
             if (a.GetStatus() == ABILITY_STATUS.AVAILABLE)
             {
                 a.Activate();
             }
         }
     }
 }
Ejemplo n.º 2
0
    void attack()
    {
        foreach (var a in _ch.GetAbilities())
        {
//			print ("abil stat : " + a.GetStatus ().ToString ());
            if (a.GetStatus() == ABILITY_STATUS.AVAILABLE)
            {
                a.Activate();                 //use ability
                coolDown += 2f;
                return;
            }
        }
    }
Ejemplo n.º 3
0
    void initialOrder()
    {
        foreach (var a in _combatHandler.GetAbilities())
        {
            if (a is AbilityCoopRide)
            {
//				print ("Ability found");
                if (a.GetStatus() == ABILITY_STATUS.AVAILABLE)
                {
                    a.Activate();
                }
//				else
//					print ("not avilable : " + a.GetStatus ().ToString ());
            }
        }
    }