Ejemplo n.º 1
0
 void AddOrRemoveModule(bool add, AttachableModule module)
 {
     if (add)
     {
         entityDispenser.EntityObjectInCreation
             .SelectedModules.Add(module);
     }
     else
     {
         entityDispenser.EntityObjectInCreation
             .SelectedModules.Remove(module);
     }
 }
Ejemplo n.º 2
0
 public void InitializeToggle(AttachableModule module)
 {
     image.color            = module.ColorForUI;
     moduleDescription.text = module.name;
 }