Esempio n. 1
0
        public static LW_Collider Create(ColliderType colliderType = ColliderType.Polygon)
        {
            LW_Collider instance = CreateInstance <LW_Collider>();

            instance.Set(colliderType);
            return(instance);
        }
Esempio n. 2
0
        internal override void CopyPropertiesFrom(LW_Element element)
        {
            LW_Collider collider = element as LW_Collider;

            if (collider != null)
            {
                m_ColliderType = collider.m_ColliderType;
            }
            base.CopyPropertiesFrom(element);
        }