//playerHealth = FindObjectOfType(typeof(HealthStatusBarScript)); void Awake() { playerHealth = gameObject.GetComponent <HealthStatusBar>(); }
void Awake() { healthscript = gameObject.GetComponent<HealthStatusBar>(); }
void Awake() { healthscript = gameObject.GetComponent <HealthStatusBar>(); }
void Start() { health = gameObject.GetComponent <HealthStatusBar>(); }
//playerHealth = FindObjectOfType(typeof(HealthStatusBarScript)); void Awake() { playerHealth = gameObject.GetComponent<HealthStatusBar>(); }
void Start() { health = gameObject.GetComponent<HealthStatusBar>(); }