Example #1
0
 public void Activate(PowerEventData on)
 {
     if (on.active)
     {
         currentTargetPosition = position2;
     }
     else
     {
         currentTargetPosition = position1;
     }
 }
Example #2
0
    public void Activate(PowerEventData on)
    {
        if (Vector2.Distance(transform.position, on.playerPosition) < on.radius)
        {
            stopped = on.active;
        }

        if (stopped)
        {
            _animator.SetTrigger("Freeze");
        }
        else
        {
            _animator.SetTrigger("Unfreeze");
        }
    }
 void PlayFear(PowerEventData data)
 {
     playingEmotion[(int)PlayerPowers.Fear] = data.active;
 }
 void PlayAnger(PowerEventData data)
 {
     playingEmotion[(int)PlayerPowers.Anger] = data.active;
 }
 void PlaySadness(PowerEventData data)
 {
     playingEmotion[(int)PlayerPowers.Sadness] = data.active;
 }
Example #6
0
 void ToggleText(PowerEventData active)
 {
     ToggleText(active.active);
 }
Example #7
0
 public void Activate(PowerEventData powerOn)
 {
     Activate(powerOn.active);
 }