I\'ve started learning Unity slowly using C# and it\'s been a blast thus far!
I\'ve run into a small problem (I hope it\'s a small problem) and gotten stuck, and have be
OnTriggerEnter requires a parameter (Collider other) or it won't match the signature Unity expects.
private bool triggered = false;
void OnTriggerEnter(Collider other) {
Debug.Log("Triggered");
this.triggered = true;
}
public bool Triggered {
get { return this.triggered; }
}
}
Also, as the documentation states:
Note that trigger events are only sent if one of the colliders also has a rigid body attached.