I am receiving this error:
NullReferenceException: Object reference not set to an instance of an object
triggerZone.OnTriggerEnter (UnityEngine.Collider Fireboys) (at Assets/scripts/triggerZone.cs:23)
However, ‘Fireboys’ is set to ‘badcampfire’, as seen here:
void OnTriggerEnter(Collider Fireboys){
if(Fireboys.gameObject.tag == "Player"){
transform.Find("badcampfire").SendMessage("FireCheck");
}
}
The object, ‘badcampfire’, is named appropriately, as seen here:
So, yeah, I’m at an impasse. What have I done wrong, or, alternatively, what can I do to show off to you guys what I did wrong?