/// <summary> /// Updates the current level's button with a new move record /// as well as the completion stats. /// </summary> /// <param name="moveCount">String representing the move count</param> public void updateButton(string moveCount) { ScreenLoader sLoader = ScreenLoader.instance; if (sLoader != null) { sLoader.LevelButtons[CurrentLevel].setMoves(moveCount); sLoader.Stats.updateText(); } }
private void Awake() { if (instance != null) { Destroy(this.gameObject); Destroy(ScrollRect); return; } else { instance = this; } DontDestroyOnLoad(this); _ls = LevelSelector.instance; offScreenPosition = new Vector3(Screen.width * 2, 0, 0); onScreenPosition = Vector3.zero; settingsCanvas.position = offScreenPosition; if (LevelSelect != null) { LevelSelect.Open(); } _clickSound = GetComponent <ClickSound>(); _canvas = GetComponent <Canvas>(); }
private void Awake() { _loader = ScreenLoader.instance; }