public void Activate(PowerEventData on) { if (on.active) { currentTargetPosition = position2; } else { currentTargetPosition = position1; } }
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; }
void ToggleText(PowerEventData active) { ToggleText(active.active); }
public void Activate(PowerEventData powerOn) { Activate(powerOn.active); }