Hello, i’ve got a problem withy my PlayerAttack cs script from burg zerg arcade tutorial. It says that i use unknown symbol “private”
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.Z)) {
Attack();
}
private void Attack() {
EnemyHealth eh = (EnemyHealth)target.GetComponent(“EnemyHealth”);
eh.AddjustCurrentHealth(-10);
}
}
there is something wrong in private void Attack line plz help