Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class JUMp2 : StateMachineBehaviour {
  6. public class jump5 : StateMachineBehaviour
  7. {
  8. void OnStateUpdate(Animator animator)
  9. {
  10.  
  11. Debug.Log("StateUpdate OK");
  12. Debug.Log("Animator: " + animator);
  13. if (Input.GetKeyDown(KeyCode.Space))
  14. {
  15. animator.SetTrigger("jump");
  16. Debug.Log("Space!");
  17.  
  18. }
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement