
- Create Variables for Player, and Camera’s Scope
- in Start() method,
- find player by using FindGameObjectwithTag()


- in LateUpdate() method,
- create x & y variable for the position of Main Camera
- Put the x & y values of Player in those x & y
- Clamp the x & y with min & max values
- Main Camera will move based on Player‘s Position
- when Main Camera reaches at the position of Min or Max Values, Main Camera stops there
- create x & y variable for the position of Main Camera







- Create died bool variable as Flag
- in Start() method,
- Set the Flag as false
- in Update() method,
- if Player‘s y position is below than -7,(Player falls down), show the log


- Create a Coroutine
- Create Die() as IEnumerator
- Start the Coroutine with Die() by putting StartCoroutine() in Update() when Player died
- don’t forget to put yield and return in IEnumerator


- change IEnumerator Die()
- load the main scene when this IEnumerator is called by using SceneManager.LoadScene()
- Don’t forget to yield return null
