Example #1
0
        public void SetSaveData(SaveData data)
        {
            _garbageData = MapData.Instance.GarbageDataDic[data.type];
            _point       = data.point;

            UpdatePosition();
            UpdateSprite();
        }
Example #2
0
        public void DeployTile(Point point, int type)
        {
            _garbageData = MapData.Instance.GarbageDataDic[type];
            _point       = point;

            UpdatePosition();
            UpdateSprite();
        }
Example #3
0
        public void GarbageTileFuncButtonInteract(GarbageData data)
        {
            removeTileButton.interactable = false;

            cleaningGarbagePrice.text = data.removeCost.ToString("N0") + "사용";
            if (data.removeCost <= ResourceManager.Instance.GetGoldResource())
            {
                cleaningGarbageButton.interactable = true;
            }
            else
            {
                cleaningGarbageButton.interactable = false;
            }

            cleaningGarbageGroup.SetActive(true);
        }