using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Die : MonoBehaviour
{
public GameObject _gameObject;
void Update ()
{
}
void OnTriggerEnter (Collider col)
{
if (col.gameObject.tag == "Weapon")
{
_gameObject.GetComponent<Animator>.SetBool ("isDead", true);
_gameObject.GetComponent<Chase>().enabled = false;
}
}
}