做一个上一剪头朝向下一箭头的效果
代码:
Vector3 dir = arrows[i + 1].transform.position - arrows[i].transform.position;
dir.z = 0;
dir.Normalize();
arrows[i].transform.up = dir;
做一个上一剪头朝向下一箭头的效果
代码:
Vector3 dir = arrows[i + 1].transform.position - arrows[i].transform.position;
dir.z = 0;
dir.Normalize();
arrows[i].transform.up = dir;