Exemple #1
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();
            }
        }