Пример #1
0
 private void DestroyModel()
 {
     if (EquipModel != null)
     {
         EquipModel.DestroyModel();
     }
 }
Пример #2
0
        private void DestroyModel()
        {
            if (Model != null)
            {
                Model.RemoveAllCompent();
                Model.DestroyModel();
            }

            if (EquipModel != null)
            {
                EquipModel.RemoveAllCompent();
                EquipModel.DestroyModel();
            }

            if (effectCoroutine != null)
            {
                StopCoroutine(effectCoroutine);
                effectCoroutine = null;
            }

            if (ModelRoot != null)
            {
                ModelRoot.DestroyFakeCharacter();
            }
        }
Пример #3
0
 private void DestroyModel()
 {
     if (EquipModel != null)
     {
         EquipModel.DestroyModel();
     }
     model = null;
     if (rotateAround != null)
     {
         rotateAround.enabled = true;
         rotateAround.transform.localRotation = initRotate;
     }
 }