|
|
|
@ -191,7 +191,15 @@ public class PoliceInfoMsgBind : MonoBehaviour
|
|
|
|
|
|
|
|
|
|
if (Uids.Count == 0) |
|
|
|
|
{ |
|
|
|
|
CurrentUserInfo.generalCommanding = true; |
|
|
|
|
CurrentUserInfo.generalCommanding = true;//设置当前登陆用户为总指挥 |
|
|
|
|
|
|
|
|
|
foreach (UserData item in CurrentUserInfo.room.UserList) |
|
|
|
|
{ |
|
|
|
|
if (CurrentUserInfo.mySelf.Id != item.UserInfo.Id) |
|
|
|
|
{//不发给自己 |
|
|
|
|
NetworkManager.Default.SendAsync("GENERAL_COMMANDING_UPDATE_SYNC", item.UserInfo.Id); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
@ -251,7 +259,15 @@ public class PoliceInfoMsgBind : MonoBehaviour
|
|
|
|
|
|
|
|
|
|
if (Uids.Count == 0) |
|
|
|
|
{ |
|
|
|
|
CurrentUserInfo.generalCommanding = true; |
|
|
|
|
CurrentUserInfo.generalCommanding = true;//设置当前登陆用户为总指挥 |
|
|
|
|
|
|
|
|
|
foreach (UserData item in CurrentUserInfo.room.UserList) |
|
|
|
|
{ |
|
|
|
|
if (CurrentUserInfo.mySelf.Id != item.UserInfo.Id) |
|
|
|
|
{//不发给自己 |
|
|
|
|
NetworkManager.Default.SendAsync("GENERAL_COMMANDING_UPDATE_SYNC", item.UserInfo.Id); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|