enable() private method

private enable ( ) : void
return void
Ejemplo n.º 1
0
 internal void enable(ModelSwitchData data)
 {
     if (!enabled)
     {
         MonoBehaviour.print("ERROR: Attempt to enable a model on a disabled model group.  Model will not be enabled.");
         return;
     }
     foreach (ModelSwitchData d in this.modelData)
     {
         if (d != data)
         {
             d.disable();
         }
     }
     currentEnabledModel = data;
     currentEnabledModel.enable();
     setupNodesForModel(currentEnabledModel);
 }
Ejemplo n.º 2
0
 internal void enable(ModelSwitchData data)
 {
     if (!enabled)
     {
         MonoBehaviour.print("ERROR: Attempt to enable a model on a disabled model group.  Model will not be enabled.");
         return;
     }
     foreach (ModelSwitchData d in this.modelData)
     {
         if (d != data)
         {
             d.disable();
         }
     }
     currentEnabledModel = data;
     currentEnabledModel.enable();
     setupNodesForModel(currentEnabledModel);
 }