Example #1
0
        protected override void UpdateCollider()
        {
            if (!t.tCollider)
            {
                t.tCollider = t.gameObject.AddComponent<SphereCollider>();
            }

            st = t as SphereTrigger;

            SphereCollider collider = t.tCollider as SphereCollider;
            if (collider)
            {
                collider.radius = st.radius;
            }
        }
Example #2
0
        protected override void UpdateCollider()
        {
            if (!t.tCollider)
            {
                t.tCollider = t.gameObject.AddComponent <SphereCollider>();
            }

            st = t as SphereTrigger;

            SphereCollider collider = t.tCollider as SphereCollider;

            if (collider)
            {
                collider.radius = st.radius;
            }
        }