Beispiel #1
0
        private void JumpBoxCheck()
        {
            if (IsOnCurrentBox())
            {
            }
            else if (IsOnNextBox())
            {
                if (JumpResources.score == 0)
                {
                    JumpResources.scoreRate = Setting.defaultScoreRate;
                }
                else if (jumpFreeTime < MaxPerfectJumpTime)
                {
                    JumpResources.scoreRate++;
                }
                else
                {
                    JumpResources.scoreRate = Setting.defaultScoreRate;
                }
                jumpFreeTime = 0;

                JumpResources.score += JumpResources.scoreRate;
                JumpResources.TrashOldBox();

                moveCamera.MoveByABPoint(JumpResources.player.A, JumpResources.player.B);
            }
            else
            {
                if (!Setting.isCheat)
                {
                    SceneManager.LoadScene("Jump");
                }
            }
        }
Beispiel #2
0
 private void LoadResources()
 {
     JumpResources.Awake();
     Debug.Log("JumpResoureces Loaded.");
 }