コード例 #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();
        }
コード例 #2
0
 private void MovePrevLevel()
 {
     SubGameCore.ForceMovePrevLevel();
 }
コード例 #3
0
 private void MoveNextLevel()
 {
     SubGameCore.ForceMoveNextLevel();
 }