Hello there,
after hours of trying and forum searching I’ve literally no idea what’s going wrong here.
So I’ve got this trigger object (is trigger is checked), a wall and when the player goes through the trigger it destroys the wall and the object itself. But nothing happens when I jump through the trigger.
This is the script on the trigger object:
public class WallTrigger : MonoBehaviour
{
public GameObject Wall;
void OnTriggerEnter(Collider other)
{
if (other.gameObject.tag == "Player")
{
Destroy(Wall);
Destroy(gameObject);
}
}
}
