public void OnClick() { if (mContestInfo.entryTicket > UserMgr.UserInfo.ticket) { UtilMgr.NotEnoughTicket(); return; } if (mContestInfo.myEntry > 0) { mLineupEvent = new GetMyLineupEvent(ReceivedEntry); NetMgr.GetMyEntryData(mContestInfo.myEntry, mLineupEvent); return; } UtilMgr.AddBackState(UtilMgr.STATE.RegisterEntry); UtilMgr.AnimatePageToLeft("Contests", "RegisterEntry"); transform.root.FindChild("RegisterEntry").GetComponent <RegisterEntry>().InitRegisterEntry(mContestInfo); }