This commit is contained in:
账号名 2024-01-23 10:19:54 +08:00
parent ffbfe77965
commit e6567cccf2
2 changed files with 5 additions and 3 deletions

View File

@ -50,7 +50,7 @@ public class Mastermanagement : MonoBehaviour
{
for (int i = 0; i < dragControllers.Count; i++)
{
if (dragControllers[i].gameObject.name == game.name)
if (dragControllers[i].gameObject.name == game.name && !dragControllers[i].gameObject.activeSelf)
{
dragControllers[i].gameObject.SetActive(false);
break;
@ -62,9 +62,10 @@ public class Mastermanagement : MonoBehaviour
{
for (int i = 0; i < dragControllers.Count; i++)
{
if (dragControllers[i].gameObject.name == game.name)
if (dragControllers[i].gameObject.name == game.name&& !dragControllers[i].gameObject.activeSelf)
{
dragControllers[i].gameObject.SetActive(true);
break;
}
}
}

View File

@ -340,7 +340,8 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
{
string nowData = GetSyncData(attackTarget);
Debug.Log(nowData);
_ = SyncCreateRoom.SendMessageAsync(string.Format("send2room {0}", nowData));
//_ = SyncCreateRoom.SendMessageAsync(string.Format("send2room {0}", nowData));
DeviceManager.Instance.send2roomStr.Enqueue(nowData);
}
/// <summary>
/// 无人机攻击目标传递