コード例 #1
0
        private void InitPlayerItemList()
        {
            if (playItemModel && playItemRoot)
            {
                UIUtils.SetActive(playItemModel, false);
                playPool = new UIUtils.SimplePool(playItemModel, playItemRoot);

                if (playMarkUtil == null)
                {
                    playMarkUtil = new PlayMarkCommn(adapter);
                }
                playMarkUtil.SetPlayAction((info) =>
                {
                    var tran     = playPool.SpawnGo();
                    var playData = (MiniMapTeamPlayInfo)info;
                    RefreshPlayTeamItem(tran, playData);
                });
            }
        }