public void setTrun(int turnIndex) { UserGameData user = userList[turnIndex]; foreach (GameObject obj in playUserList) { UserPanel userPanel = obj.GetComponent <UserPanel>(); userPanel.setTurn(userPanel.userData.email.Equals(user.email)); } }
public void setTrun(int turnIndex) { UserGameData user = userList[turnIndex]; foreach (GameObject obj in playUserList) { UserPanel userPanel = obj.GetComponent <UserPanel>(); userPanel.setTurn(userPanel.userData.email.Equals(user.email)); } }