Hello, i have a problem in unity 5, in unity 4.5 works fine. "mirandoADerecha" its just a bool that indicate if i am facing Right Code (CSharp): void Flip() { mirandoADerecha = !mirandoADerecha; Vector3 thescale = Transform.localScale; thescale.x *= -1; Transform localScale = thescale; } The problem i get its "An object refence its required to acces non-static member 'UnityEngine.transform.localscale' "
replace line 3 with Code (CSharp): Vector3 thescale = transform.localScale; you used Transform ... you need transform