I am using BurgZergArcade tutorial and i am currently on the melee combat tutorial, now i am using this script which is from that tutorial
`using UnityEngine;
using System.Collections;
public class PlayerAttack : MonoBehaviour {
public GameObject target;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetKeyUp(KeyCode.F)) {
Attack();
}
}
private void Attack() {
EnemyHealth eh = (EnemyHealth)target.GetComponent("EnemyHealth");
eh.AddjustCurrentHealth(-10);
}
}`
and i am getting a error that states “type ‘EnemyHealth’ does not contain a definition for ‘AddjustCurrentHealth’ and no extension method ‘AddjustCurrentHealth’ of type 'EnemyHealth could be found (are you missing a using directive or an assembly refrence?)”
and i have no idea what this means, could someone help me out?