Advertisement
RealiteeeyyyyTV

Untitled

Dec 29th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class MutantAnim : MonoBehaviour {
  5.  
  6. public Animator anim;
  7.  
  8. public GameObject mutant;
  9.  
  10. public MutantWalk mutWalk;
  11.  
  12. public AIMove aiMove;
  13.  
  14. void Start ()
  15. {
  16.  
  17.  
  18. }
  19.  
  20. void OnTriggerEnter(Collider other)
  21. {
  22. if(other.tag == "Player")
  23. {
  24. mutWalk.isWalking = true;
  25. anim.SetBool ("Walk", true);
  26. Destroy (gameObject);
  27. }
  28. }
  29.  
  30. void Update ()
  31. {
  32. if (mutWalk.isWalking)
  33. {
  34.  
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement