I started to Code the stuff for the pick up Ammo and changing the Magic Bar when you collect a bottle. I also added a rotation script to my bottle, so it rotates around the y axes.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVoZ1XYqrzlzGmiD3QHKpfM1EXVOla6EbLo7q0msmp6xgT5G_GaS9zqrb7rWF0u-RioHhC-2YZLuoE8lhfjAlsZQjC96KDq0E-qPKUqxqVowNwDN4EdE7lFNZZcOhpzdPFQgLNJZR94vk/s640/collet.PNG)
Some snipping out of my game before and after collecting a bottle. Because I haven't added the shooting part I set my magic Bar to 0.8f so I can see if the code works. This is with a full magic bar.
When the player collide with the bottle it is triggered and with the script I'm changing the bottle object to inactive. So it disappears and the magic bar fill amount is set up.
Kommentare
Kommentar veröffentlichen