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

21 lines
470 B
C#
Raw Normal View History

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