void UpdatePosition() { foreach (Player p in lastestGameState.players) { foreach (GameObject PO in AllPlayers) { //Debug.Log(p.id + " and " + PO.GetComponent<NetInfo>().ID); if (p.id.Equals(PO.GetComponent <NetInfo>().ID)) { PO.transform.position = p.location; //Debug.Log(p.location); } } } }