So I want my character’s abilities to trigger animations on separate game objects. What I’ve tried doesn’t work and even if it did, it feels like an awfully clunky way of doing it. Suggestions would be super appreciated <3
What I’ve tried so far is the following (pseudocode):
public GameObject pFeedback;
private Animator pAnimator;
Start () {
pAnimator = pFeedback.GetComponent();
}
Update ()
{
pAnimator.SetTrigger(“Trigger”);
}