Created
December 21, 2019 10:46
-
-
Save mkoutroumpas/bb9c10d9e31b41a14257a108a28fb491 to your computer and use it in GitHub Desktop.
Part of StatusContent.cs .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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