Example #1
0
        private void InitializeObjects()
        {
            Transform colliderTr = part.FindModelTransform(collisionName);

            partCollider         = colliderTr.GetComponent <MeshCollider>();
            legacyTextureHandler = new LegacyTextureHandler(part, this);
            InitializeMeshes();
        }
Example #2
0
 private void InitializeObjects()
 {
     // Find or create ColliderHolder and attach to the StretchyTank
     ColliderHolder = gameObject.GetChild(colliderHolder);
     if (ColliderHolder is null)
     {
         ColliderHolder = new GameObject(colliderHolder);
         ColliderHolder.transform.SetParent(gameObject.transform.FindDecendant(partModelName).transform, false);
     }
     legacyTextureHandler = new LegacyTextureHandler(part, this);
     InitializeMeshes();
 }