测试代码
这是代码:
var a = 1;
int b = 2;
for (int i = 0; i < defaultPos.Length; i++)
{
GameObject player = players[i].gameObject;
player.transform.localPosition = new Vector3(defaultPos[i].x, defaultPos[i].y, defaultPos[i].z);
player.transform.localRotation = Quaternion.Euler(0.0f, defaultPos[i].w, 0.0f);
players[i].GetOrAddMissCompnent();
}