void OnTriggerExit(Collider stuff) { if(stuff.tag=="People") { close=false; person=null; } if(stuff.tag=="Holder") { CanPut=false; hold=null; } }
void OnTriggerEnter(Collider stuff) { if(stuff.tag=="People") { close=true; person=stuff.GetComponent<People>(); } if(stuff.tag=="Holder") { CanPut=true; hold=stuff.GetComponent<Sparkles>(); } }