public void SetSaveData(SaveData data) { _decorationData = MapData.Instance.DecorationDataDic[data.type]; _point = data.point; UpdatePosition(); UpdateSprite(); }
public void DeployTile(Point point, int type) { _decorationData = MapData.Instance.DecorationDataDic[type]; _point = point; UpdatePosition(); UpdateSprite(); }
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(); }