Example #1
0
        private void Update()
        {
            if (SubGameCore == null)
            {
                return;
            }

            if (Input.GetKeyDown(KeyCode.DownArrow))
            {
                SubGameCore.ForceMovePrevLevel();
            }
            if (Input.GetKeyDown(KeyCode.UpArrow))
            {
                SubGameCore.ForceMoveNextLevel();
            }

            _gameInfoText.text = string.Format(_gameInfoInitialText, SubGameCore.SubGameName,
                                               SubGameCore.CurrentLevelId + 1, SubGameCore.CurrentStageId + 1, (int)Time.timeSinceLevelLoad);

            _gameInfoText.Commit();
        }
Example #2
0
 private void MoveNextLevel()
 {
     SubGameCore.ForceMoveNextLevel();
 }