示例#1
0
    // Use this for initialization

    public void saveOptions()
    {
        Opj = new Assets.Code.Options("");
        int b = int.Parse(text.text);

        Opj.changeSomethingInOptions((int)b, tog.isOn);
    }
示例#2
0
    // Use this for initialization

    void Start()
    {
        Assets.Code.Options Opj = new Assets.Code.Options();
        Opj.readOptions();
        CanSnakeGoThroughWalls = Opj.ifSnakeCanGoThroughWalls;
        tog.isOn = CanSnakeGoThroughWalls;
    }
 void Start()
 {
     //DontDestroyOnLoad(this);
     Opj = new Assets.Code.Options();
     Opj.readOptions();
     text.text = Opj.speed.ToString();
     sld.value = Opj.speed;
 }
示例#4
0
 void Start()
 {
     //GlobalSpeedSetter sm = GameObject.Find("SliderManager").GetComponent<GlobalSpeedSetter>();
     //if (sm != null)
     //    speed = (int) sm.speed;
     //else speed = 1;
     Opj = new Assets.Code.Options();
     Opj.readOptions();
     speed = Opj.speed;
 }
 void Start()
 {
     Assets.Code.Options Opj = new Assets.Code.Options();
     Opj.readOptions();
     isGoingToCrashAgainstWall = Opj.ifSnakeCanGoThroughWalls;
 }