Пример #1
0
        void OnTriggerExit(Collider other)
        {
            Dropper dropper = other.GetComponent <Dropper>();

            if (dropper)
            {
                dropper.inBeaker = false;
            }
        }
Пример #2
0
        void OnTriggerEnter(Collider other)
        {
            Dropper dropper = other.GetComponent <Dropper>();

            if (dropper)
            {
                dropper.inBeaker      = true;
                dropper.beakerWaterGo = transform.Find("water").gameObject;
            }
        }
Пример #3
0
        void OnTriggerExit(Collider other)
        {
            Dropper dropper = other.GetComponent <Dropper>();

            if (dropper)
            {
                //Debug.Log("exit " + dropper.name);
                dropper.inTube = false;
            }
        }
Пример #4
0
        void OnTriggerEnter(Collider other)
        {
            Dropper dropper = other.GetComponent <Dropper>();

            if (dropper)
            {
                //Debug.Log("enter " + dropper.name);
                dropper.inTube      = true;
                dropper.tubeWaterGo = gameObject;
            }
        }