if player hit game that tag destroy gameobject cube
1 Answer
1//C#
void OnTriggerEnter(Collider other)
{
if(other.tag == "Player")
{
Destory(this.gameObject);
}
}
Something like that.
if player hit game that tag destroy gameobject cube
//C#
void OnTriggerEnter(Collider other)
{
if(other.tag == "Player")
{
Destory(this.gameObject);
}
}
Something like that.
please write questions with punctuation grammar and sense so that we can understand and answer them for you
– syclamoth