private void Hover(PointerEventData eventData) { if (!IsActive()) { return; } if (null != mHoverAction) { mHoverAction(); } TipUIManager.Show("Test Title", "Test Content....................", true); //switch (ThisTipStyle) //{ // case TipStyle.Txt: // if (string.IsNullOrEmpty(Title) && string.IsNullOrEmpty(Content)) // return; // string t, c; // t = Title; // c = Content; // CommonTipUI.Instance.ShowTip(t, c); // break; // case TipStyle.Image_Asset_Bundle: // if (string.IsNullOrEmpty(AssetId)) // return; // CommonTipUI.Instance.ShowTip(AssetId, 0); // break; // case TipStyle.Image_Atlas: // break; // case TipStyle.Custom: // break; // default: // break; //} }
void Awake() { Instance = this; }