示例#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;
 }
示例#4
0
 void OnEnable()
 {
     instance = this;
 }