private void OnClickPhoto(GameObject arg1, MySkyInputEvent.ClickState arg2, Vector2 arg3) { if (isOnClickPhoto) { return; } if (arg2 == MySkyInputEvent.ClickState.Down) { if (arg1 != null) { if (arg1.GetComponent <Item>() != null) { arg1.GetComponent <Item>().BoderGlow.SetActive(true); } } if (m_tmpDragState != MySkyInputEvent.DragState.OnDrag) { Speed = 0; m_tmpDragState = MySkyInputEvent.DragState.OnDrag; return; } } else { if (arg1 != null) { if (arg1.GetComponent <Item>() != null) { uiRoot.ShowReminder("“当正式使用时,点击照片,可浏览详情、评论”"); arg1.GetComponent <Item>().BoderGlow.SetActive(false); } } } }
private void OnClickPhoto(GameObject obj, MySkyInputEvent.ClickState ClickState, Vector2 pos) { if (obj == null) { MsgBase.SendMsg("BaseButtonEvnet2"); } if (IsHeip || IsClickPhtoto) { return; } itemManager.ItemClick(obj, pos, specialEffectsUI, ClickState); }
public void ItemClick(GameObject obj, Vector2 pos, SpecialEffectsUI _effectsUI, MySkyInputEvent.ClickState ClickState) { if (IsItemClick == true) { return; } if (ClickState == MySkyInputEvent.ClickState.Down) { ClickItemData = FindItemData(obj); Debug.Log("====" + ClickItemData.cardType); if (ClickItemData != null && ClickItemData.cardType > 3) { return; } if (ClickItemData != null) { PhotoScene.Instance.clickUi.ClickUiObj.GetComponent <RectTransform>().position = new Vector3(pos.x, pos.y, 0); PhotoScene.Instance.clickUi.ClickUiObj.SetActive(true); ClickItemData.item.Photo.GetComponent <Renderer>().material.color = new Vector4(0.5f, 0.5f, 0.5f, 1); ClickItemData.item.BoderGlow.SetActive(true); } if (m_tmpDragState != MySkyInputEvent.DragState.OnDrag) { Speed = 0; m_tmpDragState = MySkyInputEvent.DragState.OnDrag; return; } } else { if (ClickItemData != null && ClickItemData.cardType > 3) { if (ClickItemData.cardType == 4) { ClickItemData.item.GetComponent <Animation>().Play(); ClickItemData.item.Clip.SetActive(true); PhotoScene.Instance.StartCoroutine(Doyhongdong(ClickItemData.nid)); } else { ClickItemData.item.Clip.SetActive(true); PhotoScene.Instance.StartCoroutine(Doyhongdong(ClickItemData.nid)); } return; } m_effectsUI = _effectsUI; ClickItemData = FindItemData(obj); if (ClickItemData != null) { m_TimeOnUpdateTow = 30; ClickItemData.item.Photo.GetComponent <Renderer>().material.color = ClickItemData.item.tmpColor; ClickItemData.item.BoderGlow.SetActive(false); MsgBase.QuitUI(); IsItemClick = true; PhotoScene.Instance.clickUi.specialEffectsUI2.clickShow(ItemClickShowEnd); } } }