mwjjr76
1
I am creating an FPS game for android using unity 5. The scripts were all working fine until I switched the build settings from PC to Android. Now I am getting multiple errors in multiple scripts. The one I am trying to fix first is one that says ‘health’ is not a member of ‘UnityEngine.Component’ on line two below. Can anyone help?
if(hit.transform.gameObject.tag == “Enemy”){
hit.transform.GetComponent(“AiHealth”).health -= Damage;
}
Problem solved by just removing the quotation marks.