通過2D物體尺寸 x軸乘以-(負號)
void Flip ()
{
// Switch the way the player is labelled as facing.轉變朝向標籤
facingRight = !facingRight;
// Multiply the player's x local scale by -1.尺寸x軸乘以`-(負號)`
Vector3 theScale = transform.localScale;
theScale.x *= -1;
transform.localScale = theScale;
}