コード例 #1
0
 private void LoadCurrentLevel()
 {
     currentLevel = levels[levelIndex];
     currentLevel.LoadLevel();
     gameStats.SetLevelVariables(currentLevel.GetSecondsToComplete(), currentLevel.GetRequiredGems());
     levelRenderer.LoadLevel(currentLevel, currentLevel.GetPlayerInitialPosition().x - 3, currentLevel.GetPlayerInitialPosition().y - 3);
     playerPosition.InitializePosition(currentLevel.GetPlayerInitialPosition().x, currentLevel.GetPlayerInitialPosition().y);
 }