How would i get this to work in c?
function OnTriggerEnter (other : Collider) {
if (other.CompareTag ("Player")) {
Destroy (other.gameObject);
}
}
How would i get this to work in c?
function OnTriggerEnter (other : Collider) {
if (other.CompareTag ("Player")) {
Destroy (other.gameObject);
}
}
void OnTriggerEnter (Collider other)
{
if(other.CompareTag ("Player"))
{
Destroy (other.gameObject);
}
}
Switch scripting reference to C#