Esempio n. 1
0
    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;
 }
Esempio n. 4
0
 void OnEnable()
 {
     instance = this;
 }