예제 #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);
             }
         }
     }
 }
예제 #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;
        }
    }
예제 #3
0
 public static void SetPowerTime(this PowerTrigger obj, float value)
 {
     fi_PowerTrigger_powerTime.SetValue(obj, value);
 }
예제 #4
0
 public static float GetPowerTime(this PowerTrigger obj)
 {
     return((float)fi_PowerTrigger_powerTime.GetValue(obj));
 }
예제 #5
0
 public static void SetDelayStartTime(this PowerTrigger obj, float value)
 {
     fi_PowerTrigger_delayStartTime.SetValue(obj, value);
 }
예제 #6
0
 public static float GetDelayStartTime(this PowerTrigger obj)
 {
     return((float)fi_PowerTrigger_delayStartTime.GetValue(obj));
 }
예제 #7
0
 public static void SetIsActive(this PowerTrigger obj, bool value)
 {
     fi_PowerTrigger_isActive.SetValue(obj, value);
 }
예제 #8
0
 public static bool GetIsActive(this PowerTrigger obj)
 {
     return((bool)fi_PowerTrigger_isActive.GetValue(obj));
 }
예제 #9
0
 public static void SetIsTriggered(this PowerTrigger obj, bool value)
 {
     fi_PowerTrigger_isTriggered.SetValue(obj, value);
 }
예제 #10
0
 public static bool GetIsTriggered(this PowerTrigger obj)
 {
     return((bool)fi_PowerTrigger_isTriggered.GetValue(obj));
 }