unity中实现2D图片的左右移动和方向偏转

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