|
|
@ -98,6 +98,20 @@ public class FireFightNormal : MonoBehaviour |
|
|
|
if (SpreadFireController.fireStruckContainDic[mainFireId].Contains(this)) |
|
|
|
if (SpreadFireController.fireStruckContainDic[mainFireId].Contains(this)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
SpreadFireController.fireStruckContainDic[mainFireId].Remove(this); |
|
|
|
SpreadFireController.fireStruckContainDic[mainFireId].Remove(this); |
|
|
|
|
|
|
|
if (SpreadFireController.fireStruckContainDic[mainFireId].Count<1) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
EntitiesManager.Instance.DeleteObj(EntitiesManager.Instance.GetEntityByID(mainFireId)); |
|
|
|
|
|
|
|
if (GameSettings.othersSettings.mode != Mode.DisasterManagement) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (CurrentUserInfo.room!=null&& CurrentUserInfo.mySelf.Id == CurrentUserInfo.room.Owner.UserInfo.Id) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
BaseNetworkSyncDate arg = new BaseNetworkSyncDate(); |
|
|
|
|
|
|
|
arg.SendUserID = CurrentUserInfo.mySelf.Id; |
|
|
|
|
|
|
|
arg.gameObjID = mainFireId; |
|
|
|
|
|
|
|
NetworkManager.Default.SendAsync("OBJ_DELECT_SYNC", arg); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -187,6 +201,7 @@ public class FireFightNormal : MonoBehaviour |
|
|
|
transform.GetChild(i).gameObject.SetActive(false); |
|
|
|
transform.GetChild(i).gameObject.SetActive(false); |
|
|
|
} |
|
|
|
} |
|
|
|
GetComponent<Collider>().enabled = false; |
|
|
|
GetComponent<Collider>().enabled = false; |
|
|
|
|
|
|
|
SpreadFireController.fireStruckContainDic[baseinfo.gameObjID].Remove(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|