Exemplo n.º 1
0
 private void DestroyModel()
 {
     if (EquipModel != null)
     {
         EquipModel.DestroyModel();
     }
 }
Exemplo n.º 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();
            }
        }
Exemplo n.º 3
0
 private void DestroyModel()
 {
     if (EquipModel != null)
     {
         EquipModel.DestroyModel();
     }
     model = null;
     if (rotateAround != null)
     {
         rotateAround.enabled = true;
         rotateAround.transform.localRotation = initRotate;
     }
 }