DerangedSenators / copsandrobbers

2D Multiplayer Cops and Robbers Game made with Unity for the Aston University Team project module
https://www.copsandrobbers.co.uk
Apache License 2.0
6 stars 5 forks source link

Add Handlers to Facilitate Attacking on Mobile #120

Closed hsravat-4590 closed 3 years ago

hsravat-4590 commented 3 years ago

This PR adds Buttons for Mobile UIs along with Listeners to Listen to their events. It also rewrites the PlayerAttack Script to work with these events over using expensive update invokations (only applies to mobile).

It still requires a texture for the button (and animations if we wanna be extra fancy.

Resolves: #114

hsravat-4590 commented 3 years ago

Still Not Working...

hsravat-4590 commented 3 years ago

Fixed Now as of https://github.com/DerangedSenators/copsandrobbers/pull/120/commits/2c7290a5bddf8c4495329b8c6ae7e893675946a1