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

Health regen issue

$
0
0
Hi guys i hv this script work properly with my health going up and down with damage i take but if i let my character low is health until 0 the regeneration dont let me die... i go to health = 0.1 and it regens 5 and so one in circle so i never get dead. Wt i hv to change here so if i get last hit i die?

Appreciate all possible help

Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Fighter : MonoBehaviour
  5. {
  6.     public float globeHeight;
  7.     public Texture globepicBack;...
Health regen issue

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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