Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Noob needs help with C# HealthPickup

$
0
0
Howdy!

Im having trouble with my health pickup script.

In my PlayerHealth Script:
The player has a playerStartingHealth of 5.
Then a playerCurrentHealth that keeps track of the player health when injured and at 0 dies.

if the playerCurrentHealth != playerStaringHealth
the player picks up the health, and it ++ to his health and the health object is turned off.

up to this point it works but now...
----------------------------------------------------

In my...

Noob needs help with C# HealthPickup

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>