void Start() { instance = this; string dmxOption = PlayerPrefs.GetString("dMXOption"); if (!String.IsNullOrEmpty(dmxOption)) { switch (dmxOption) { case "A": dMXOption = DMXOption.A; optionA.isOn = true; break; case "B": dMXOption = DMXOption.B; optionB.isOn = true; break; case "C": dMXOption = DMXOption.C; optionC.isOn = true; break; default: break; } } GetAllDMXAddress(); }
void Start() { instance = this; string dmxOption = PlayerPrefs.GetString("dMXOption"); if(!String.IsNullOrEmpty(dmxOption)){ switch (dmxOption) { case "A":dMXOption = DMXOption.A; optionA.isOn = true; break; case "B":dMXOption = DMXOption.B; optionB.isOn = true; break; case "C":dMXOption = DMXOption.C; optionC.isOn = true; break; default: break; } } GetAllDMXAddress(); }
void OnEnable() { instance = this; }