コード例 #1
0
ファイル: LevelSelector.cs プロジェクト: jackdholm/SS_Code
        /// <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();
            }
        }
コード例 #2
0
 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>();
 }
コード例 #3
0
 private void Awake()
 {
     _loader = ScreenLoader.instance;
 }