About 'Reset Game Session'!

In this video (objectives)…

  1. Reinforce the public method paradigm we've been using.
  2. Fix the issue with our score persisting from game session to game session.
  3. How to rename a class.

After watching (learning outcomes)… How to elegantly reset our game session so that our score resets.

(Unique Video Reference: 27_BR_CUD)

We would love to know…

  • What you found good about this lecture?
  • What we could do better?

Remember that you can reply to this topic, or create a new topic. The easiest way to create a new topic is to follow the link in Resources. That way the topic will…

  • Be in the correct forum (for the course).
  • Be in the right sub-forum (for the section)
  • Have the correct lecture tag.

Enjoy your stay in our thriving community!

Do It matters the order of the calling of the orders? I know in this game it doesn’t matter because GameStatus isn’t destoyed when loading another scene. But, generally speaking, do it matters the order?

public void LoadFirstScene()
{
    FindObjectOfType<GameStatus>().ResetScore();
    SceneManager.LoadScene(0);
}

Privacy & Terms