예제 #1
0
        void BuildPubWindow()
        {
            PubDataContainer.PubData[] pubsData = GeneralManager.GetPubList();

            List <string> pubsNames  = new List <string>();
            List <Sprite> pubSprites = new List <Sprite>();
            int           index      = 0;

            foreach (PubDataContainer.PubData currPub in pubsData)
            {
                //Debug.Log(currPub.pubName);
                if (currPub.hidePubInList)
                {
                    continue;
                }
                pubsNames.Add(currPub.pubName);
                pubSprites.Add(currPub.pubLogo);
                //Debug.Log(currPub.pubName);
                index++;
            }

            locationMenuRef.SetLocations(pubsNames.ToArray(), pubSprites.ToArray(), this);
        }