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;
Load level when hp = 0
HP SCRIPT:
using UnityEngine; using System.Collections;
/// /// HP & MP Manager /// public class HpManager : MonoBehaviour { // HP bar, MP bar public UISlider hpBar, mpBar;
Code (CSharp):
- using UnityEngine;
- using System.Collections;
- /// <summary>
- /// HP & MP Manager
- /// </summary>
- public class HpManager :...