code systems
dress up zombie » Devlog
-
MoneyManagerTMP tracks
currentMoney
, lets you spend or lose funds and displays texts for your balance, and inventory list. It uses a singleton pattern for global, andSceneManager.LoadScene
triggers you to go to detention when you run out of money. - ClothesMoney reads its
price
, shows it on a price label, and hooks into itsButton.onClick
event. When clicked, it callsMoneyManagerTMP.instance.SpendMoney(...)
, disabling the button on success or showing “Not enough money!” feedback on failure.
- ZombieAI uses
Rigidbody2D.MovePosition
to chase the player atmoveSpeed
. On collision with the player , it callsMoneyManagerTMP
to deduct cash. - ZombieCollisionHandler sits on the player and checks
OnCollisionEnter2D
against the Zombie. - PlayerShooter listens for
("Fire1")
, converts the mouse position to world coordinates, and usesPhysics2D
to find a collider. If that object hasSceneTransitionOnShot
, it triggers the user to go to the the next scend.
dress up zombie
Youre at school and all boys turned to Zombies - defeat them go to the mall and keep your money !
Status | Released |
Author | 1Gabriella23 |
Leave a comment
Log in with itch.io to leave a comment.