void Start() { this ["20"].SetValue = "1"; if (Provider != null) { //Makes sure it connects with the dispenser properly ChemistryDispenser = Provider.GetComponentInChildren <ChemistryDispenser> (); Updateall(); } }
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(); } }
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(); } }