public virtual void RemoveModelView(string key) { if (key == null) { return; } if (ModelViewMap.ContainsKey(key)) { ModelViewMap.Remove(key); } }
public virtual void RegisterModelView(string key, MonoBehaviourModelView monoBehaviourModelView) { if (!ModelViewMap.ContainsKey(key)) { ModelViewMap.Add(key, monoBehaviourModelView); } else { UnityEngine.Debug.LogErrorFormat("Model view <i>{0}</i> already exists", key); } }