Beispiel #1
0
 void initialOrder()
 {
     foreach (var a in _combatHandler.GetAbilities())
     {
         if (a.GetType() == typeof(AbilityBlock))
         {
             if (a.GetStatus() == ABILITY_STATUS.AVAILABLE)
             {
                 a.Activate();
             }
         }
     }
 }
Beispiel #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;
            }
        }
    }
    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 ());
            }
        }
    }