public void OnGoto(Transform t) { if (DropDatas == null) { EB.Debug.LogError("dropDatas = null"); } if (DropDatas.Count == 0) { return; } int index = int.Parse(t.gameObject.name); if (index > DropDatas.Count) { EB.Debug.LogError("index > DropDatas.Count"); return; } Hotfix_LT.Data.DropDataBase data = (DropDatas[index] as Hotfix_LT.Data.DropDataBase); if (mDMono.transform.GetUIControllerILRComponent <UIToolTipPanelController>(false) == null) { data.GotoDrop(); } else { data.GotoDrop(mDMono.transform.GetUIControllerILRComponent <UIToolTipPanelController>().controller); } }
public void OnGoToDrop(Transform tran) { int index = DropTranList.IndexOf(tran); FusionAudio.PostEvent("UI/General/ButtonClick"); Hotfix_LT.Data.DropDataBase data = (DropDatas[index] as Hotfix_LT.Data.DropDataBase); data.GotoDrop(controller); }
public void OnGoto(Transform t) { FusionAudio.PostEvent("UI/General/ButtonClick"); if (DropDatas == null) { EB.Debug.LogError("dropDatas = null"); } if (DropDatas.Count == 0) { return; } int index = int.Parse(t.gameObject.name); if (index > DropDatas.Count) { EB.Debug.LogError("index > DropDatas.Count"); return; } Hotfix_LT.Data.DropDataBase data = (DropDatas[index] as Hotfix_LT.Data.DropDataBase); data.GotoDrop(_uiToolTipController.controller); }