protected void flipXScale (bool right) { float scaleByX = xScale; if (right) scaleByX = -xScale; //transform.localScale = new Vector3 (scaleByX, transform.localScale.y, transform.localScale.z); }