Esempio n. 1
0
        public void SetSaveData(SaveData data)
        {
            _decorationData = MapData.Instance.DecorationDataDic[data.type];
            _point          = data.point;

            UpdatePosition();
            UpdateSprite();
        }
Esempio n. 2
0
        public void DeployTile(Point point, int type)
        {
            _decorationData = MapData.Instance.DecorationDataDic[type];
            _point          = point;

            UpdatePosition();
            UpdateSprite();
        }
Esempio n. 3
0
        public void SetData(DecorationData data)
        {
            _data = data;

            imageTile.GetComponent <Image>().sprite     = ResourceManager.Instance.GetFarmSprite(data.sprite);
            labelName.GetComponent <Text>().text        = data.name;
            labelRequireGold.GetComponent <Text>().text = data.price.ToString();

            AddButtonEvent();
        }