gameObject.transform.localRotation= Quaternion.Euler(0,0,0);
gameObject.transform.localRotation= Quaternion.Euler(0,0,180);
gameObject.transform.localRotation= Quaternion.Euler(0,0,90);
gameObject.transform.localRotation= Quaternion.Euler(0,0,-90);
if(Input.GetKeyDown(KeyCode.Space))
{
CancelInvoke();//取消invoke(调用),先停住,在改数值
InvokeRepeating("Move",0,velocity -0.2f);
}