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

Load level when hp = 0

$
0
0
Hello. I have a simple combat game with 2 oponents but when the life bar is = to "0" nathing happens. I Want that when life bar of "bad" character = to 0 load a new level.

HP SCRIPT:

using UnityEngine; using System.Collections;

/// /// HP & MP Manager /// public class HpManager : MonoBehaviour { // HP bar, MP bar public UISlider hpBar, mpBar;

Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. /// <summary>
  5. /// HP & MP Manager
  6. /// </summary>
  7. public class HpManager :...
Load level when hp = 0

Viewing all articles
Browse latest Browse all 1466670

Trending Articles