public void SetGameObjectPrefab(UnityObject selectedPrefab) { unityObject = selectedPrefab; map.zoneSizeX = (int)unityObject.SizeInTiles().x; map.zoneSizeY = (int)unityObject.SizeInTiles().z; map.zoneBrightness = Constants.INACTIVE_TILE; currectObjectType = selectedPrefab.Type(); SetObjectPlacementMode(); }
private bool ObjectIsAvailable() { return(MapConfig.mapConfig.IsContained(unityObject.Type())); }