|
Post by Admin on Sept 8, 2016 20:50:13 GMT
Search for the function RemoveComponents and replace it by :
#region Modified by DK protected void RemoveComponents() { if (_capsuleCollider != null) Destroy(_capsuleCollider); if (_rigidbody != null) Destroy(_rigidbody); if (animator != null) Destroy(animator); var comps = GetComponents<MonoBehaviour>(); foreach (Component comp in comps) { if ( comp.GetType() != typeof(UMA.UMAData) ) Destroy(comp);
} } #endregion Modified by DK
|
|