private void ClickPointAction(CGScenePointTouchConfig config) { if (config.touchType == (int)CGScenePointTouchType.DeathBody) { m_model.PushSceneID(config.Parameter); RefreshInfo(); return; } InvokeShowPanel(UIPanelType.UICommonTalkPanel, new TalkDataProvider() { ID = config.Parameter }); }
private void OnClickPoint(int pointID, CGScenePointTouchConfig config) { CgSceneController.TouchPoint(pointID); if (config.touchType == (int)CGScenePointTouchType.DeathBody) { m_model.PushSceneID(config.Parameter); RefreshInfo(); return; } InvokeShowPanel(UIPanelType.TalkPanel, new TalkDataProvider() { ID = config.Parameter }); }
public CGScenePointTouchConfig GetTouchConfigByPointID(int pointID) { var info = GetScenePointInfo(pointID); int key = 0; if (!info.IsTouchMax()) { key = info.GetCurTouchID() + 1; } else { key = info.GetCurTouchID(); } return(CGScenePointTouchConfig.GetConfigByKey(key)); }
private void OnClickPoint(int pointID, CGScenePointTouchConfig config) { SoundService.Instance.PlayEffect(CommonConfig.Data.CGSceneClickSoundEffect); CgSceneController.TouchPoint(pointID); if (!string.IsNullOrEmpty(config.showImgKey)) { EventManager.Instance.SendEvent(EventKey.ShowUIEffect, new UIEffectData() { Type = EnumUIEffectType.Flash, EndCallback = () => { m_btn_showImg_Button.gameObject.SetActive(true); PrefabManager.Instance.SetImage(m_img_showImg_Image, config.showImgKey); m_curClickPointConfig = config; } }); } else { ClickPointAction(config); } }