예제 #1
0
        public void ClickHeroHeadBtnHander(HeadIconChangeButton btn)
        {
            int No = btn.headNo;

            GameProxy.instance.AccountHeadIcon = UIUtil.ParseHeadIcon(No);
            scrollContent.RefreshAllContentItems();
            LoginController.instance.CLIENT2LOBBY_ROLE_HEAD_REQ(No);
        }
예제 #2
0
        public void OnResetItemHandler(GameObject go, int index)
        {
            HeadIconChangeButton btn = go.GetComponent <HeadIconChangeButton>();
            int    no       = _headIconNoList[index];
            string path     = _headIconPathList[index];
            bool   isSelect = path.Equals(GameProxy.instance.AccountHeadIcon);

            btn.Set(no, isSelect);
        }