Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class MutantAnim : MonoBehaviour {
- public Animator anim;
- public GameObject mutant;
- public MutantWalk mutWalk;
- public AIMove aiMove;
- void Start ()
- {
- }
- void OnTriggerEnter(Collider other)
- {
- if(other.tag == "Player")
- {
- mutWalk.isWalking = true;
- anim.SetBool ("Walk", true);
- Destroy (gameObject);
- }
- }
- void Update ()
- {
- if (mutWalk.isWalking)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement