예제 #1
0
 private void TakeLife()
 {
     CurrentPlayerLives--;
     livesText.text = CurrentPlayerLives.ToString();
     if (LastCheckpointOnHit != Vector2.zero)
     {
         hasHit = true;
     }
     SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
 }
예제 #2
0
 private void Start()
 {
     livesText.text = CurrentPlayerLives.ToString();
     goldText.text  = gold.ToString();
 }