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