Ejemplo n.º 1
0
 public virtual void RemoveModelView(string key)
 {
     if (key == null)
     {
         return;
     }
     if (ModelViewMap.ContainsKey(key))
     {
         ModelViewMap.Remove(key);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }