This commit is contained in:
parent
aa6f45d70b
commit
b7045add8e
Binary file not shown.
|
@ -46,10 +46,10 @@ public class Device_CabinetDoor : Device_Base
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
protected override void OnMDown()
|
||||||
private void OnMouseDown()
|
|
||||||
{
|
{
|
||||||
if (LiveSceneManager.Instance.currentTool.name == "Ñéµç±Ê") return;
|
base.OnMDown();
|
||||||
|
if (LiveSceneManager.Instance.currentTool !=null && LiveSceneManager.Instance.currentTool.name == "Ñéµç±Ê") return;
|
||||||
if (isOpen)
|
if (isOpen)
|
||||||
{
|
{
|
||||||
Close();
|
Close();
|
||||||
|
@ -59,4 +59,5 @@ public class Device_CabinetDoor : Device_Base
|
||||||
Open();
|
Open();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@ public class LiveSceneManager : SingletonMono<LiveSceneManager>
|
||||||
p.Init("", "您好,我是xx供电公司员工,这是我的工作证。现在我们要对贵户更换电能计量表", (intTemp) => { Destroy(currentTool); });
|
p.Init("", "您好,我是xx供电公司员工,这是我的工作证。现在我们要对贵户更换电能计量表", (intTemp) => { Destroy(currentTool); });
|
||||||
});
|
});
|
||||||
tMDTips.gameObject.SetActive(false);
|
tMDTips.gameObject.SetActive(false);
|
||||||
|
currentTool.transform.localEulerAngles = new Vector3(90, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,19 +6,11 @@ public class NPCController : PermanentTriggerBase
|
||||||
{
|
{
|
||||||
public List<string> npcSpeack;
|
public List<string> npcSpeack;
|
||||||
public int speackIndex = 0;
|
public int speackIndex = 0;
|
||||||
private bool onSpeackOver;
|
|
||||||
protected override void OnMDown()
|
protected override void OnMDown()
|
||||||
{
|
{
|
||||||
base.OnMDown();
|
base.OnMDown();
|
||||||
if(npcSpeack.Count > 1)
|
|
||||||
{
|
if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, false ) == 0)
|
||||||
onSpeackOver = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
onSpeackOver = true;
|
|
||||||
}
|
|
||||||
if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, onSpeackOver) == 0)
|
|
||||||
{
|
{
|
||||||
GameManager.UIMgr.ShowPanel<UI_CustomSessionPanel>(E_UI_Layer.Mid, (panel) =>
|
GameManager.UIMgr.ShowPanel<UI_CustomSessionPanel>(E_UI_Layer.Mid, (panel) =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue