Skip to content

Instantly share code, notes, and snippets.

@mkoutroumpas
Created December 21, 2019 10:46
Show Gist options
  • Save mkoutroumpas/bb9c10d9e31b41a14257a108a28fb491 to your computer and use it in GitHub Desktop.
Save mkoutroumpas/bb9c10d9e31b41a14257a108a28fb491 to your computer and use it in GitHub Desktop.
Part of StatusContent.cs .
public void OnStartPlayerAnimation(bool animate)
{
if (!animate || Player == null)
return;
Animator animator = Player.GetComponent<Animator>();
animator.SetTrigger("DriverStrike"); //-> This works if an Idle animation is present.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment