void Start()
 {
     this ["20"].SetValue = "1";
     if (Provider != null)
     {
         //Makes sure it connects with the dispenser properly
         ChemistryDispenser = Provider.GetComponentInChildren <ChemistryDispenser> ();
         Updateall();
     }
 }
Example #2
0
 void Start()
 {
     this ["20"].SetValue = "1";
     if (Provider != null)
     {
         //Makes sure it connects with the dispenser properly
         ChemistryDispenser = Provider.GetComponentInChildren <ChemistryDispenser> ();
         //Subscribe to change event from ChemistryDispenser.cs
         ChemistryDispenser.changeEvent += UpdateAll;
         UpdateAll();
     }
 }
Example #3
0
 private void Start()
 {
     ((NetUIElement <string>) this["20"]).SetValueServer("1");
     if (Provider != null)
     {
         // Makes sure it connects with the dispenser properly
         ChemistryDispenser = Provider.GetComponentInChildren <ChemistryDispenser>();
         // Subscribe to change event from ChemistryDispenser.cs
         ChemistryDispenser.changeEvent += UpdateAll;
         UpdateAll();
     }
 }