-
Notifications
You must be signed in to change notification settings - Fork 24
Player.WeaponGUI
Wesley Haws edited this page Apr 22, 2017
·
2 revisions
In your GUI Object add an empty Child gameobject that will display all of your weapon GUI elements using the new Unity 5 UI system. When done it should look similar to this:
All of these except "Divider" Should be tagged with something unique so that weapon system will be able to find it. Note:GameObject naming isn't important here.
- BulletImage - UIImage element that contains your bullet image
- ClipImage - UIImage element that contains your clip image
- Clips - UIText element that will display how many clips are left in your weapon
- Divider - Optional Element
- BulletsLeft - How many bullets are left in this clip.
The following is a list of github repositories that made all of this possible:
delta patches: https://github.com/OctopusDeploy/Octodiff
.net 4 implemented in Monodevelop: https://github.com/mono/mono
Tuples In Unity: https://gist.github.com/michaelbartnett/5652076
Octodiff: https://github.com/OctopusDeploy/Octodiff
Input Manager: https://github.com/daemon3000/InputManager