Hi Guys! i have a Problem. I made a Script. but i get 5 Errors i know it’s kinda of a Chain Error.
The Script is Right HERE
-
Assets/Scripts/EnemyAI.cs(13,24): error CS1061: Type
UnityEngine.GameObject' does not contain a definition for
position’ and no extension methodposition' of type
UnityEngine.GameObject’ could be found (are you missing a using directive or an assembly reference?) -
Assets/Scripts/EnemyAI.cs(13,36): error CS1061: Type
UnityEngine.GameObject' does not contain a definition for
position’ and no extension methodposition' of type
UnityEngine.GameObject’ could be found (are you missing a using directive or an assembly reference?) -
Assets/Scripts/EnemyAI.cs(13,12): error CS1502: The best overloaded method match for `UnityEngine.Vector3.Distance(UnityEngine.Vector3, UnityEngine.Vector3)’ has some invalid arguments
-
Assets/Scripts/EnemyAI.cs(13,12): error CS1503: Argument
#1' cannot convert
object’ expression to type `UnityEngine.Vector3’ -
Assets/Scripts/EnemyAI.cs(14,9): error CS0029: Cannot implicitly convert type
UnityEngine.GameObject' to
UnityEngine.Transform’