float uX = gameObject.GetComponent<Transform> ().position.x;
float uY = gameObject.GetComponent<Transform> ().position.y;
float aX = toAttack.GetComponent<Transform> ().position.x;
float aY = toAttack.GetComponent<Transform> ().position.y;
float calcX = (float)((float)aX - (float)uX);
float calcY = aY - uY;
Debug.Log ("Vector calc " + calcX);
I’ve tried several different methods in subtraction this sum, but whatever I seem to do it returns 0. Any ideas? It probably something very simply