Flappy Pig – UI Screens
Day 075 #100DaysOfCode
Day 039 #100DaysOfGameDev
- create UI text object to show Score
- create UI text objects for Game Over state
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/02/2020-02-15_Flappy-Pig_game-over-screen.png?fit=800%2C455&ssl=1)
- create GameControl script
- define variable for Game Over state
- set call function for Game Over text
- set up as singleton
- create public function for Game Over conditions
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/02/2020-02-15_Flappy-Pig_script_GameControl.png?resize=705%2C596&ssl=1)
- call Game Over function from FlappyPig during OnCollisionEnter2d
![](https://i0.wp.com/gamedev.sinwyrm.com/wp-content/uploads/2020/02/2020-02-15_Flappy-Pig_script_GameControl-call-1.png?resize=800%2C103&ssl=1)
- create Restart capability in GameControl script