public void ActivateAvailablePowerTriggers(PowerTrigger powerTrigger) { foreach (var heroManagerActivePowerCard in _gameWorldManager.HeroManager.ActivePowerCards) { if (heroManagerActivePowerCard.PowerTrigger == powerTrigger) { if (heroManagerActivePowerCard.ActivateAction()) { _gameWorldManager.EventManager.PowerActivated(heroManagerActivePowerCard); } } } }
public void ChoosePower() { power = null; GameObject player = GameObject.FindGameObjectWithTag("Player"); Bash bashComponent = player.GetComponent <Bash> (); if (bashComponent != null) { power = bashComponent.StartBash; powerCooldown = bashComponent.cooldown; } }
public static void SetPowerTime(this PowerTrigger obj, float value) { fi_PowerTrigger_powerTime.SetValue(obj, value); }
public static float GetPowerTime(this PowerTrigger obj) { return((float)fi_PowerTrigger_powerTime.GetValue(obj)); }
public static void SetDelayStartTime(this PowerTrigger obj, float value) { fi_PowerTrigger_delayStartTime.SetValue(obj, value); }
public static float GetDelayStartTime(this PowerTrigger obj) { return((float)fi_PowerTrigger_delayStartTime.GetValue(obj)); }
public static void SetIsActive(this PowerTrigger obj, bool value) { fi_PowerTrigger_isActive.SetValue(obj, value); }
public static bool GetIsActive(this PowerTrigger obj) { return((bool)fi_PowerTrigger_isActive.GetValue(obj)); }
public static void SetIsTriggered(this PowerTrigger obj, bool value) { fi_PowerTrigger_isTriggered.SetValue(obj, value); }
public static bool GetIsTriggered(this PowerTrigger obj) { return((bool)fi_PowerTrigger_isTriggered.GetValue(obj)); }