I have this error shows in UNITY4.0.1 Assets/scripts/Targetting.cs(37,48): error CS1061: Type UnityEngine.Vector3' does not contain a definition for myTransform’ and no extension method myTransform' of type UnityEngine.Vector3’ could be found (are you missing a using directive or an assembly reference?)
what is the solution[/QUOTE][/QUOTE][/QUOTE]
You should post your full code.
From what I read in the error details, at line 37, you tried to read the variable ‘myTransform’ through a Vector3 data type. That’s not allowed because Vector3 does not have a variable called myTransform. You’re probably trying to get the variable myTransform wrongly. I can’t really help you because I don’t know what you have written in your codes.
This is the code return Vector3.Distance(t1.position. mytransform.position).CompareTo(Vector3.Distance(t2.position. myTransform.posiition));