getLife() public method

public getLife ( ) : float
return float
Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (hero != null)
     {
         _lifeValue           = Mathf.CeilToInt(hero.getLife() * maxLife);
         _lifeValueLabel.text = _lifeValue.ToString();
     }
 }