unity中實現2D圖片的左右移動和方向偏轉

private void Update() { Vector3 acc = Vector3.zero; Vector3 diff; if(Input .GetKey (KeyCode .LeftArrow)) { transform.localScale = new Vector3(-1, 1, 1);
相關文章
相關標籤/搜索