Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public GameObject rangeBtn;
- public Animator rangeBtnAnim;
- private void Start()
- {
- if ((rangeBtn != null) && (rangeBtn.GetComponent<Animator>() != null))
- {
- rangeBtnAnim = rangeBtn.GetComponent<Animator>();
- }
- }
- public void PlayAnimation()
- {
- rangeBtnAnim.Play("RangeSelectionButton_Pressed");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement