public void OnClick() { if (isDragging) return; if (status == eCardStatus.InRow) { GameUIHandler.instance.ShowCardMenu(BoardManager.instance.GetFrontPileByIndex(rowPileIndex)); status = eCardStatus.InView; isDragging = true; Util.RunTweenMove(gameObject, transform.localPosition.x, inViewY, 0.5f, "onTweenComplete"); } else if(status == eCardStatus.InView) { GameUIHandler.instance.HideCardMenu(); status = eCardStatus.InRow; isDragging = true; Util.RunTweenMove(gameObject, transform.localPosition.x, inRowY, 0.5f, "onTweenComplete"); } }
public void OnEndFocus() { if (status == eCardStatus.InView) { status = eCardStatus.InRow; isDragging = true; GameUIHandler.instance.HideCardMenu(); Util.RunTweenMove(gameObject, transform.localPosition.x, inRowY, 0.5f, "onTweenComplete"); } }