// 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; }
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; }