Health Help

Hi!

When you post code, be sure to surround it with code tags. You can learn how to use them by clicking on ==> this link .

Looks like this when you do:

using UnityEngine;

public class Enemy_Health_Scrpit : MonoBehaviour {

    float Enemy_Health = 9f;

    if(Enemy_Health <0)
    {
        Destroy(GameObject);
    }
}

The code you have posted doesn’t really look like something that would run. Can you post some actual code and let us know what your problem is with it? Maybe then we can help.

1 Like