Drink, Cocktail 시스템 및 Ui 작업 중
This commit is contained in:
parent
6591e1a66f
commit
94742936ff
File diff suppressed because it is too large
Load Diff
@ -1,23 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using BlueWater.Interfaces;
|
||||
using BlueWater.Items;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWater.Npcs.Customers
|
||||
{
|
||||
[CreateAssetMenu(fileName = "CustomerDataTable", menuName = "ScriptableObjects/CustomerDataTable")]
|
||||
public class CustomerDataSo : ScriptableObject, IDataContainer<CustomerData>
|
||||
public class CustomerDataSo : DataSo<CustomerData>
|
||||
{
|
||||
[field: SerializeField]
|
||||
public List<CustomerData> CustomerDatas { get; private set; }
|
||||
|
||||
public List<CustomerData> GetData()
|
||||
{
|
||||
return CustomerDatas;
|
||||
}
|
||||
|
||||
public void SetData(List<CustomerData> customerDatas)
|
||||
{
|
||||
CustomerDatas = customerDatas;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -133,17 +133,6 @@ namespace BlueWater.Players.Tycoons
|
||||
}
|
||||
}
|
||||
|
||||
public void OnEscapeBar(InputAction.CallbackContext context)
|
||||
{
|
||||
var bar = FindAnyObjectByType<Bar>();
|
||||
if (!bar) return;
|
||||
|
||||
if (context.performed)
|
||||
{
|
||||
bar.Escape();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
@ -28,10 +28,6 @@ namespace BlueWater
|
||||
[field: SerializeField]
|
||||
public Inventory Inventory { get; private set; }
|
||||
|
||||
[field: Title("아이템 데이터")]
|
||||
[field: SerializeField]
|
||||
public List<string> FoodRecipes { get; private set; } = new();
|
||||
|
||||
[field: Title("타이쿤 데이터")]
|
||||
[field: SerializeField]
|
||||
public TycoonData TycoonData { get; private set; }
|
||||
@ -39,7 +35,6 @@ namespace BlueWater
|
||||
[field: Title("실시간 데이터")]
|
||||
public int Gold { get; set; }
|
||||
|
||||
public event Action<FoodData> OnChangeFoodRecipe;
|
||||
public event Action<int> OnChangeGold;
|
||||
|
||||
private void Start()
|
||||
@ -64,22 +59,15 @@ namespace BlueWater
|
||||
Inventory.AddItem(new ItemSlot("10706", 35));
|
||||
Inventory.AddItem(new ItemSlot("60001", 2));
|
||||
|
||||
AddFoodRecipe("30001");
|
||||
AddFoodRecipe("30002");
|
||||
AddFoodRecipe("30004");
|
||||
AddFoodRecipe("30005");
|
||||
AddFoodRecipe("30006");
|
||||
}
|
||||
|
||||
public void AddFoodRecipe(string idx)
|
||||
{
|
||||
if (FoodRecipes.Contains(idx)) return;
|
||||
TycoonData.AddFoodRecipe("30001");
|
||||
TycoonData.AddFoodRecipe("30002");
|
||||
TycoonData.AddFoodRecipe("30004");
|
||||
TycoonData.AddFoodRecipe("30005");
|
||||
TycoonData.AddFoodRecipe("30006");
|
||||
|
||||
var foodData = ItemManager.Instance.GetFoodDataByIdx(idx);
|
||||
if (foodData == null) return;
|
||||
|
||||
FoodRecipes.Add(idx);
|
||||
OnChangeFoodRecipe?.Invoke(foodData);
|
||||
TycoonData.AddDrinkRecipe("Drink001");
|
||||
TycoonData.AddDrinkRecipe("Drink002");
|
||||
TycoonData.AddDrinkRecipe("Ice001");
|
||||
}
|
||||
|
||||
public void GetMoney(int money)
|
||||
|
@ -18,11 +18,13 @@ namespace BlueWater.Editors
|
||||
None = 0,
|
||||
ItemDataTable,
|
||||
CustomerDataTable,
|
||||
FoodDataTable
|
||||
FoodDataTable,
|
||||
CocktailDataTable,
|
||||
DrinkDataTable
|
||||
}
|
||||
|
||||
private string _jsonFilePath = "Assets/Resources/Json/FileName";
|
||||
private string _assetFilePath = "Assets/02.Scripts/ScriptableObject";
|
||||
private string _assetFilePath = "Assets/02.Scripts/ScriptableObject/Item";
|
||||
private DataType _dataType = DataType.None;
|
||||
|
||||
[MenuItem("Tools/Json파일 ScriptableObject로 자동 변환")]
|
||||
@ -78,6 +80,12 @@ namespace BlueWater.Editors
|
||||
case DataType.FoodDataTable:
|
||||
LoadData<FoodData, FoodDataSo>();
|
||||
break;
|
||||
case DataType.CocktailDataTable:
|
||||
LoadData<CocktailData, CocktailDataSo>();
|
||||
break;
|
||||
case DataType.DrinkDataTable:
|
||||
LoadData<DrinkData, DrinkDataSo>();
|
||||
break;
|
||||
default:
|
||||
EditorUtility.DisplayDialog("경고 메세지", "데이터 타입이 제대로 설정되어있는지 확인해주세요.", "OK");
|
||||
Debug.LogError("데이터 타입이 제대로 설정되어있는지 확인해주세요.");
|
||||
|
22
Assets/02.Scripts/Item/DataSo.cs
Normal file
22
Assets/02.Scripts/Item/DataSo.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
using BlueWater.Interfaces;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWater.Items
|
||||
{
|
||||
public class DataSo<T> : ScriptableObject, IDataContainer<T>
|
||||
{
|
||||
[field: SerializeField]
|
||||
public List<T> Datas { get; private set; }
|
||||
|
||||
public List<T> GetData()
|
||||
{
|
||||
return Datas;
|
||||
}
|
||||
|
||||
public void SetData(List<T> datas)
|
||||
{
|
||||
Datas = datas;
|
||||
}
|
||||
}
|
||||
}
|
2
Assets/02.Scripts/Item/DataSo.cs.meta
Normal file
2
Assets/02.Scripts/Item/DataSo.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 198da33a8dfe2bc419a66190c7a797fc
|
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BlueWater.Interfaces;
|
||||
using Newtonsoft.Json;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
@ -49,6 +50,10 @@ namespace BlueWater.Items
|
||||
[field: SerializeField, Tooltip("5번 재료 수량 Idx"), BoxGroup("Json 데이터 영역")]
|
||||
public int IngredientRatio5 { get; set; }
|
||||
|
||||
[BoxGroup("직접 추가하는 영역")]
|
||||
[field: SerializeField, BoxGroup("직접 추가하는 영역")]
|
||||
public Sprite Sprite { get; set; }
|
||||
|
||||
public List<CocktailIngredient> GetValidIngredients()
|
||||
{
|
||||
var ingredients = new List<CocktailIngredient>(5);
|
10
Assets/02.Scripts/Item/Drink/CocktailDataSo.cs
Normal file
10
Assets/02.Scripts/Item/Drink/CocktailDataSo.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWater.Items
|
||||
{
|
||||
[CreateAssetMenu(fileName = "CocktailDataTable", menuName = "ScriptableObjects/CocktailDataTable")]
|
||||
public class CocktailDataSo : DataSo<CocktailData>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
2
Assets/02.Scripts/Item/Drink/CocktailDataSo.cs.meta
Normal file
2
Assets/02.Scripts/Item/Drink/CocktailDataSo.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 03802f3276c69a348aaa2515377b47cc
|
81
Assets/02.Scripts/Item/Drink/DrinkData.cs
Normal file
81
Assets/02.Scripts/Item/Drink/DrinkData.cs
Normal file
@ -0,0 +1,81 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BlueWater.Interfaces;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWater.Items
|
||||
{
|
||||
public enum DrinkCategory
|
||||
{
|
||||
None = 0,
|
||||
Alcohol,
|
||||
Garnish
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class DrinkData : IIdx
|
||||
{
|
||||
[BoxGroup("Json 데이터 영역")]
|
||||
[field: SerializeField, Tooltip("고유 식별 ID"), BoxGroup("Json 데이터 영역")]
|
||||
public string Idx { get; set; }
|
||||
|
||||
[field: SerializeField, Tooltip("이름"), BoxGroup("Json 데이터 영역")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[field: SerializeField, Tooltip("종류"), BoxGroup("Json 데이터 영역")]
|
||||
public DrinkCategory Category { get; set; }
|
||||
|
||||
[field: SerializeField, Tooltip("총량"), BoxGroup("Json 데이터 영역")]
|
||||
public int Amount { get; set; }
|
||||
|
||||
[field: SerializeField, Tooltip("도수"), BoxGroup("Json 데이터 영역")]
|
||||
public int AlcoholVolume { get; set; }
|
||||
|
||||
[field: SerializeField, Tooltip("온도"), BoxGroup("Json 데이터 영역")]
|
||||
public int CoolWarm { get; set; }
|
||||
|
||||
[field: SerializeField, Tooltip("맛"), BoxGroup("Json 데이터 영역")]
|
||||
public int BitterSweet { get; set; }
|
||||
|
||||
[field: SerializeField, Tooltip("향"), BoxGroup("Json 데이터 영역")]
|
||||
public int Scent { get; set; }
|
||||
|
||||
[field: SerializeField, Tooltip("1번 재료 식별 Idx"), BoxGroup("Json 데이터 영역")]
|
||||
public string IngredientIdx1 { get; set; }
|
||||
|
||||
[field: SerializeField, Tooltip("1번 재료 수량 Idx"), BoxGroup("Json 데이터 영역")]
|
||||
public int IngredientQuantity1 { get; set; }
|
||||
|
||||
[field: SerializeField, Tooltip("2번 재료 식별 Idx"), BoxGroup("Json 데이터 영역")]
|
||||
public string IngredientIdx2 { get; set; }
|
||||
|
||||
[field: SerializeField, Tooltip("2번 재료 수량 Idx"), BoxGroup("Json 데이터 영역")]
|
||||
public int IngredientQuantity2 { get; set; }
|
||||
|
||||
[field: SerializeField, Tooltip("3번 재료 식별 Idx"), BoxGroup("Json 데이터 영역")]
|
||||
public string IngredientIdx3 { get; set; }
|
||||
|
||||
[field: SerializeField, Tooltip("3번 재료 수량 Idx"), BoxGroup("Json 데이터 영역")]
|
||||
public int IngredientQuantity3 { get; set; }
|
||||
|
||||
[BoxGroup("직접 추가하는 영역")]
|
||||
[field: SerializeField, BoxGroup("직접 추가하는 영역")]
|
||||
public Sprite Sprite { get; set; }
|
||||
|
||||
[BoxGroup("직접 추가하는 영역")]
|
||||
[field: SerializeField, BoxGroup("직접 추가하는 영역")]
|
||||
public Color Color { get; set; }
|
||||
|
||||
public List<Ingredient> GetValidIngredients()
|
||||
{
|
||||
var ingredients = new List<Ingredient>(3);
|
||||
|
||||
if (!string.IsNullOrEmpty(IngredientIdx1)) ingredients.Add(new Ingredient(IngredientIdx1, IngredientQuantity1));
|
||||
if (!string.IsNullOrEmpty(IngredientIdx2)) ingredients.Add(new Ingredient(IngredientIdx2, IngredientQuantity2));
|
||||
if (!string.IsNullOrEmpty(IngredientIdx3)) ingredients.Add(new Ingredient(IngredientIdx3, IngredientQuantity3));
|
||||
|
||||
return ingredients;
|
||||
}
|
||||
}
|
||||
}
|
2
Assets/02.Scripts/Item/Drink/DrinkData.cs.meta
Normal file
2
Assets/02.Scripts/Item/Drink/DrinkData.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6fdef58471902aa48b2667e02d39f225
|
10
Assets/02.Scripts/Item/Drink/DrinkDataSo.cs
Normal file
10
Assets/02.Scripts/Item/Drink/DrinkDataSo.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWater.Items
|
||||
{
|
||||
[CreateAssetMenu(fileName = "DrinkDataTable", menuName = "ScriptableObjects/DrinkDataTable")]
|
||||
public class DrinkDataSo : DataSo<DrinkData>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
2
Assets/02.Scripts/Item/Drink/DrinkDataSo.cs.meta
Normal file
2
Assets/02.Scripts/Item/Drink/DrinkDataSo.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f91e197a0d142b40ae1ec8bd1300fb3
|
@ -1,23 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using BlueWater.Interfaces;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWater.Items
|
||||
{
|
||||
[CreateAssetMenu(fileName = "FoodDataTable", menuName = "ScriptableObjects/FoodDataTable")]
|
||||
public class FoodDataSo : ScriptableObject, IDataContainer<FoodData>
|
||||
public class FoodDataSo : DataSo<FoodData>
|
||||
{
|
||||
[field: SerializeField]
|
||||
public List<FoodData> FoodDatas { get; private set; }
|
||||
|
||||
public List<FoodData> GetData()
|
||||
{
|
||||
return FoodDatas;
|
||||
}
|
||||
|
||||
public void SetData(List<FoodData> foodDatas)
|
||||
{
|
||||
FoodDatas = foodDatas;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,23 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using BlueWater.Interfaces;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWater.Items
|
||||
{
|
||||
[CreateAssetMenu(fileName = "ItemTable", menuName = "ScriptableObjects/ItemTable")]
|
||||
public class ItemDataSo : ScriptableObject, IDataContainer<ItemData>
|
||||
public class ItemDataSo : DataSo<ItemData>
|
||||
{
|
||||
[field: SerializeField]
|
||||
public List<ItemData> ItemDataList { get; private set; }
|
||||
|
||||
public List<ItemData> GetData()
|
||||
{
|
||||
return ItemDataList;
|
||||
}
|
||||
|
||||
public void SetData(List<ItemData> itemDataList)
|
||||
{
|
||||
ItemDataList = itemDataList;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,7 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
using Random = UnityEngine.Random;
|
||||
|
||||
namespace BlueWater.Items
|
||||
{
|
||||
@ -12,15 +14,23 @@ namespace BlueWater.Items
|
||||
|
||||
[SerializeField, Required]
|
||||
private ItemDataSo _itemDataSo;
|
||||
private Dictionary<string, ItemData> _itemDataDictionary;
|
||||
private Dictionary<string, ItemData> _itemDatas;
|
||||
|
||||
[SerializeField, Required]
|
||||
private ItemDropTableSo _itemDropTableSo;
|
||||
private Dictionary<string, ItemDropTable> _itemDropTableDictionary;
|
||||
private Dictionary<string, ItemDropTable> _itemDropTables;
|
||||
|
||||
[SerializeField, Required]
|
||||
private FoodDataSo _foodDataSo;
|
||||
private Dictionary<string, FoodData> _foodDataDictionary;
|
||||
private Dictionary<string, FoodData> _foodDatas;
|
||||
|
||||
[SerializeField, Required]
|
||||
private CocktailDataSo _cocktailDataSo;
|
||||
private Dictionary<string, CocktailData> _cocktailDatas;
|
||||
|
||||
[SerializeField, Required]
|
||||
private DrinkDataSo _drinkDataSo;
|
||||
private Dictionary<string, DrinkData> _drinkDatas;
|
||||
|
||||
[field: SerializeField, Required]
|
||||
public ItemSlotDataSo ItemSlotDataSo { get; private set; }
|
||||
@ -43,23 +53,16 @@ namespace BlueWater.Items
|
||||
|
||||
private void Initialize()
|
||||
{
|
||||
_itemDataDictionary = new Dictionary<string, ItemData>(_itemDataSo.ItemDataList.Count);
|
||||
foreach (var element in _itemDataSo.ItemDataList)
|
||||
{
|
||||
_itemDataDictionary.TryAdd(element.Idx, element);
|
||||
}
|
||||
_itemDatas = InitializeDictionary(_itemDataSo.Datas, data => data.Idx);
|
||||
_itemDropTables = InitializeDictionary(_itemDropTableSo.ItemDropTables, table => table.CharacterData.CharacterIdx);
|
||||
_foodDatas = InitializeDictionary(_foodDataSo.Datas, data => data.Idx);
|
||||
_cocktailDatas = InitializeDictionary(_cocktailDataSo.Datas, data => data.Idx);
|
||||
_drinkDatas = InitializeDictionary(_drinkDataSo.Datas, data => data.Idx);
|
||||
}
|
||||
|
||||
_itemDropTableDictionary = new Dictionary<string, ItemDropTable>(_itemDropTableSo.ItemDropTables.Count);
|
||||
foreach (var element in _itemDropTableSo.ItemDropTables)
|
||||
{
|
||||
_itemDropTableDictionary.TryAdd(element.CharacterData.CharacterIdx, element);
|
||||
}
|
||||
|
||||
_foodDataDictionary = new Dictionary<string, FoodData>(_foodDataSo.FoodDatas.Count);
|
||||
foreach (var element in _foodDataSo.FoodDatas)
|
||||
{
|
||||
_foodDataDictionary.TryAdd(element.Idx, element);
|
||||
}
|
||||
private Dictionary<string, T> InitializeDictionary<T>(List<T> dataList, Func<T, string> keySelector)
|
||||
{
|
||||
return dataList.ToDictionary(keySelector);
|
||||
}
|
||||
|
||||
public void ItemDropRandomPosition(string idx, Vector3 dropPosition, float randomDropRadius = float.PositiveInfinity)
|
||||
@ -84,7 +87,7 @@ namespace BlueWater.Items
|
||||
|
||||
droppedPositions.Add(newDropPosition);
|
||||
|
||||
var itemPrefab = _itemDataDictionary[element.Idx].ItemPrefab;
|
||||
var itemPrefab = _itemDatas[element.Idx].ItemPrefab;
|
||||
if (!itemPrefab)
|
||||
{
|
||||
itemPrefab = _defaultItemPrefab;
|
||||
@ -102,15 +105,18 @@ namespace BlueWater.Items
|
||||
{
|
||||
return positions.Any(pos => Vector3.Distance(position, pos) > _minSeparationDistance);
|
||||
}
|
||||
|
||||
public ItemData GetItemDataByIdx(string idx)
|
||||
|
||||
public T GetDataByIdx<T>(Dictionary<string, T> dataDictionary, string idx) where T : class
|
||||
{
|
||||
if (_itemDataDictionary.TryGetValue(idx, out var itemData)) return itemData;
|
||||
|
||||
if (dataDictionary.TryGetValue(idx, out var data))
|
||||
return data;
|
||||
|
||||
Debug.LogError($"{idx}와 일치하는 아이템이 없습니다.");
|
||||
return null;
|
||||
}
|
||||
|
||||
public ItemData GetItemDataByIdx(string idx) => GetDataByIdx(_itemDatas, idx);
|
||||
|
||||
public ItemDropTable GetItemDropTableByIdx(string idx)
|
||||
{
|
||||
if (string.IsNullOrEmpty(idx))
|
||||
@ -119,18 +125,14 @@ namespace BlueWater.Items
|
||||
return null;
|
||||
}
|
||||
|
||||
if (_itemDropTableDictionary.TryGetValue(idx, out var itemDropTable)) return itemDropTable;
|
||||
if (_itemDropTables.TryGetValue(idx, out var itemDropTable)) return itemDropTable;
|
||||
|
||||
Debug.LogError($"{idx}와 일치하는 아이템이 없습니다.");
|
||||
return null;
|
||||
}
|
||||
|
||||
public FoodData GetFoodDataByIdx(string idx)
|
||||
{
|
||||
if (_foodDataDictionary.TryGetValue(idx, out var foodData)) return foodData;
|
||||
|
||||
Debug.LogError($"{idx}와 일치하는 아이템이 없습니다.");
|
||||
return null;
|
||||
}
|
||||
public FoodData GetFoodDataByIdx(string idx) => GetDataByIdx(_foodDatas, idx);
|
||||
public CocktailData GetCocktailDataByIdx(string idx) => GetDataByIdx(_cocktailDatas, idx);
|
||||
public DrinkData GetDrinkDataByIdx(string idx) => GetDataByIdx(_drinkDatas, idx);
|
||||
}
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Sirenix.OdinInspector;
|
||||
@ -87,6 +88,9 @@ namespace BlueWater
|
||||
|
||||
private void Start()
|
||||
{
|
||||
TycoonEvents.OnDrinkUiOpened += Initialize;
|
||||
TycoonEvents.OnDrinkUiClosed += ReleaseAllObject;
|
||||
|
||||
_instanceMaterial = Instantiate(_liquidRenderer.material);
|
||||
_liquidRenderer.material = _instanceMaterial;
|
||||
|
||||
@ -124,6 +128,12 @@ namespace BlueWater
|
||||
}
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
TycoonEvents.OnDrinkUiOpened -= Initialize;
|
||||
TycoonEvents.OnDrinkUiClosed -= ReleaseAllObject;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
// Initialize methods
|
||||
|
@ -1,3 +1,4 @@
|
||||
using BlueWater.Uis;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWater.Tycoons
|
||||
@ -6,43 +7,20 @@ namespace BlueWater.Tycoons
|
||||
{
|
||||
[SerializeField]
|
||||
private LiquidController _liquidController;
|
||||
|
||||
[SerializeField]
|
||||
private LiquidController _liquidController2;
|
||||
|
||||
// protected override void Awake()
|
||||
// {
|
||||
// base.Awake();
|
||||
//
|
||||
// _liquidController = FindAnyObjectByType<LiquidController>();
|
||||
// }
|
||||
|
||||
public override void Interaction()
|
||||
{
|
||||
PlayerInputKeyManager.Instance.SwitchCurrentActionMap(InputActionMaps.Bar);
|
||||
TycoonCameraManager.Instance.SetMainCamera(TycoonCameraType.Bar);
|
||||
_liquidController.Initialize();
|
||||
//_liquidController2.Initialize();
|
||||
}
|
||||
|
||||
public void Escape()
|
||||
{
|
||||
PlayerInputKeyManager.Instance.SwitchCurrentActionMap(InputActionMaps.Tycoon);
|
||||
TycoonCameraManager.Instance.SetMainCamera(TycoonCameraType.Base);
|
||||
_liquidController.ReleaseAllObject();
|
||||
//_liquidController2.ReleaseAllObject();
|
||||
TycoonUiManager.Instance.DrinkUi.Open(TycoonUiManager.Instance.PopupUiList);
|
||||
}
|
||||
|
||||
public void ActiveIsPouring()
|
||||
{
|
||||
_liquidController.ActiveIsPouring();
|
||||
//_liquidController2.ActiveIsPouring();
|
||||
}
|
||||
|
||||
public void InActiveIsPouring()
|
||||
{
|
||||
_liquidController.InActiveIsPouring();
|
||||
//_liquidController2.InActiveIsPouring();
|
||||
}
|
||||
}
|
||||
}
|
37
Assets/02.Scripts/Prop/Tycoon/Brewing.cs
Normal file
37
Assets/02.Scripts/Prop/Tycoon/Brewing.cs
Normal file
@ -0,0 +1,37 @@
|
||||
using BlueWater.Uis;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWater.Tycoons
|
||||
{
|
||||
public class Brewing : InteractionFurniture
|
||||
{
|
||||
[SerializeField]
|
||||
private string _currentDrinkIdx;
|
||||
|
||||
[SerializeField]
|
||||
private int _currentQuantity;
|
||||
|
||||
public override void Interaction()
|
||||
{
|
||||
var brewingUi = TycoonUiManager.Instance.BrewingUi;
|
||||
brewingUi.SetBrewing(this);
|
||||
brewingUi.Open(TycoonUiManager.Instance.PopupUiList);
|
||||
}
|
||||
|
||||
public override bool CanInteraction()
|
||||
{
|
||||
return !IsOpened;
|
||||
}
|
||||
|
||||
public void SetDrink(string idx, int quantity)
|
||||
{
|
||||
_currentDrinkIdx = idx;
|
||||
_currentQuantity += quantity;
|
||||
}
|
||||
|
||||
public bool IsEmptyDrink()
|
||||
{
|
||||
return string.IsNullOrEmpty(_currentDrinkIdx) || _currentQuantity <= 0;
|
||||
}
|
||||
}
|
||||
}
|
2
Assets/02.Scripts/Prop/Tycoon/Brewing.cs.meta
Normal file
2
Assets/02.Scripts/Prop/Tycoon/Brewing.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c91b7baeb9c76614b96438969213025d
|
@ -0,0 +1,67 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 03802f3276c69a348aaa2515377b47cc, type: 3}
|
||||
m_Name: CocktailDataTable
|
||||
m_EditorClassIdentifier:
|
||||
<Datas>k__BackingField:
|
||||
- <Idx>k__BackingField: Cocktail001
|
||||
<Name>k__BackingField: "\uBD88\uD0C4 \uC218\uC5FC"
|
||||
<RatioRange>k__BackingField: 10
|
||||
<IngredientIdx1>k__BackingField: Drink001
|
||||
<IngredientRatio1>k__BackingField: 80
|
||||
<IngredientIdx2>k__BackingField: Drink002
|
||||
<IngredientRatio2>k__BackingField: 20
|
||||
<IngredientIdx3>k__BackingField:
|
||||
<IngredientRatio3>k__BackingField: 0
|
||||
<IngredientIdx4>k__BackingField:
|
||||
<IngredientRatio4>k__BackingField: 0
|
||||
<IngredientIdx5>k__BackingField:
|
||||
<IngredientRatio5>k__BackingField: 0
|
||||
- <Idx>k__BackingField: Cocktail002
|
||||
<Name>k__BackingField: "\uD558\uD504 \uC564 \uD558\uD504"
|
||||
<RatioRange>k__BackingField: 10
|
||||
<IngredientIdx1>k__BackingField: Drink001
|
||||
<IngredientRatio1>k__BackingField: 50
|
||||
<IngredientIdx2>k__BackingField: Drink002
|
||||
<IngredientRatio2>k__BackingField: 50
|
||||
<IngredientIdx3>k__BackingField:
|
||||
<IngredientRatio3>k__BackingField: 0
|
||||
<IngredientIdx4>k__BackingField:
|
||||
<IngredientRatio4>k__BackingField: 0
|
||||
<IngredientIdx5>k__BackingField:
|
||||
<IngredientRatio5>k__BackingField: 0
|
||||
- <Idx>k__BackingField: Cocktail003
|
||||
<Name>k__BackingField: "\uB9C8\uADF8\uB9C8 \uC628 \uB354\uB85D"
|
||||
<RatioRange>k__BackingField: 15
|
||||
<IngredientIdx1>k__BackingField: Drink001
|
||||
<IngredientRatio1>k__BackingField: 80
|
||||
<IngredientIdx2>k__BackingField: Ice001
|
||||
<IngredientRatio2>k__BackingField: 20
|
||||
<IngredientIdx3>k__BackingField:
|
||||
<IngredientRatio3>k__BackingField: 0
|
||||
<IngredientIdx4>k__BackingField:
|
||||
<IngredientRatio4>k__BackingField: 0
|
||||
<IngredientIdx5>k__BackingField:
|
||||
<IngredientRatio5>k__BackingField: 0
|
||||
- <Idx>k__BackingField: Cocktail004
|
||||
<Name>k__BackingField: "\uAC80\uC740\uC218\uC5FC \uC628 \uB354\uB85D"
|
||||
<RatioRange>k__BackingField: 15
|
||||
<IngredientIdx1>k__BackingField: Drink002
|
||||
<IngredientRatio1>k__BackingField: 80
|
||||
<IngredientIdx2>k__BackingField: Ice001
|
||||
<IngredientRatio2>k__BackingField: 20
|
||||
<IngredientIdx3>k__BackingField:
|
||||
<IngredientRatio3>k__BackingField: 0
|
||||
<IngredientIdx4>k__BackingField:
|
||||
<IngredientRatio4>k__BackingField: 0
|
||||
<IngredientIdx5>k__BackingField:
|
||||
<IngredientRatio5>k__BackingField: 0
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b28d3497d1f428046bc82469f2056bac
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
63
Assets/02.Scripts/ScriptableObject/Item/DrinkDataTable.asset
Normal file
63
Assets/02.Scripts/ScriptableObject/Item/DrinkDataTable.asset
Normal file
@ -0,0 +1,63 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 1f91e197a0d142b40ae1ec8bd1300fb3, type: 3}
|
||||
m_Name: DrinkDataTable
|
||||
m_EditorClassIdentifier:
|
||||
<Datas>k__BackingField:
|
||||
- <Idx>k__BackingField: Drink001
|
||||
<Name>k__BackingField: "\uC6A9\uC554 \uB9E5\uC8FC"
|
||||
<Category>k__BackingField: 1
|
||||
<Amount>k__BackingField: 4000
|
||||
<AlcoholVolume>k__BackingField: 10
|
||||
<CoolWarm>k__BackingField: 40
|
||||
<BitterSweet>k__BackingField: 10
|
||||
<Scent>k__BackingField: 0
|
||||
<IngredientIdx1>k__BackingField:
|
||||
<IngredientQuantity1>k__BackingField: 0
|
||||
<IngredientIdx2>k__BackingField:
|
||||
<IngredientQuantity2>k__BackingField: 0
|
||||
<IngredientIdx3>k__BackingField:
|
||||
<IngredientQuantity3>k__BackingField: 0
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<Color>k__BackingField: {r: 0, g: 0, b: 0, a: 0}
|
||||
- <Idx>k__BackingField: Drink002
|
||||
<Name>k__BackingField: "\uAC80\uC740 \uC218\uC5FC \uB7FC"
|
||||
<Category>k__BackingField: 1
|
||||
<Amount>k__BackingField: 1000
|
||||
<AlcoholVolume>k__BackingField: 40
|
||||
<CoolWarm>k__BackingField: 20
|
||||
<BitterSweet>k__BackingField: 20
|
||||
<Scent>k__BackingField: 0
|
||||
<IngredientIdx1>k__BackingField:
|
||||
<IngredientQuantity1>k__BackingField: 0
|
||||
<IngredientIdx2>k__BackingField:
|
||||
<IngredientQuantity2>k__BackingField: 0
|
||||
<IngredientIdx3>k__BackingField:
|
||||
<IngredientQuantity3>k__BackingField: 0
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<Color>k__BackingField: {r: 0, g: 0, b: 0, a: 0}
|
||||
- <Idx>k__BackingField: Ice001
|
||||
<Name>k__BackingField: "\uC544\uC774\uC2A4 \uC2AC\uB77C\uC784"
|
||||
<Category>k__BackingField: 2
|
||||
<Amount>k__BackingField: 400
|
||||
<AlcoholVolume>k__BackingField: 0
|
||||
<CoolWarm>k__BackingField: -10
|
||||
<BitterSweet>k__BackingField: 0
|
||||
<Scent>k__BackingField: 0
|
||||
<IngredientIdx1>k__BackingField:
|
||||
<IngredientQuantity1>k__BackingField: 0
|
||||
<IngredientIdx2>k__BackingField:
|
||||
<IngredientQuantity2>k__BackingField: 0
|
||||
<IngredientIdx3>k__BackingField:
|
||||
<IngredientQuantity3>k__BackingField: 0
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<Color>k__BackingField: {r: 0, g: 0, b: 0, a: 0}
|
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 24a7d2ebd11ba314684a6d3ef72f76a0
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -12,7 +12,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: e22dd2055785c2f4dadcf76fb593edf4, type: 3}
|
||||
m_Name: FoodDataTable
|
||||
m_EditorClassIdentifier:
|
||||
<FoodDatas>k__BackingField:
|
||||
<Datas>k__BackingField:
|
||||
- <Idx>k__BackingField: 30001
|
||||
<Name>k__BackingField: "\uC2AC\uB77C\uC784 \uD478\uB529"
|
||||
<Type>k__BackingField: 4
|
||||
|
@ -12,7 +12,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: f7fe40513dd0a794689cc8a52ddb2f87, type: 3}
|
||||
m_Name: ItemDataTable
|
||||
m_EditorClassIdentifier:
|
||||
<ItemDataList>k__BackingField:
|
||||
<Datas>k__BackingField:
|
||||
- <Idx>k__BackingField: 10101
|
||||
<Name>k__BackingField: "\uD0B9\uD06C\uB7A9"
|
||||
<Type>k__BackingField: 1
|
||||
@ -81,7 +81,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: -249642080, guid: 551ef1d8906c85f43bed28c7a5a67e9c, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10108
|
||||
<Name>k__BackingField: "\uC2AC\uB77C\uC784 \uCC0C\uAC70\uAE30"
|
||||
@ -91,7 +91,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: 517031ef7cb81d848a246b47006cc498, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10109
|
||||
<Name>k__BackingField: "\uC5BC\uC74C \uAC00\uC2DC"
|
||||
@ -101,7 +101,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: cd0b57bb346bc2f45a42fdc2fdf9e398, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10201
|
||||
<Name>k__BackingField: "\uBC31\uC0C1\uC5B4"
|
||||
@ -111,7 +111,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: 83ba6a22503f6834ab2cd6e9e881a9fd, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10202
|
||||
<Name>k__BackingField: "\uB2C8\uBAA8"
|
||||
@ -191,7 +191,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 472129669, guid: 551ef1d8906c85f43bed28c7a5a67e9c, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10403
|
||||
<Name>k__BackingField: "\uC0AC\uACFC"
|
||||
@ -201,7 +201,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: -55580973, guid: 551ef1d8906c85f43bed28c7a5a67e9c, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10404
|
||||
<Name>k__BackingField: "\uB808\uBAAC"
|
||||
@ -211,7 +211,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: -1272800058, guid: 551ef1d8906c85f43bed28c7a5a67e9c, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10501
|
||||
<Name>k__BackingField: "\uB9C8\uB298"
|
||||
@ -231,7 +231,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 1687559360, guid: 551ef1d8906c85f43bed28c7a5a67e9c, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10503
|
||||
<Name>k__BackingField: "\uB300\uD30C"
|
||||
@ -241,7 +241,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: c99299b384d0fb147ba287c14bca05f7, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10504
|
||||
<Name>k__BackingField: "\uD30C\uC2AC\uB9AC"
|
||||
@ -271,7 +271,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: 8630b1c884d84ad4db92660bd1fbff25, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10507
|
||||
<Name>k__BackingField: "\uBC30\uCD94"
|
||||
@ -281,7 +281,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: -224896251, guid: 551ef1d8906c85f43bed28c7a5a67e9c, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10508
|
||||
<Name>k__BackingField: "\uBE0C\uB85C\uCF5C\uB9AC"
|
||||
@ -291,7 +291,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: daecfc8f8ea7e3f4c93ba7d71c566bf9, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10509
|
||||
<Name>k__BackingField: "\uAE7B\uC78E"
|
||||
@ -331,7 +331,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: d9bedb12956adb14283ae6bc1287fd9e, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10701
|
||||
<Name>k__BackingField: "\uC18C\uAE08"
|
||||
@ -341,7 +341,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 1089943196, guid: 551ef1d8906c85f43bed28c7a5a67e9c, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10702
|
||||
<Name>k__BackingField: "\uACE0\uCDA7\uAC00\uB8E8"
|
||||
@ -361,7 +361,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: 910fd09388091a24abfc27d2ca0806bb, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10704
|
||||
<Name>k__BackingField: "\uAC04\uC7A5"
|
||||
@ -371,7 +371,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: 24e97b05d9cfdb548adb59f5fe266289, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10705
|
||||
<Name>k__BackingField: "\uBC84\uD130"
|
||||
@ -381,7 +381,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: 96e97973084d87e4bbeef865b3040c34, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 10706
|
||||
<Name>k__BackingField: "\uC124\uD0D5"
|
||||
@ -391,7 +391,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 100
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: e841bb6ae64327c43a6b26d5d8ca0a90, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 20001
|
||||
<Name>k__BackingField: "\uBCF4\uBB3C \uC0C1\uC790 (\uB3D9)"
|
||||
@ -441,7 +441,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 500
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: 017d2be51bb271e499f8facd2e2aaeae, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 30002
|
||||
<Name>k__BackingField: "\uC5BC\uC74C\uB3C4\uCE58 \uD325\uBE59\uC218"
|
||||
@ -451,7 +451,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 500
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 103910208, guid: 551ef1d8906c85f43bed28c7a5a67e9c, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 30003
|
||||
<Name>k__BackingField: "\uCF54\uBFD4\uC18C \uBFD4 \uD280\uAE40"
|
||||
@ -471,7 +471,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 500
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 1681919652, guid: 551ef1d8906c85f43bed28c7a5a67e9c, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 30005
|
||||
<Name>k__BackingField: "\uBC31\uC0C1\uC5B4 \uD1B5\uAD6C\uC774"
|
||||
@ -481,7 +481,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 150
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 1040357770, guid: 551ef1d8906c85f43bed28c7a5a67e9c, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 30006
|
||||
<Name>k__BackingField: "\uBC84\uD130 \uC870\uAC1C \uAD6C\uC774"
|
||||
@ -491,7 +491,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 140
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: -1313039003, guid: 551ef1d8906c85f43bed28c7a5a67e9c, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 40001
|
||||
<Name>k__BackingField: "\uB9E5\uC8FC"
|
||||
@ -501,7 +501,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 0
|
||||
<Weight>k__BackingField: 0
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 1098625912, guid: 551ef1d8906c85f43bed28c7a5a67e9c, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 50001
|
||||
<Name>k__BackingField: "\uD558\uD2B8 \uBC18 \uAC1C"
|
||||
@ -511,8 +511,8 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 0
|
||||
<Weight>k__BackingField: 0
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: 8de91ee4e8525bb46bb309c15c5207d3, type: 3}
|
||||
<ItemPrefab>k__BackingField: {fileID: 8962896418303621511, guid: 66d94bc59db241a4895f8e4fff7ea201, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 50002
|
||||
<Name>k__BackingField: "\uD558\uD2B8 \uD55C \uAC1C"
|
||||
<Type>k__BackingField: 5
|
||||
@ -521,8 +521,8 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 0
|
||||
<Weight>k__BackingField: 0
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: 4e2159443b5aedf43849ec062f4f8016, type: 3}
|
||||
<ItemPrefab>k__BackingField: {fileID: 8962896418303621511, guid: 0dc7ed0facf2fca4b80244d0d95e2557, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 60001
|
||||
<Name>k__BackingField: "\uC82C\uC2A4\uD1A4"
|
||||
<Type>k__BackingField: 6
|
||||
@ -531,7 +531,7 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 1000
|
||||
<Weight>k__BackingField: 100
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: 1ddf647b8857bff45a83e009dbb9ec8c, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 60002
|
||||
<Name>k__BackingField: "\uD480\uC78E"
|
||||
@ -541,8 +541,8 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 10
|
||||
<Weight>k__BackingField: 1
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: ff92fed29107bb94e8011820502e8cb8, type: 3}
|
||||
<ItemPrefab>k__BackingField: {fileID: 1370112280380943697, guid: 6dee5e24767665b48aa614edcd6f71a2, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
- <Idx>k__BackingField: 70001
|
||||
<Name>k__BackingField: "\uC7A5\uC791"
|
||||
<Type>k__BackingField: 7
|
||||
@ -551,5 +551,5 @@ MonoBehaviour:
|
||||
<Price>k__BackingField: 0
|
||||
<Weight>k__BackingField: 0
|
||||
<Description>k__BackingField:
|
||||
<Sprite>k__BackingField: {fileID: 21300000, guid: 318d98fbc21718d459483945b60b9baf, type: 3}
|
||||
<Sprite>k__BackingField: {fileID: 0}
|
||||
<ItemPrefab>k__BackingField: {fileID: 0}
|
||||
|
@ -40,8 +40,8 @@ namespace BlueWater.Tycoons
|
||||
|
||||
protected override void OnAwake()
|
||||
{
|
||||
_customerDatas = new Dictionary<string, CustomerData>(_customerDataSo.CustomerDatas.Count);
|
||||
foreach (var element in _customerDataSo.CustomerDatas)
|
||||
_customerDatas = new Dictionary<string, CustomerData>(_customerDataSo.Datas.Count);
|
||||
foreach (var element in _customerDataSo.Datas)
|
||||
{
|
||||
_customerDatas.TryAdd(element.Idx, element);
|
||||
}
|
||||
|
@ -1,4 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BlueWater.Items;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWater.Tycoons
|
||||
@ -8,5 +11,34 @@ namespace BlueWater.Tycoons
|
||||
{
|
||||
[field: SerializeField]
|
||||
public int Rating { get; private set; } = 1;
|
||||
|
||||
[field: Title("레시피 데이터")]
|
||||
[field: SerializeField]
|
||||
public List<string> FoodRecipes { get; private set; } = new();
|
||||
|
||||
[field: SerializeField]
|
||||
public List<string> DrinkRecipes { get; private set; } = new();
|
||||
|
||||
public void AddFoodRecipe(string idx)
|
||||
{
|
||||
if (FoodRecipes.Contains(idx)) return;
|
||||
|
||||
var foodData = ItemManager.Instance.GetFoodDataByIdx(idx);
|
||||
if (foodData == null) return;
|
||||
|
||||
FoodRecipes.Add(idx);
|
||||
TycoonEvents.OnFoodRecipeAcquired?.Invoke(idx);
|
||||
}
|
||||
|
||||
public void AddDrinkRecipe(string idx)
|
||||
{
|
||||
if (DrinkRecipes.Contains(idx)) return;
|
||||
|
||||
var drinkData = ItemManager.Instance.GetDrinkDataByIdx(idx);
|
||||
if (drinkData == null) return;
|
||||
|
||||
DrinkRecipes.Add(idx);
|
||||
TycoonEvents.OnDrinkRecipeAcquired?.Invoke(idx);
|
||||
}
|
||||
}
|
||||
}
|
22
Assets/02.Scripts/Tycoon/TycoonEvents.cs
Normal file
22
Assets/02.Scripts/Tycoon/TycoonEvents.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using BlueWater.Items;
|
||||
|
||||
namespace BlueWater
|
||||
{
|
||||
public static class TycoonEvents
|
||||
{
|
||||
// 음료
|
||||
public static Action<string> OnDrinkRecipeAcquired;
|
||||
|
||||
public static Action OnBrewingUiOpened;
|
||||
public static Action OnBrewingUiClosed;
|
||||
public static Action<DrinkData> OnDrinkRecipeSelected;
|
||||
|
||||
public static Action OnDrinkUiOpened;
|
||||
public static Action OnDrinkUiClosed;
|
||||
|
||||
|
||||
// 요리
|
||||
public static Action<string> OnFoodRecipeAcquired;
|
||||
}
|
||||
}
|
2
Assets/02.Scripts/Tycoon/TycoonEvents.cs.meta
Normal file
2
Assets/02.Scripts/Tycoon/TycoonEvents.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 994f39ba80e685044b9bc070cd511a09
|
70
Assets/02.Scripts/Ui/Tycoon/BrewingIngredientSlotUi.cs
Normal file
70
Assets/02.Scripts/Ui/Tycoon/BrewingIngredientSlotUi.cs
Normal file
@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using BlueWater.Items;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace BlueWater.Uis
|
||||
{
|
||||
[Serializable]
|
||||
public class BrewingIngredientSlotUi : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private Image _image;
|
||||
|
||||
[SerializeField]
|
||||
private TMP_Text _quantity;
|
||||
|
||||
[SerializeField]
|
||||
private Color _enoughColor = Color.black;
|
||||
|
||||
[SerializeField]
|
||||
private Color _notEnoughColor = Color.red;
|
||||
|
||||
private string _ingredientIdx;
|
||||
private int _inventoryQuantity;
|
||||
private int _needQuantity;
|
||||
private bool _isEnough;
|
||||
|
||||
/// <summary>
|
||||
/// 양조장에서 레시피를 선택했을 때, 재료를 설정하는 함수
|
||||
/// </summary>
|
||||
/// <param name="ingredientIdx">재료의 Idx</param>
|
||||
/// <param name="quantity">재료 요구량</param>
|
||||
public void SetIngredient(string ingredientIdx, int quantity)
|
||||
{
|
||||
_ingredientIdx = ingredientIdx;
|
||||
_needQuantity = quantity;
|
||||
var ingredientItemData = ItemManager.Instance.GetItemDataByIdx(_ingredientIdx);
|
||||
_image.sprite = ingredientItemData.Sprite;
|
||||
_inventoryQuantity = DataManager.Instance.Inventory.GetItemByIdx(_ingredientIdx).Quantity;
|
||||
SetQuantity();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 재료 수량 변경하는 함수
|
||||
/// 여러개를 제작하는 경우 multiply값을 조정
|
||||
/// </summary>
|
||||
/// <param name="multiply">제조하는 개수</param>
|
||||
public void SetQuantity(int multiply = 1)
|
||||
{
|
||||
var finalNeedQuantity = _needQuantity * multiply;
|
||||
_quantity.text = $"{_inventoryQuantity}/{finalNeedQuantity}";
|
||||
_isEnough = _inventoryQuantity >= finalNeedQuantity;
|
||||
_quantity.color = _isEnough ? _enoughColor : _notEnoughColor;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 현재 인벤토리의 재료로 만들 수 있는 최대 개수 반환 함수
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int GetMaxQuantity()
|
||||
{
|
||||
if (_needQuantity == 0) return 1;
|
||||
|
||||
return _inventoryQuantity / _needQuantity;
|
||||
}
|
||||
|
||||
public bool GetIsEnough() => _isEnough;
|
||||
}
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9cbe519b68d07ad4285f091528d6a34d
|
205
Assets/02.Scripts/Ui/Tycoon/BrewingUi.cs
Normal file
205
Assets/02.Scripts/Ui/Tycoon/BrewingUi.cs
Normal file
@ -0,0 +1,205 @@
|
||||
using System.Collections.Generic;
|
||||
using BlueWater.Items;
|
||||
using BlueWater.Tycoons;
|
||||
using Sirenix.OdinInspector;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace BlueWater.Uis
|
||||
{
|
||||
public class BrewingUi : SwitchActionPopupUi
|
||||
{
|
||||
[SerializeField, Required]
|
||||
private DrinkRecipeSlotUi _drinkRecipeSlotUiPrefab;
|
||||
|
||||
[SerializeField, Required]
|
||||
private Transform _drinkRecipeSpawnLocation;
|
||||
|
||||
[SerializeField]
|
||||
private Image _drinkImage;
|
||||
|
||||
[SerializeField]
|
||||
private TMP_Text _brewingQuantityText;
|
||||
|
||||
[SerializeField]
|
||||
private Button _convertButton;
|
||||
|
||||
[Title("실시간 데이터")]
|
||||
[SerializeField]
|
||||
private List<BrewingIngredientSlotUi> _brewingIngredientSlotUis = new(3);
|
||||
|
||||
[SerializeField]
|
||||
private DrinkData _selectedDrinkData;
|
||||
|
||||
private Brewing _currentBrewing;
|
||||
private int _brewingQuantity;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Initialize();
|
||||
|
||||
TycoonEvents.OnDrinkRecipeAcquired += AddDrinkRecipe;
|
||||
TycoonEvents.OnDrinkRecipeSelected += SelectDrinkRecipe;
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
TycoonEvents.OnDrinkRecipeAcquired -= AddDrinkRecipe;
|
||||
TycoonEvents.OnDrinkRecipeSelected -= SelectDrinkRecipe;
|
||||
}
|
||||
|
||||
private void Initialize()
|
||||
{
|
||||
foreach (Transform element in _drinkRecipeSpawnLocation)
|
||||
{
|
||||
Destroy(element.gameObject);
|
||||
}
|
||||
|
||||
var drinkRecipes = DataManager.Instance.TycoonData.DrinkRecipes;
|
||||
foreach (var element in drinkRecipes)
|
||||
{
|
||||
AddDrinkRecipe(element);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Open(List<PopupUi> popupUiList)
|
||||
{
|
||||
base.Open(popupUiList);
|
||||
|
||||
ResetBrewingUi();
|
||||
TycoonEvents.OnBrewingUiOpened?.Invoke();
|
||||
}
|
||||
|
||||
public override void Close()
|
||||
{
|
||||
base.Close();
|
||||
|
||||
ResetBrewingUi();
|
||||
TycoonEvents.OnBrewingUiClosed?.Invoke();
|
||||
}
|
||||
|
||||
private void ResetBrewingUi()
|
||||
{
|
||||
_currentBrewing = null;
|
||||
_drinkImage.enabled = false;
|
||||
_selectedDrinkData = null;
|
||||
SetBrewingQuantity(1);
|
||||
foreach (var element in _brewingIngredientSlotUis)
|
||||
{
|
||||
element.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void SetBrewing(Brewing brewing)
|
||||
{
|
||||
_currentBrewing = brewing;
|
||||
}
|
||||
|
||||
private void AddDrinkRecipe(string idx)
|
||||
{
|
||||
var instance = Instantiate(_drinkRecipeSlotUiPrefab, _drinkRecipeSpawnLocation);
|
||||
instance.Initialize(idx);
|
||||
}
|
||||
|
||||
public void SelectDrinkRecipe(DrinkData drinkData)
|
||||
{
|
||||
_selectedDrinkData = drinkData;
|
||||
|
||||
_drinkImage.sprite = drinkData.Sprite;
|
||||
_drinkImage.enabled = true;
|
||||
|
||||
var ingredients = _selectedDrinkData.GetValidIngredients();
|
||||
for (var i = 0; i < 3; i++)
|
||||
{
|
||||
if (ingredients.Count > i)
|
||||
{
|
||||
_brewingIngredientSlotUis[i].SetIngredient(ingredients[i].Idx, ingredients[i].Quantity);
|
||||
_brewingIngredientSlotUis[i].gameObject.SetActive(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
_brewingIngredientSlotUis[i].gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
SetBrewingQuantity(1);
|
||||
}
|
||||
|
||||
private void SetBrewingQuantity(int quantity)
|
||||
{
|
||||
_brewingQuantity = Mathf.Clamp(quantity, 1, 99);
|
||||
_brewingQuantityText.text = _brewingQuantity.ToString();
|
||||
|
||||
foreach (var element in _brewingIngredientSlotUis)
|
||||
{
|
||||
element.SetQuantity(quantity);
|
||||
}
|
||||
|
||||
CheckConvertButton();
|
||||
}
|
||||
|
||||
public void IncreaseBrewingQuantity()
|
||||
{
|
||||
_brewingQuantity++;
|
||||
SetBrewingQuantity(_brewingQuantity);
|
||||
}
|
||||
|
||||
public void DecreaseBrewingQuantity()
|
||||
{
|
||||
_brewingQuantity--;
|
||||
SetBrewingQuantity(_brewingQuantity);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 현재 가지고 있는 재료의 개수만큼 최대 수량으로 설정하는 버튼
|
||||
/// </summary>
|
||||
public void MaxButton()
|
||||
{
|
||||
var maxQuantity = int.MaxValue;
|
||||
foreach (var element in _brewingIngredientSlotUis)
|
||||
{
|
||||
var newMaxQuantity = element.GetMaxQuantity();
|
||||
if (maxQuantity <= newMaxQuantity) continue;
|
||||
|
||||
maxQuantity = newMaxQuantity;
|
||||
}
|
||||
|
||||
SetBrewingQuantity(maxQuantity <= 0 ? 1 : maxQuantity);
|
||||
}
|
||||
|
||||
private void CheckConvertButton()
|
||||
{
|
||||
if (_selectedDrinkData == null || !_currentBrewing.IsEmptyDrink())
|
||||
{
|
||||
_convertButton.interactable = false;
|
||||
return;
|
||||
}
|
||||
|
||||
var ingredients = _selectedDrinkData.GetValidIngredients();
|
||||
if (ingredients.Count <= 0)
|
||||
{
|
||||
_convertButton.interactable = false;
|
||||
return;
|
||||
}
|
||||
|
||||
for (var i = 0; i < ingredients.Count; i++)
|
||||
{
|
||||
if (_brewingIngredientSlotUis[i].GetIsEnough()) continue;
|
||||
|
||||
_convertButton.interactable = false;
|
||||
return;
|
||||
}
|
||||
|
||||
_convertButton.interactable = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 술을 만들 때 최종 버튼
|
||||
/// </summary>
|
||||
public void ConvertButton()
|
||||
{
|
||||
//_currentBrewing.SetDrink(_selectedDrinkData.Idx, );
|
||||
}
|
||||
}
|
||||
}
|
2
Assets/02.Scripts/Ui/Tycoon/BrewingUi.cs.meta
Normal file
2
Assets/02.Scripts/Ui/Tycoon/BrewingUi.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e31b5881c81ad924b93ec7dcfe7baf19
|
@ -62,13 +62,13 @@ namespace BlueWater.Uis
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_dataManager.OnChangeFoodRecipe += AddFoodRecipe;
|
||||
TycoonEvents.OnFoodRecipeAcquired += AddFoodRecipe;
|
||||
_dataManager.Inventory.OnChangeItemSlot += OnInventoryChange;
|
||||
}
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
_dataManager.OnChangeFoodRecipe -= AddFoodRecipe;
|
||||
TycoonEvents.OnFoodRecipeAcquired -= AddFoodRecipe;
|
||||
_dataManager.Inventory.OnChangeItemSlot -= OnInventoryChange;
|
||||
}
|
||||
|
||||
@ -112,7 +112,7 @@ namespace BlueWater.Uis
|
||||
|
||||
private void InventorySynchronization()
|
||||
{
|
||||
foreach (var element in _dataManager.FoodRecipes)
|
||||
foreach (var element in _dataManager.TycoonData.FoodRecipes)
|
||||
{
|
||||
var newItemSlot = Instantiate(_finishedFoodSlotUi, _finishedFoodSlotLocation).GetComponent<TycoonItemSlotUi>();
|
||||
var foodData = _itemManager.GetFoodDataByIdx(element);
|
||||
@ -122,8 +122,9 @@ namespace BlueWater.Uis
|
||||
}
|
||||
}
|
||||
|
||||
private void AddFoodRecipe(FoodData foodData)
|
||||
private void AddFoodRecipe(string idx)
|
||||
{
|
||||
var foodData = _itemManager.GetFoodDataByIdx(idx);
|
||||
var newItemSlot = Instantiate(_finishedFoodSlotUi, _finishedFoodSlotLocation).GetComponent<TycoonItemSlotUi>();
|
||||
newItemSlot.SetFoodData(foodData);
|
||||
_finishedFoodSlotUis.Add(newItemSlot);
|
||||
|
23
Assets/02.Scripts/Ui/Tycoon/DrinkIngredientSlotUi.cs
Normal file
23
Assets/02.Scripts/Ui/Tycoon/DrinkIngredientSlotUi.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace BlueWater.Uis
|
||||
{
|
||||
[Serializable]
|
||||
public class DrinkIngredientSlotUi : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private Button _button;
|
||||
|
||||
[SerializeField]
|
||||
private Image _image;
|
||||
|
||||
[SerializeField]
|
||||
private TMP_Text _amount;
|
||||
|
||||
[SerializeField]
|
||||
private TMP_Text _name;
|
||||
}
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a4db4e95fa40f3f4cb7f3be76c9f3457
|
9
Assets/02.Scripts/Ui/Tycoon/DrinkIngredientUi.cs
Normal file
9
Assets/02.Scripts/Ui/Tycoon/DrinkIngredientUi.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace BlueWater.Uis
|
||||
{
|
||||
public class DrinkIngredientUi : MonoBehaviour
|
||||
{
|
||||
|
||||
}
|
||||
}
|
2
Assets/02.Scripts/Ui/Tycoon/DrinkIngredientUi.cs.meta
Normal file
2
Assets/02.Scripts/Ui/Tycoon/DrinkIngredientUi.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 63ce83525ba260f46904cfce776fc892
|
43
Assets/02.Scripts/Ui/Tycoon/DrinkRecipeSlotUi.cs
Normal file
43
Assets/02.Scripts/Ui/Tycoon/DrinkRecipeSlotUi.cs
Normal file
@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using BlueWater.Items;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace BlueWater.Uis
|
||||
{
|
||||
[Serializable]
|
||||
public class DrinkRecipeSlotUi : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private Button _button;
|
||||
|
||||
[SerializeField]
|
||||
private Image _image;
|
||||
|
||||
[SerializeField]
|
||||
private TMP_Text _name;
|
||||
|
||||
[SerializeField]
|
||||
private DrinkData _drinkData;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
_button.onClick.AddListener(OnButtonClick);
|
||||
}
|
||||
|
||||
public void Initialize(string idx)
|
||||
{
|
||||
_drinkData = ItemManager.Instance.GetDrinkDataByIdx(idx);
|
||||
_image.sprite = _drinkData.Sprite;
|
||||
_name.text = _drinkData.Name;
|
||||
}
|
||||
|
||||
public void OnButtonClick()
|
||||
{
|
||||
TycoonEvents.OnDrinkRecipeSelected?.Invoke(_drinkData);
|
||||
}
|
||||
|
||||
public DrinkData GetDrinkData() => _drinkData;
|
||||
}
|
||||
}
|
2
Assets/02.Scripts/Ui/Tycoon/DrinkRecipeSlotUi.cs.meta
Normal file
2
Assets/02.Scripts/Ui/Tycoon/DrinkRecipeSlotUi.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7bd1ab91d6987874b990c073d62ad645
|
23
Assets/02.Scripts/Ui/Tycoon/DrinkUi.cs
Normal file
23
Assets/02.Scripts/Ui/Tycoon/DrinkUi.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BlueWater.Uis
|
||||
{
|
||||
public class DrinkUi : SwitchActionPopupUi
|
||||
{
|
||||
public override void Open(List<PopupUi> popupUiList)
|
||||
{
|
||||
base.Open(popupUiList);
|
||||
|
||||
TycoonCameraManager.Instance.SetMainCamera(TycoonCameraType.Bar);
|
||||
TycoonEvents.OnDrinkUiOpened?.Invoke();
|
||||
}
|
||||
|
||||
public override void Close()
|
||||
{
|
||||
base.Close();
|
||||
|
||||
TycoonCameraManager.Instance.SetMainCamera(TycoonCameraType.Base);
|
||||
TycoonEvents.OnDrinkUiClosed?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
2
Assets/02.Scripts/Ui/Tycoon/DrinkUi.cs.meta
Normal file
2
Assets/02.Scripts/Ui/Tycoon/DrinkUi.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1e18fddab7a69284394b8b5bad8d1dbe
|
@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using BlueWater.Tycoons;
|
||||
using DG.Tweening;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
@ -27,6 +25,12 @@ namespace BlueWater.Uis
|
||||
[field: SerializeField]
|
||||
public TycoonStageUi TycoonStageUi { get; private set; }
|
||||
|
||||
[field: SerializeField]
|
||||
public BrewingUi BrewingUi { get; private set; }
|
||||
|
||||
[field: SerializeField]
|
||||
public DrinkUi DrinkUi { get; private set; }
|
||||
|
||||
// Variables
|
||||
public List<PopupUi> PopupUiList { get; private set; }
|
||||
|
||||
@ -79,6 +83,8 @@ namespace BlueWater.Uis
|
||||
TycoonUpgradeUi = GetComponentInChildren<TycoonUpgradeUi>(true);
|
||||
TycoonManagementUi = GetComponentInChildren<TycoonManagementUi>(true);
|
||||
TycoonStageUi = GetComponentInChildren<TycoonStageUi>(true);
|
||||
BrewingUi = GetComponentInChildren<BrewingUi>(true);
|
||||
DrinkUi = GetComponentInChildren<DrinkUi>(true);
|
||||
PopupUiList = new List<PopupUi>(8);
|
||||
}
|
||||
|
||||
|
@ -514,7 +514,7 @@ MonoBehaviour:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 1674052485383758547}
|
||||
m_TargetAssemblyTypeName: BlueWater.Players.Tycoons.TycoonInput, Assembly-CSharp
|
||||
m_MethodName: OnEscapeBar
|
||||
m_MethodName: OnCancel
|
||||
m_Mode: 0
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
|
@ -76,9 +76,9 @@ SpriteRenderer:
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_SortingLayerID: -403788685
|
||||
m_SortingLayer: 1
|
||||
m_SortingOrder: 11
|
||||
m_Sprite: {fileID: 21300000, guid: c6fd44c44ec0c504c9d09e9c3e421708, type: 3}
|
||||
m_Color: {r: 0, g: 0.7294118, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
|
@ -49,6 +49,8 @@ MonoBehaviour:
|
||||
_itemDataSo: {fileID: 11400000, guid: d7011c71193e95743aa868ca1bea6010, type: 2}
|
||||
_itemDropTableSo: {fileID: 11400000, guid: 9e1384a77106eb845ad86d6834ba9a52, type: 2}
|
||||
_foodDataSo: {fileID: 11400000, guid: 7b282dfe68d23cd48a8f437ae2cd7dde, type: 2}
|
||||
_cocktailDataSo: {fileID: 11400000, guid: b28d3497d1f428046bc82469f2056bac, type: 2}
|
||||
_drinkDataSo: {fileID: 11400000, guid: 24a7d2ebd11ba314684a6d3ef72f76a0, type: 2}
|
||||
<ItemSlotDataSo>k__BackingField: {fileID: 11400000, guid: 1e74e5d3760c6a74c820233d292733c1, type: 2}
|
||||
_randomDropRadius: 3
|
||||
_minSeparationDistance: 1.5
|
||||
|
@ -3092,6 +3092,7 @@ Transform:
|
||||
- {fileID: 2653731595491371991}
|
||||
- {fileID: 4218287217843781513}
|
||||
- {fileID: 1582116343231843844}
|
||||
- {fileID: 6160960862795635159}
|
||||
m_Father: {fileID: 4449232531499695111}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &9041926907780427371
|
||||
@ -8124,6 +8125,111 @@ Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 1061695247072719575, guid: 28c8f2cd9a2817345b5d1fe15e1bebd3, type: 3}
|
||||
m_PrefabInstance: {fileID: 6737716737532388567}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &6826673870604027189
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 1402113424960589398}
|
||||
m_Modifications:
|
||||
- target: {fileID: 809828747251277026, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 22.78
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 809828747251277026, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 809828747251277026, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0.09
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 809828747251277026, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 809828747251277026, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 809828747251277026, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 809828747251277026, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 809828747251277026, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 809828747251277026, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 809828747251277026, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5897095096647521783, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Brewing
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8652528336631469544, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: <VisualLook>k__BackingField
|
||||
value:
|
||||
objectReference: {fileID: 785157441166809850}
|
||||
- target: {fileID: 8652528336631469544, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: <InteractionUi>k__BackingField
|
||||
value:
|
||||
objectReference: {fileID: 2646689526820350554}
|
||||
- target: {fileID: 8652528336631469544, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: <CenterTransform>k__BackingField
|
||||
value:
|
||||
objectReference: {fileID: 6160960862795635159}
|
||||
- target: {fileID: 8652528336631469544, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: <InteractionCanvas>k__BackingField
|
||||
value:
|
||||
objectReference: {fileID: 2464174658713364658}
|
||||
- target: {fileID: 8793236136028073839, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8793236136028073839, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8793236136028073839, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
--- !u!212 &785157441166809850 stripped
|
||||
SpriteRenderer:
|
||||
m_CorrespondingSourceObject: {fileID: 6077686033771388879, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
m_PrefabInstance: {fileID: 6826673870604027189}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!223 &2464174658713364658 stripped
|
||||
Canvas:
|
||||
m_CorrespondingSourceObject: {fileID: 8975593228546502023, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
m_PrefabInstance: {fileID: 6826673870604027189}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!224 &2646689526820350554 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 8793236136028073839, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
m_PrefabInstance: {fileID: 6826673870604027189}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &6160960862795635159 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 809828747251277026, guid: 1a2352b28d12d8447add43c57d5693cd, type: 3}
|
||||
m_PrefabInstance: {fileID: 6826673870604027189}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &7034712271388384592
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
167
Assets/05.Prefabs/Props/Furniture/Interactions/Brewing.prefab
Normal file
167
Assets/05.Prefabs/Props/Furniture/Interactions/Brewing.prefab
Normal file
@ -0,0 +1,167 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &7343451337687172630
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1180174675498993111, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 40
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2106642157007834423, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2234961990804426782, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_Size.z
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2234961990804426782, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_Center.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2234961990804426782, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_IsTrigger
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2301048832536013177, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.18181819
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2301048832536013177, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 0.18181819
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2301048832536013177, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 0.18181819
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2301048832536013177, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 80
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3580758810857167321, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_Sprite
|
||||
value:
|
||||
objectReference: {fileID: -2413806693520163455, guid: e074a9b4b276847b0b578d2c96d2c1db, type: 3}
|
||||
- target: {fileID: 3580758810857167321, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_WasSpriteAssigned
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3764902268943045601, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Brewing
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7438534416270888028, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0.01
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7438534416270888028, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 0.7071068
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7438534416270888028, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0.7071068
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7438534416270888028, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 90
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986070582027999988, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986070582027999988, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986070582027999988, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986070582027999988, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986070582027999988, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986070582027999988, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986070582027999988, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986070582027999988, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986070582027999988, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986070582027999988, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986070582027999988, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986070582027999988, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986070582027999988, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 9047629830516719732, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_Sprite
|
||||
value:
|
||||
objectReference: {fileID: 21300000, guid: 4fd4ec246d4e26642bf91830e74f9ef6, type: 3}
|
||||
- target: {fileID: 9047629830516719732, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
propertyPath: m_WasSpriteAssigned
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents:
|
||||
- targetCorrespondingSourceObject: {fileID: 3764902268943045601, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 8652528336631469544}
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
--- !u!1 &5897095096647521783 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 3764902268943045601, guid: 3f9f846a7f237924e97c9acf370d991d, type: 3}
|
||||
m_PrefabInstance: {fileID: 7343451337687172630}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &8652528336631469544
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5897095096647521783}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: c91b7baeb9c76614b96438969213025d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
<CenterTransform>k__BackingField: {fileID: 0}
|
||||
<VisualLook>k__BackingField: {fileID: 0}
|
||||
<InteractionCanvas>k__BackingField: {fileID: 0}
|
||||
<InteractionUi>k__BackingField: {fileID: 0}
|
||||
<OutlineMaterial>k__BackingField: {fileID: 2100000, guid: 9db92b3ac1f276e42ae7d7bcfbbca549, type: 2}
|
||||
<EnableInteraction>k__BackingField: 1
|
||||
<InteractionRadius>k__BackingField: 1
|
||||
IsOpened: 0
|
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a2352b28d12d8447add43c57d5693cd
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
305
Assets/05.Prefabs/Uis/Tycoons/BrewingIngredientSlotUi.prefab
Normal file
305
Assets/05.Prefabs/Uis/Tycoons/BrewingIngredientSlotUi.prefab
Normal file
@ -0,0 +1,305 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &1182616395320353421
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4291285538023367731}
|
||||
- component: {fileID: 3526131180264739386}
|
||||
- component: {fileID: 1867833522526193987}
|
||||
- component: {fileID: 267286335665872847}
|
||||
m_Layer: 5
|
||||
m_Name: BrewingIngredientSlotUi
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4291285538023367731
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1182616395320353421}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 6805624194781434691}
|
||||
- {fileID: 4191877325789217629}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 70}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3526131180264739386
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1182616395320353421}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &1867833522526193987
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1182616395320353421}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &267286335665872847
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1182616395320353421}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9cbe519b68d07ad4285f091528d6a34d, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_image: {fileID: 5116175286389725112}
|
||||
_quantity: {fileID: 4457544949394274766}
|
||||
--- !u!1 &5042975899005958474
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4191877325789217629}
|
||||
- component: {fileID: 5010397983200453369}
|
||||
- component: {fileID: 4457544949394274766}
|
||||
m_Layer: 5
|
||||
m_Name: Quantity
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4191877325789217629
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5042975899005958474}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4291285538023367731}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0.5}
|
||||
m_AnchorMax: {x: 1, y: 0.5}
|
||||
m_AnchoredPosition: {x: 140, y: 0}
|
||||
m_SizeDelta: {x: -280, y: 80}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5010397983200453369
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5042975899005958474}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &4457544949394274766
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5042975899005958474}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: 0/1
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: dabfdeb80b25d44b4ace56414d0eb4ad, type: 2}
|
||||
m_sharedMaterial: {fileID: 2100000, guid: 0e5360dce269ccc42b822a424d66fbd4, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4278190080
|
||||
m_fontColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 36
|
||||
m_fontSizeBase: 36
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 0
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!1 &6090708670001506049
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6805624194781434691}
|
||||
- component: {fileID: 6664213692802274154}
|
||||
- component: {fileID: 5116175286389725112}
|
||||
m_Layer: 5
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &6805624194781434691
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6090708670001506049}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 4291285538023367731}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 200, y: 0}
|
||||
m_SizeDelta: {x: 80, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &6664213692802274154
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6090708670001506049}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &5116175286389725112
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6090708670001506049}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.1981132, g: 0.1981132, b: 0.1981132, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f9e46dadb5448ee4883f8b114e9c6488
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
489
Assets/05.Prefabs/Uis/Tycoons/DrinkIngredientSlotUi.prefab
Normal file
489
Assets/05.Prefabs/Uis/Tycoons/DrinkIngredientSlotUi.prefab
Normal file
@ -0,0 +1,489 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &2791049917048063549
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2061157754719405327}
|
||||
- component: {fileID: 5529415097269166968}
|
||||
- component: {fileID: 7573605139369236078}
|
||||
m_Layer: 5
|
||||
m_Name: Amount
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &2061157754719405327
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2791049917048063549}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3591675408625319010}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 1}
|
||||
m_AnchorMax: {x: 0.5, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -120}
|
||||
m_SizeDelta: {x: 240, y: 60}
|
||||
m_Pivot: {x: 0.5, y: 1}
|
||||
--- !u!222 &5529415097269166968
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2791049917048063549}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &7573605139369236078
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2791049917048063549}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: 100%
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: dabfdeb80b25d44b4ace56414d0eb4ad, type: 2}
|
||||
m_sharedMaterial: {fileID: 2100000, guid: 0e5360dce269ccc42b822a424d66fbd4, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 36
|
||||
m_fontSizeBase: 24
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 1
|
||||
m_fontSizeMin: 12
|
||||
m_fontSizeMax: 36
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 0
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!1 &3318603451250692738
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3591675408625319010}
|
||||
- component: {fileID: 8191011795703834529}
|
||||
- component: {fileID: 7012204021464368899}
|
||||
- component: {fileID: 3225355617982558926}
|
||||
- component: {fileID: 8019154252991896507}
|
||||
m_Layer: 5
|
||||
m_Name: DrinkIngredientSlotUi
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3591675408625319010
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3318603451250692738}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1640367631470655499}
|
||||
- {fileID: 2061157754719405327}
|
||||
- {fileID: 1774467029268940608}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8191011795703834529
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3318603451250692738}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &7012204021464368899
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3318603451250692738}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0, b: 0, a: 0.48235294}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &3225355617982558926
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3318603451250692738}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 7012204021464368899}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!114 &8019154252991896507
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3318603451250692738}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a4db4e95fa40f3f4cb7f3be76c9f3457, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_button: {fileID: 3225355617982558926}
|
||||
_image: {fileID: 7812366238446595861}
|
||||
_amount: {fileID: 7573605139369236078}
|
||||
_name: {fileID: 7573605139369236078}
|
||||
--- !u!1 &5679961045511757371
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1774467029268940608}
|
||||
- component: {fileID: 4972998227257955351}
|
||||
- component: {fileID: 4395687013142119211}
|
||||
m_Layer: 5
|
||||
m_Name: Name
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1774467029268940608
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5679961045511757371}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3591675408625319010}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 1}
|
||||
m_AnchorMax: {x: 0.5, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -180}
|
||||
m_SizeDelta: {x: 240, y: 60}
|
||||
m_Pivot: {x: 0.5, y: 1}
|
||||
--- !u!222 &4972998227257955351
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5679961045511757371}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &4395687013142119211
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5679961045511757371}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: "\uC6A9\uC554 \uB9E5\uC8FC"
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: dabfdeb80b25d44b4ace56414d0eb4ad, type: 2}
|
||||
m_sharedMaterial: {fileID: 2100000, guid: 0e5360dce269ccc42b822a424d66fbd4, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 36
|
||||
m_fontSizeBase: 24
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 1
|
||||
m_fontSizeMin: 12
|
||||
m_fontSizeMax: 36
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 0
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!1 &8269679239817146016
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1640367631470655499}
|
||||
- component: {fileID: 1918449643841995284}
|
||||
- component: {fileID: 7812366238446595861}
|
||||
m_Layer: 5
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1640367631470655499
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8269679239817146016}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3591675408625319010}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 1}
|
||||
m_AnchorMax: {x: 0.5, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 180, y: 180}
|
||||
m_Pivot: {x: 0.5, y: 1}
|
||||
--- !u!222 &1918449643841995284
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8269679239817146016}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &7812366238446595861
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8269679239817146016}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 2cf8faf4514a14547b8f056727e0a0f2, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 148877ddcea0d6349af9d828455dff2e
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
351
Assets/05.Prefabs/Uis/Tycoons/DrinkRecipeSlotUi.prefab
Normal file
351
Assets/05.Prefabs/Uis/Tycoons/DrinkRecipeSlotUi.prefab
Normal file
@ -0,0 +1,351 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &805999056224799370
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7853938979975090278}
|
||||
- component: {fileID: 2090584585714460330}
|
||||
- component: {fileID: 3373620632543524555}
|
||||
- component: {fileID: 6148658738592517949}
|
||||
- component: {fileID: 1444356741301553065}
|
||||
m_Layer: 5
|
||||
m_Name: DrinkRecipeSlotUi
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &7853938979975090278
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 805999056224799370}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 8453163042240638735}
|
||||
- {fileID: 4022822163362322784}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &2090584585714460330
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 805999056224799370}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &3373620632543524555
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 805999056224799370}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.21698111, g: 0.1934407, b: 0.1934407, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &6148658738592517949
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 805999056224799370}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 3373620632543524555}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!114 &1444356741301553065
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 805999056224799370}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 7bd1ab91d6987874b990c073d62ad645, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_button: {fileID: 6148658738592517949}
|
||||
_image: {fileID: 7808492858946605745}
|
||||
_name: {fileID: 8833980611802759205}
|
||||
--- !u!1 &4771660058389861874
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4022822163362322784}
|
||||
- component: {fileID: 1856338283216789466}
|
||||
- component: {fileID: 8833980611802759205}
|
||||
m_Layer: 5
|
||||
m_Name: Name
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4022822163362322784
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4771660058389861874}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 7853938979975090278}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 60, y: 0}
|
||||
m_SizeDelta: {x: -120, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1856338283216789466
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4771660058389861874}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8833980611802759205
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4771660058389861874}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: "\uC6A9\uC554 \uB9E5\uC8FC"
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: dabfdeb80b25d44b4ace56414d0eb4ad, type: 2}
|
||||
m_sharedMaterial: {fileID: 2100000, guid: 0e5360dce269ccc42b822a424d66fbd4, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 36
|
||||
m_fontSizeBase: 36
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 1
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 36
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_TextWrappingMode: 0
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 0
|
||||
m_ActiveFontFeatures: 6e72656b
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_EmojiFallbackSupport: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!1 &5259734674571111316
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8453163042240638735}
|
||||
- component: {fileID: 3734656328933766849}
|
||||
- component: {fileID: 7808492858946605745}
|
||||
m_Layer: 5
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8453163042240638735
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5259734674571111316}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 7853938979975090278}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 50, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3734656328933766849
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5259734674571111316}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &7808492858946605745
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5259734674571111316}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 21300000, guid: 2cf8faf4514a14547b8f056727e0a0f2, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5d001eb1c848ebd468b622667d90cad8
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Excel/CocktailDataTable.xlsx
Normal file
BIN
Assets/Resources/Excel/CocktailDataTable.xlsx
Normal file
Binary file not shown.
7
Assets/Resources/Excel/CocktailDataTable.xlsx.meta
Normal file
7
Assets/Resources/Excel/CocktailDataTable.xlsx.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e46a63f86680cab4fa49c570c3cd02b6
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Excel/DrinkDataTable.xlsx
Normal file
BIN
Assets/Resources/Excel/DrinkDataTable.xlsx
Normal file
Binary file not shown.
7
Assets/Resources/Excel/DrinkDataTable.xlsx.meta
Normal file
7
Assets/Resources/Excel/DrinkDataTable.xlsx.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bb71d8850cf0ec8408b3837078726c75
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
62
Assets/Resources/JSON/CocktailDataTable.json
Normal file
62
Assets/Resources/JSON/CocktailDataTable.json
Normal file
@ -0,0 +1,62 @@
|
||||
[
|
||||
{
|
||||
"Idx": "Cocktail001",
|
||||
"Name": "불탄 수염",
|
||||
"RatioRange": 10,
|
||||
"IngredientIdx1": "Drink001",
|
||||
"IngredientRatio1": 80,
|
||||
"IngredientIdx2": "Drink002",
|
||||
"IngredientRatio2": 20,
|
||||
"IngredientIdx3": "",
|
||||
"IngredientRatio3": 0,
|
||||
"IngredientIdx4": "",
|
||||
"IngredientRatio4": 0,
|
||||
"IngredientIdx5": "",
|
||||
"IngredientRatio5": 0
|
||||
},
|
||||
{
|
||||
"Idx": "Cocktail002",
|
||||
"Name": "하프 앤 하프",
|
||||
"RatioRange": 10,
|
||||
"IngredientIdx1": "Drink001",
|
||||
"IngredientRatio1": 50,
|
||||
"IngredientIdx2": "Drink002",
|
||||
"IngredientRatio2": 50,
|
||||
"IngredientIdx3": "",
|
||||
"IngredientRatio3": 0,
|
||||
"IngredientIdx4": "",
|
||||
"IngredientRatio4": 0,
|
||||
"IngredientIdx5": "",
|
||||
"IngredientRatio5": 0
|
||||
},
|
||||
{
|
||||
"Idx": "Cocktail003",
|
||||
"Name": "마그마 온 더록",
|
||||
"RatioRange": 15,
|
||||
"IngredientIdx1": "Drink001",
|
||||
"IngredientRatio1": 80,
|
||||
"IngredientIdx2": "Ice001",
|
||||
"IngredientRatio2": 20,
|
||||
"IngredientIdx3": "",
|
||||
"IngredientRatio3": 0,
|
||||
"IngredientIdx4": "",
|
||||
"IngredientRatio4": 0,
|
||||
"IngredientIdx5": "",
|
||||
"IngredientRatio5": 0
|
||||
},
|
||||
{
|
||||
"Idx": "Cocktail004",
|
||||
"Name": "검은수염 온 더록",
|
||||
"RatioRange": 15,
|
||||
"IngredientIdx1": "Drink002",
|
||||
"IngredientRatio1": 80,
|
||||
"IngredientIdx2": "Ice001",
|
||||
"IngredientRatio2": 20,
|
||||
"IngredientIdx3": "",
|
||||
"IngredientRatio3": 0,
|
||||
"IngredientIdx4": "",
|
||||
"IngredientRatio4": 0,
|
||||
"IngredientIdx5": "",
|
||||
"IngredientRatio5": 0
|
||||
}
|
||||
]
|
7
Assets/Resources/JSON/CocktailDataTable.json.meta
Normal file
7
Assets/Resources/JSON/CocktailDataTable.json.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 63d21a6d5847b0c40a5b7f36c8aa17d5
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
50
Assets/Resources/JSON/DrinkDataTable.json
Normal file
50
Assets/Resources/JSON/DrinkDataTable.json
Normal file
@ -0,0 +1,50 @@
|
||||
[
|
||||
{
|
||||
"Idx": "Drink001",
|
||||
"Name": "용암 맥주",
|
||||
"Category": 1,
|
||||
"Amount": 4000,
|
||||
"AlcoholVolume": 10,
|
||||
"CoolWarm": 40,
|
||||
"BitterSweet": 10,
|
||||
"Scent": 0,
|
||||
"IngredientIdx1": "",
|
||||
"IngredientQuantity1": 0,
|
||||
"IngredientIdx2": "",
|
||||
"IngredientQuantity2": 0,
|
||||
"IngredientIdx3": "",
|
||||
"IngredientQuantity3": 0
|
||||
},
|
||||
{
|
||||
"Idx": "Drink002",
|
||||
"Name": "검은 수염 럼",
|
||||
"Category": 1,
|
||||
"Amount": 1000,
|
||||
"AlcoholVolume": 40,
|
||||
"CoolWarm": 20,
|
||||
"BitterSweet": 20,
|
||||
"Scent": 0,
|
||||
"IngredientIdx1": "",
|
||||
"IngredientQuantity1": 0,
|
||||
"IngredientIdx2": "",
|
||||
"IngredientQuantity2": 0,
|
||||
"IngredientIdx3": "",
|
||||
"IngredientQuantity3": 0
|
||||
},
|
||||
{
|
||||
"Idx": "Ice001",
|
||||
"Name": "아이스 슬라임",
|
||||
"Category": 2,
|
||||
"Amount": 400,
|
||||
"AlcoholVolume": 0,
|
||||
"CoolWarm": -10,
|
||||
"BitterSweet": 0,
|
||||
"Scent": 0,
|
||||
"IngredientIdx1": "",
|
||||
"IngredientQuantity1": 0,
|
||||
"IngredientIdx2": "",
|
||||
"IngredientQuantity2": 0,
|
||||
"IngredientIdx3": "",
|
||||
"IngredientQuantity3": 0
|
||||
}
|
||||
]
|
7
Assets/Resources/JSON/DrinkDataTable.json.meta
Normal file
7
Assets/Resources/JSON/DrinkDataTable.json.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e796a69cf0dc39742a3dd3aa1dc0168a
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user