This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
project-undercover/Game 1/Assets/Scripts/Explosion.cs
2017-09-05 17:37:56 -05:00

20 lines
470 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Explosion : MonoBehaviour {
private Animator anim;
// Use this for initialization
void Start () {
anim = GetComponent<Animator>();
}
// Update is called once per frame
void Update () {
Debug.Log(anim.GetCurrentAnimatorStateInfo(0).tagHash);
//if (anim.GetCurrentAnimatorStateInfo(0).tagHash == 0)
// Destroy(gameObject);
}
}