Browse Source

火场信息、4g图传退出重新进入可能会报错的问题 全液面火、被困人员退出重进有时报空的问题

develop
曹衍涛 4 years ago
parent
commit
82037df50c
  1. 2
      Assets/Resources/UI/UIViewBag.prefab
  2. 4
      Assets/Scenes/Menu.unity
  3. 7
      Assets/Scripts/Common/AttributeSetting/BaseAttributeSet.cs
  4. 3
      Assets/Scripts/Common/ChatSystem/FireSiteInfo/FireInfoToggle.cs
  5. 11
      Assets/Scripts/Common/Disasters/FireSpread/FireLiquipPanel.cs
  6. 2
      Assets/Scripts/Common/Disasters/Wound_Trapped/TrappedMoveFree.cs
  7. 7
      Assets/Scripts/Common/GameObjectSelect/ObjSelectCtrl.cs
  8. 5
      Assets/Scripts/Common/Tools/WaterConnonController.cs
  9. 7
      Assets/Scripts/DongYouLiQing/4GMap/FourthGLookOver.cs
  10. 4
      Assets/Scripts/DongYouLiQing/4GMap/QuadrupleDisplay.cs

2
Assets/Resources/UI/UIViewBag.prefab

@ -238,7 +238,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &224027155863243544
RectTransform:
m_ObjectHideFlags: 0

4
Assets/Scenes/Menu.unity

@ -882,7 +882,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 177, y: -87}
m_AnchoredPosition: {x: 177, y: -86.99988}
m_SizeDelta: {x: -674, y: -394}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &188155149
@ -7763,7 +7763,7 @@ MonoBehaviour:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite: {fileID: 21300000, guid: 463122421b96dea4e8c06b56183b15aa, type: 3}
m_Sprite: {fileID: 21300000, guid: 1ac4104c2fed0e44f816354e5e69adcc, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1

7
Assets/Scripts/Common/AttributeSetting/BaseAttributeSet.cs

@ -40,7 +40,12 @@ public abstract class BaseAttributeSet : MonoBehaviour
MessageDispatcher.RemoveListener("DELETE_COMMAND", Close);
MessageDispatcher.RemoveListener("GROUP_DISMISS", Close);//删除组
}
public virtual void OnDestroy()
{
MessageDispatcher.RemoveListener("DELETE_ALL_COMMAND", Close);
MessageDispatcher.RemoveListener("DELETE_COMMAND", Close);
MessageDispatcher.RemoveListener("GROUP_DISMISS", Close);//删除组
}
private void Close(IMessage msg)
{
gameObject.SetActive(false);

3
Assets/Scripts/Common/ChatSystem/FireSiteInfo/FireInfoToggle.cs

@ -23,6 +23,8 @@ public class FireInfoToggle : BaseToggle
MessageDispatcher.RemoveListener("CloseFireInfoPanel", CancelToggle);
}
public void CancelToggle(IMessage obj)
{
if (gameObject)
{
var num = (int)obj.Data;
int myNum = int.Parse(gameObject.name);
@ -31,6 +33,7 @@ public class FireInfoToggle : BaseToggle
GetComponent<Toggle>().isOn = false;
}
}
}
public override void RespondFun(bool value)
{
int num = int.Parse(gameObject.name);

11
Assets/Scripts/Common/Disasters/FireSpread/FireLiquipPanel.cs

@ -112,15 +112,18 @@ public class FireLiquipPanel : BaseAttributeSet
}
private void SureClick()
{
if (chooseObj&&chooseObj.GetComponent<FireLiquidLevelCtrl>())
{
SetTime = Mtime * 60 + Stime;
string settimestring = SecondToHMS(SetTime);
chooseObj.GetComponent<FireLiquidLevelCtrl>().showTime = settimestring;
//发送设置时间
MessageDispatcher.SendMessage("SetTime", new SetLiquipdata() {
MessageDispatcher.SendMessage("SetTime", new SetLiquipdata()
{
LiquipId = chooseObj.GetComponent<BaseGameObjInfo>().gameObjID,
time=settimestring,
time = settimestring,
});
MessageDispatcher.SendMessage("CANCEL_OBJ_SELECTED");
@ -129,7 +132,9 @@ public class FireLiquipPanel : BaseAttributeSet
NetworkManager.Default.SendAsync("SET_LIQUIP_HIDE_SYNC", chooseObj.GetComponent<BaseGameObjInfo>().gameObjID);
}
LoadPromptWin.Instance.LoadTextPromptWindow("设置成功",1f);
LoadPromptWin.Instance.LoadTextPromptWindow("设置成功", 1f);
}
}
public void Close()

2
Assets/Scripts/Common/Disasters/Wound_Trapped/TrappedMoveFree.cs

@ -915,7 +915,7 @@ public class TrappedMoveFree : MonoBehaviour
}
if (!firemanHit && !IsBefirstAirOrMoving)
{
if (CurrentUserInfo.mySelf.Id == CurrentUserInfo.room.Owner.UserInfo.Id)
if (CurrentUserInfo.room!=null&&CurrentUserInfo.mySelf.Id == CurrentUserInfo.room.Owner.UserInfo.Id)
{
float rang = UnityEngine.Random.Range(2f, 8f);
StartCoroutine(randompoint(rang));

7
Assets/Scripts/Common/GameObjectSelect/ObjSelectCtrl.cs

@ -132,12 +132,19 @@ public class ObjSelectCtrl : MonoBehaviour
EquipManager.Instance.CurrentSelectedBag = hitObj.GetComponent<Bags>();
}
else
{
if (GameObject.Find("UIViewBag"))
{
// 没有背包的对象关闭背包
UIManager.HideView<UIViewBag>();
}
if (GameObject.Find("UIViewEquipLib"))
{
// 关闭仓库界面
UIManager.HideView<UIViewEquipLib>();
}
}
}
}

5
Assets/Scripts/Common/Tools/WaterConnonController.cs

@ -600,6 +600,9 @@ public class WaterConnonController : MonoBehaviour
}
}
for (int i = 0; i < allwatersource.Count; i++)
{
if (EntitiesManager.Instance.GetEntityByID(allwatersource[i])!=null&&
EntitiesManager.Instance.GetEntityByID(allwatersource[i]).GetComponent<WaterSource>())
{
WaterSource ws = EntitiesManager.Instance.GetEntityByID(allwatersource[i]).GetComponent<WaterSource>();
if (ws.TotalWater != -100)
@ -616,6 +619,8 @@ public class WaterConnonController : MonoBehaviour
break;
}
}
}
int remaintime = 0;
//allflow += Flow;
if (remainwater == -100)

7
Assets/Scripts/DongYouLiQing/4GMap/FourthGLookOver.cs

@ -21,6 +21,13 @@ public class FourthGLookOver : BaseToggle {
MessageDispatcher.AddListener("4GNobodySelected", ClearSelectedPerson);
MessageDispatcher.AddListener("QuadrupleMode", ControlLookOverMode);
}
public override void OnDestroy()
{
base.OnDestroy();
MessageDispatcher.RemoveListener("FourthGLookOver", SetSelectedPerson);
MessageDispatcher.RemoveListener("4GNobodySelected", ClearSelectedPerson);
MessageDispatcher.RemoveListener("QuadrupleMode", ControlLookOverMode);
}
/// <summary>
/// 开启四分屏模式时,查看模式不可用
/// </summary>

4
Assets/Scripts/DongYouLiQing/4GMap/QuadrupleDisplay.cs

@ -11,6 +11,10 @@ public class QuadrupleDisplay : MonoBehaviour {
MessageDispatcher.AddListener("QuadDisplay", InstantiateDisplay);
//MessageDispatcher.AddListener("QuadrupleMode", DeleteAllDisplay);
}
private void OnDestroy()
{
MessageDispatcher.RemoveListener("QuadDisplay", InstantiateDisplay);
}
void InstantiateDisplay(IMessage obj)
{
var info = (CloneGameObjInfo)obj.Data;

Loading…
Cancel
Save