Esempio n. 1
0
 public void ActivateAvailablePowerTriggers(PowerTrigger powerTrigger)
 {
     foreach (var heroManagerActivePowerCard in _gameWorldManager.HeroManager.ActivePowerCards)
     {
         if (heroManagerActivePowerCard.PowerTrigger == powerTrigger)
         {
             if (heroManagerActivePowerCard.ActivateAction())
             {
                 _gameWorldManager.EventManager.PowerActivated(heroManagerActivePowerCard);
             }
         }
     }
 }
Esempio n. 2
0
    public void ChoosePower()
    {
        power = null;
        GameObject player = GameObject.FindGameObjectWithTag("Player");

        Bash bashComponent = player.GetComponent <Bash> ();

        if (bashComponent != null)
        {
            power         = bashComponent.StartBash;
            powerCooldown = bashComponent.cooldown;
        }
    }
Esempio n. 3
0
 public static void SetPowerTime(this PowerTrigger obj, float value)
 {
     fi_PowerTrigger_powerTime.SetValue(obj, value);
 }
Esempio n. 4
0
 public static float GetPowerTime(this PowerTrigger obj)
 {
     return((float)fi_PowerTrigger_powerTime.GetValue(obj));
 }
Esempio n. 5
0
 public static void SetDelayStartTime(this PowerTrigger obj, float value)
 {
     fi_PowerTrigger_delayStartTime.SetValue(obj, value);
 }
Esempio n. 6
0
 public static float GetDelayStartTime(this PowerTrigger obj)
 {
     return((float)fi_PowerTrigger_delayStartTime.GetValue(obj));
 }
Esempio n. 7
0
 public static void SetIsActive(this PowerTrigger obj, bool value)
 {
     fi_PowerTrigger_isActive.SetValue(obj, value);
 }
Esempio n. 8
0
 public static bool GetIsActive(this PowerTrigger obj)
 {
     return((bool)fi_PowerTrigger_isActive.GetValue(obj));
 }
Esempio n. 9
0
 public static void SetIsTriggered(this PowerTrigger obj, bool value)
 {
     fi_PowerTrigger_isTriggered.SetValue(obj, value);
 }
Esempio n. 10
0
 public static bool GetIsTriggered(this PowerTrigger obj)
 {
     return((bool)fi_PowerTrigger_isTriggered.GetValue(obj));
 }