Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     man = GameManager.instance;
     callibrationPanel = GameObject.FindGameObjectWithTag("CallibrationPanel");
     oscData           = callibrationPanel.GetComponent <CalibrationWithOSC>();
     maxScale          = man.settings.calibTimer;
 }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        m = GameManager.instance;
        s = m.settings;

        if (thisIstheMenu)
        {
            loadValuesIntoUI();
        }

        callibrationPanel = GameObject.FindGameObjectWithTag("CallibrationPanel");
        oscData           = callibrationPanel.GetComponent <CalibrationWithOSC>();

        onlyReduce.onValueChanged.AddListener(updateReduceToggle);
        ignoreLastPower.onValueChanged.AddListener(updateIgnoreLastPower);

        string path = "./Assets/Settings/";

        //currentFile = "settings";



        DirectoryInfo dir = new DirectoryInfo(path);

        FileInfo[] info = dir.GetFiles("*.xml");

        fileNames = new List <string>();

        foreach (FileInfo f in info)
        {
            fileNames.Add(f.Name);

            //Debug.Log(f.Name);
        }



        //   drop.AddOptions(fileNames);

        //drop.onValueChanged.AddListener(dropDownFileListUpdate);
        //drop.
    }