Exemplo n.º 1
0
        public void OnTriggerExit(Collider other)
        {
            SampleContainer container = other.GetComponent <SampleContainer>();

            if (container && container.Sample)
            {
                screen.text = text;
            }
        }
Exemplo n.º 2
0
        public void OnTriggerEnter(Collider other)
        {
            SampleContainer container = other.GetComponent <SampleContainer>();

            if (container && container.Sample)
            {
                screen.text = container.Sample.Description;
            }
        }