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; } }
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; } }