void OnTriggerExit(Collider other) { Dropper dropper = other.GetComponent <Dropper>(); if (dropper) { dropper.inBeaker = false; } }
void OnTriggerEnter(Collider other) { Dropper dropper = other.GetComponent <Dropper>(); if (dropper) { dropper.inBeaker = true; dropper.beakerWaterGo = transform.Find("water").gameObject; } }
void OnTriggerExit(Collider other) { Dropper dropper = other.GetComponent <Dropper>(); if (dropper) { //Debug.Log("exit " + dropper.name); dropper.inTube = false; } }
void OnTriggerEnter(Collider other) { Dropper dropper = other.GetComponent <Dropper>(); if (dropper) { //Debug.Log("enter " + dropper.name); dropper.inTube = true; dropper.tubeWaterGo = gameObject; } }