using System.Collections; using System.Collections.Generic; using UnityEngine; public class MobileAttach10007_7002 : MonoBehaviour { public int index = 0; public void OnReceiveTask(string triggerName) { if (index == 0) { if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, false) == 0) { GameManager.UIMgr.ShowPanel(E_UI_Layer.Mid, (panel) => { index = 1; panel.Init(triggerName, Input.mousePosition); }); } } else { if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, false) == 0) { GameManager.UIMgr.ShowPanel(E_UI_Layer.Mid, (panel) => { panel.Init(triggerName, Input.mousePosition); }); } } } public void OnWeather(string triggerName) { if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerName, false) == 0) { GameManager.UIMgr.ShowPanel(E_UI_Layer.Mid, (panel) => { panel.Init(triggerName, Input.mousePosition); }); } } }