ME FIRST GAMES
Menu
games for me and you
📌 This is implemented with a prefab. 📌 The screen is controlled through a TextSelectorUi script at the root of the prefab. 📌 The controller code must manually call Show() on the TextSelectorUi. 📌 Using a custom script provides a great advantage over hardcoding text in code or in the prefab itself. It allows text changes, prefab reuse, and dynamic population of the title and text fields. 📌 The TextSelectorUi provides an interface that may be expanded upon in the future. This gives us flexibility, which is very important in fast-moving game development. 📌 If the script did not use Show(), but instead started inside OnEnable and ended in OnDisable, then the flexibility and future-proofing of this screen would be severely limited. 📌 The screen appears using a DOTween Fade. This is invoked in code, performant, and easy to implement. However, it is not as flexible as using an Animator for elaborate animations. 📌 If required, this could easily be refactored to use an Animator instead of DOTween. This would be a simple refactor, only requiring changes inside this single prefab.
0 Comments
Leave a Reply. |
Me First Games is an independent game studio dedicated to creating unique and bizarre video games.
Red MatterStar Impact is an upcoming adventure platformer coming to PC, Mac, and Linux.
Archives
April 2021
Categories |
Copyright (c) 2020 Me First LLC
|