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"); } } }
private void LoadResources() { JumpResources.Awake(); Debug.Log("JumpResoureces Loaded."); }