Example #1
0
        public void RemoveModel(string modelInfoName)
        {
            L2DModel model = null;

            if (!_models.TryGetValue(modelInfoName, out model))
            {
                Debug.LogError("[ModelManager.RemoveModel.CannotFindModel]" + modelInfoName);
                return;
            }

            RemoveFromSlot(modelInfoName);
            _models.Remove(modelInfoName);
            model.OnRemove();
        }