hi, this is my code for making the hotdog hit the enemyBear to make it disappear.
I can get the shooter to work, but it doesn’t work when the object hits the enemyBear.
using UnityEngine;
using System.Collections;
public class HotdogCollision : MonoBehaviour {
void OnTriggerEnter(Collider other)
{
if (other.gameObject.tag == "enemyBear")
{
Debug.Log (other.gameObject.name);
Destroy(other.gameObject,3f);
}
}
}