I’m building a fps game, but have an issue:
When the Player shoots a bullet, he is killed by his own, 99% guess that it’s hitting the gun, which the player is the parent of,
the script (In Quake Style, if hit by 1 bullet, DEAD)
using UnityEngine;
using System.Collections;
public class DeathScript : MonoBehaviour {
void OnTriggerEnter(Collider obj)
{
if(obj.gameObject.tag == "Bullet")
{
Destroy(gameObject);
}
}
}