我想进行团队战斗,我知道如何将玩家设置为某个团队ID
PhotonNetwork.player.SetTeam (PunTeams.Team.red);
我知道如何检测自己的团队ID
if( PhotonNetwork.player.GetTeam () == PunTeams.Team.red){
//iam in team red
}
但是我不知道如何检测其他玩家ID
//idont know
我曾多次尝试像下面和其他内容一样修改我的sebais,但仍然失败
PhotonNetwork.otherPlayers.GetTeam () // but it doesnot work