I will give you my exapmle, in my case script I am accesing is attached to another game object
private TraktorSkrypt traktor; //traktorskrypt is the name of other skrypt/class attached to gameobject named Traktor
void Awake ()
{
// Setting up references.
traktor = GameObject.Find("Traktor").GetComponent<TraktorSkrypt>();
}
other method...
traktor.Flip(); //this examples call a method, you can access variables in the same way.
If it is in the same Game object you simply skip the find part. So in your case you basically need to change () to <>()
no it didnt help me but thanks they are not in same object :)
Any chance you can share how you saved just the x velocity?
– j_masters