Created
November 4, 2022 10:39
-
-
Save daniele-quero/ffd2a303ea8abb7c858fe59de8b39ab9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 int GetCurrentStateId() | |
{ | |
return _animator.GetInteger("stateId"); | |
} | |
public void Play(int id) | |
{ | |
_animator.SetInteger("stateId", id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment