Exemplo n.º 1
0
        public void addModel( IIwModel model )
        {
            if ( model == null )
            {
                Debug.LogError ( "Error in " + this + " Model can't be null." );
                return;
            }

            if ( hasModel ( model.name ) )
            {
                Debug.LogError ( "Error in " + this + " Model '" + model.name + "' already registered." );
                return;
            }

            lock ( _modelList )
            {
                _modelList [model.name] = model;
                model.dispatcher = _dispatcher;
                model.initialize ();
            }
        }
Exemplo n.º 2
0
 public void addModel( IIwModel model )
 {
     System.Diagnostics.Debug.Assert (_modelsMgr == null, "Model Manager not exists!!!");
     _modelsMgr.addModel (model);
 }