From 3ccec2b6a53f13d2a34a4300452aaa81aae44fa6 Mon Sep 17 00:00:00 2001 From: kimura Date: Mon, 11 Oct 2021 11:41:19 +0900 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E9=87=8F=E6=B3=A8=E6=96=87=E6=99=82?= =?UTF-8?q?=E3=83=AC=E3=82=B7=E3=83=94/=E3=82=B2=E3=83=BC=E3=83=A0?= =?UTF-8?q?=E3=83=AA=E3=82=B6=E3=83=AB=E3=83=88=E8=A1=A8=E7=A4=BA=E5=88=87?= =?UTF-8?q?=E3=82=8A=E5=88=86=E3=81=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scenes/Cooking/CookingResults.unity | 128 +++++++++++++++++- .../Scenes/Cooking/Scripts/CookingResult.cs | 67 +++++++-- .../Cooking/Scripts/PopcornGameManager.cs | 11 +- .../Scenes/Main/Scripts/KitchenManager.cs | 3 + .../MyGame/Scenes/recipe/RecipeChoice.unity | 49 ++++--- .../Scenes/recipe/Scripts/RecipeDetailView.cs | 24 +++- popcorn/Assets/MyGame/Scripts/Const.cs | 1 + .../Assets/MyGame/Scripts/SpreadsheetData.cs | 6 + 8 files changed, 246 insertions(+), 43 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/Cooking/CookingResults.unity b/popcorn/Assets/MyGame/Scenes/Cooking/CookingResults.unity index 11437c7b..decee02e 100644 --- a/popcorn/Assets/MyGame/Scenes/Cooking/CookingResults.unity +++ b/popcorn/Assets/MyGame/Scenes/Cooking/CookingResults.unity @@ -1547,7 +1547,8 @@ RectTransform: 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_Children: [] + m_Children: + - {fileID: 5448093039945588035} m_Father: {fileID: 357117903} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -17444,6 +17445,131 @@ PrefabInstance: objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 9cd0f85cb815c374a913cf9c1a825d1b, type: 3} +--- !u!1001 &5448093039945588034 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 977215193} + m_Modifications: + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_AnchorMax.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_AnchorMax.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_AnchorMin.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_AnchorMin.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_SizeDelta.x + value: 222 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_SizeDelta.y + value: 325 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5741585859577866755, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + propertyPath: m_Name + value: package + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 7851d17bad9514d0cab3211e1e81bdda, type: 3} +--- !u!224 &5448093039945588035 stripped +RectTransform: + m_CorrespondingSourceObject: {fileID: 5431808858934536808, guid: 7851d17bad9514d0cab3211e1e81bdda, + type: 3} + m_PrefabInstance: {fileID: 5448093039945588034} + m_PrefabAsset: {fileID: 0} --- !u!20 &6858317174449111712 Camera: m_ObjectHideFlags: 0 diff --git a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CookingResult.cs b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CookingResult.cs index 55bb3e67..5fb62f9a 100644 --- a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CookingResult.cs +++ b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/CookingResult.cs @@ -8,6 +8,7 @@ using UnityEngine.UI; public class CookingResult : MonoBehaviour { private static readonly string RarityTextFormat = "売値 +{0}% UP"; + private static readonly string BulkOrderRarityTextFormat = "大成功ボーナス獲得"; private static readonly string QuantityTextFormat = "x{0}"; [SerializeField] private GameObject smokeEffect; [SerializeField] private GameObject glitterEffect; @@ -28,11 +29,17 @@ public class CookingResult : MonoBehaviour [SerializeField] private GameObject goodResultObject; [SerializeField] private GameObject failureResultObject; + ReactiveProperty result = new ReactiveProperty(); + private void Start() { - var (productData, rarityData, resultData, successAction) = LocalCacheManager.Load<(ProductData, RarityData, CornResult, Action)>(PopcornGameManager.CookingResultDataTag); - var result = new ReactiveProperty(resultData).AddTo(this); - SetData(productData, rarityData); + result.AddTo(this); + + var viewType = LocalCacheManager.Load(Const.ProductViewTypeTag, ProductViewType.Default); + var productData = LocalCacheManager.Load(PopcornGameManager.CookingDataTag); + var (rarityData, resultData, successAction) = LocalCacheManager.Load<(RarityData, CornResult, Action)>(PopcornGameManager.CookingResultDataTag); + result.Value = resultData; + SetData(productData, rarityData, viewType); result.Subscribe(r => { SetUI(r, rarityData.Rarity != ProductRarity.Normal); @@ -43,18 +50,47 @@ public class CookingResult : MonoBehaviour }).AddTo(this); // 各種ボタン押下後、獲得処理 - centerOkButton.OnClickAsObservable().Subscribe(_ => + if (viewType == ProductViewType.Default) { - // 獲得、遷移 - AddStock(productData, rarityData.Rarity); - TransitionManager.Instance.LoadScene(GameScenes.Main); - }).AddTo(this); - leftOkButton.OnClickAsObservable().Subscribe(_ => + centerOkButton.OnClickAsObservable().Subscribe(_ => + { + // 獲得、遷移 + AddStock(productData, rarityData.Rarity); + TransitionManager.Instance.LoadScene(GameScenes.Main); + }).AddTo(this); + leftOkButton.OnClickAsObservable().Subscribe(_ => + { + // 獲得、遷移 + AddStock(productData); + TransitionManager.Instance.LoadScene(GameScenes.Main); + }).AddTo(this); + } + else { - // 獲得、遷移 - AddStock(productData); - TransitionManager.Instance.LoadScene(GameScenes.Main); - }).AddTo(this); + // 大量注文時処理 + var materialNumber = LocalCacheManager.Load(BulkOrder.MaterialNumberTag); + centerOkButton.OnClickAsObservable().Subscribe(_ => + { + // 獲得、遷移 + if (GameDataManager.GameData.CompletedOrderList.Exists(data => data.Number != materialNumber)) + { + GameDataManager.GameData.CompletedOrderList.Add(new BulkOrderResultData(){Number = materialNumber, Rarity = rarityData.Rarity}); + GameDataManager.SaveGameData(); + } + TransitionManager.Instance.LoadScene(GameScenes.Main); + }).AddTo(this); + leftOkButton.OnClickAsObservable().Subscribe(_ => + { + // 獲得、遷移 + if (GameDataManager.GameData.CompletedOrderList.Exists(data => data.Number != materialNumber)) + { + GameDataManager.GameData.CompletedOrderList.Add(new BulkOrderResultData(){Number = materialNumber, Rarity = ProductRarity.Normal}); + GameDataManager.SaveGameData(); + } + TransitionManager.Instance.LoadScene(GameScenes.Main); + }).AddTo(this); + } + perfectButton.OnClickAsObservable().Subscribe(_ => { // 広告視聴後、結果上書き @@ -67,13 +103,14 @@ public class CookingResult : MonoBehaviour }).AddTo(this); } - private void SetData(ProductData recipe, RarityData rarity) + private void SetData(ProductData recipe, RarityData rarity, ProductViewType viewType) { // popcornImage popcornText.text = recipe.name; popcornTextPerfect.text = recipe.name; quantityText.text = string.Format(QuantityTextFormat, recipe.volume); - rarityText.text = string.Format(RarityTextFormat, rarity.rate - 100); + var rarityFormat = viewType == ProductViewType.Default ? RarityTextFormat : BulkOrderRarityTextFormat; + rarityText.text = string.Format(rarityFormat, rarity.rate - 100); rarityView.SetRarity(rarity.Rarity); } diff --git a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/PopcornGameManager.cs b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/PopcornGameManager.cs index 6450fe20..b9f4b416 100644 --- a/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/PopcornGameManager.cs +++ b/popcorn/Assets/MyGame/Scenes/Cooking/Scripts/PopcornGameManager.cs @@ -103,8 +103,12 @@ public class PopcornGameManager : MonoBehaviour private void ResetGame() { - // フライパン設定 + var panList = SpreadsheetDataManager.Instance.GetBaseDataList(Const.PanDataSheet); var panData = LocalCacheManager.Load(PanDataTag); + var rarityList = SpreadsheetDataManager.Instance.GetBaseDataList(Const.RarityDataSheet); + var rarityData = rarityList.First(data => data.Rarity == panData.Rarity); + // フライパン設定 + // setPanData(); cornManager.SetCornsActive(true); compositeDisposable.Clear(); cornManager.Result.SkipLatestValueOnSubscribe() @@ -116,10 +120,7 @@ public class PopcornGameManager : MonoBehaviour // リザルト表示遅延 this.CallWaitForSeconds(1.2f, () => { - var rarityList = SpreadsheetDataManager.Instance.GetBaseDataList(Const.RarityDataSheet); - var rarityData = rarityList.First(data => data.Rarity == panData.Rarity); - var productData = LocalCacheManager.Load(CookingDataTag); - LocalCacheManager.Save(CookingResultDataTag, (productData, rarityData, result, new Action(() => cornManager.SetCornsActive(false)))); + LocalCacheManager.Save(CookingResultDataTag, (rarityData, result, new Action(() => cornManager.SetCornsActive(false)))); TransitionManager.Instance.LoadSceneAdditive(GameScenes.CookingResults); }); }).AddTo(compositeDisposable); diff --git a/popcorn/Assets/MyGame/Scenes/Main/Scripts/KitchenManager.cs b/popcorn/Assets/MyGame/Scenes/Main/Scripts/KitchenManager.cs index a6b89138..3017dc2a 100644 --- a/popcorn/Assets/MyGame/Scenes/Main/Scripts/KitchenManager.cs +++ b/popcorn/Assets/MyGame/Scenes/Main/Scripts/KitchenManager.cs @@ -21,6 +21,7 @@ public class KitchenManager : MonoBehaviour // レシピの表示 cookingButton.OnClickAsObservable().Subscribe(_ => { + LocalCacheManager.Remove(Const.ProductViewTypeTag); TransitionManager.Instance.LoadSceneAdditive(GameScenes.Recipe); }); @@ -84,6 +85,7 @@ public class KitchenManager : MonoBehaviour orderIndicatorView.SetIndicate(false, false); orderIndicatorView.TappedPhone.ThrottleFirst(TimeSpan.FromSeconds(1f)).Subscribe(__ => { + LocalCacheManager.Remove(Const.ProductViewTypeTag); TransitionManager.Instance.LoadSceneAdditive(GameScenes.BulkOrder); }).AddTo(this); }).AddTo(this); @@ -96,6 +98,7 @@ public class KitchenManager : MonoBehaviour .ThrottleFirst(TimeSpan.FromSeconds(1f)) .Subscribe(_ => { + LocalCacheManager.Remove(Const.ProductViewTypeTag); TransitionManager.Instance.LoadSceneAdditive(GameScenes.BulkOrder); }).AddTo(this); } diff --git a/popcorn/Assets/MyGame/Scenes/recipe/RecipeChoice.unity b/popcorn/Assets/MyGame/Scenes/recipe/RecipeChoice.unity index efb4becb..71f4119c 100644 --- a/popcorn/Assets/MyGame/Scenes/recipe/RecipeChoice.unity +++ b/popcorn/Assets/MyGame/Scenes/recipe/RecipeChoice.unity @@ -965,8 +965,8 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - m_RemovedComponents: [{fileID: 2260898471005442077, guid: 434f6174871f2dc4992321e9d579f138, - type: 3}] + m_RemovedComponents: + - {fileID: 2260898471005442077, guid: 434f6174871f2dc4992321e9d579f138, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 434f6174871f2dc4992321e9d579f138, type: 3} --- !u!224 &670639509 stripped RectTransform: @@ -974,6 +974,11 @@ RectTransform: type: 3} m_PrefabInstance: {fileID: 670639508} m_PrefabAsset: {fileID: 0} +--- !u!4 &670639510 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 670639508} + m_PrefabAsset: {fileID: 0} --- !u!1 &679566761 GameObject: m_ObjectHideFlags: 0 @@ -1797,6 +1802,8 @@ MonoBehaviour: panSelector: {fileID: 1160535648} flavorName: {fileID: 707887860} flavorPrice: {fileID: 498799267} + flavorVolume: {fileID: 1497671330} + flavorVolumeObject: {fileID: 878944767} flavorStock: {fileID: 1109202679} flavorText: {fileID: 1116792172} flavorImageTarget: {fileID: 1826815494} @@ -2945,7 +2952,8 @@ RectTransform: 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_Children: [{fileID: 670639509}] + m_Children: + - {fileID: 670639510} m_Father: {fileID: 230185243} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -3358,7 +3366,8 @@ RectTransform: 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_Children: [{fileID: 1971927379}] + m_Children: + - {fileID: 1971927379} m_Father: {fileID: 1626721124} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -3487,6 +3496,22 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1853630202} m_CullTransparentMesh: 0 +--- !u!114 &1853630207 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1853630202} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5e732834936f04d48be0ff3fa358563d, type: 3} + m_Name: + m_EditorClassIdentifier: + onClickPlaySEFilename: se_ButtonTap + randomPlaySEFilenames: [] + randomPlayVoiceFilenames: [] + vibrationType: 0 --- !u!1 &1971927378 GameObject: m_ObjectHideFlags: 0 @@ -3561,22 +3586,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1971927378} m_CullTransparentMesh: 0 ---- !u!114 &1853630207 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1853630202} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5e732834936f04d48be0ff3fa358563d, type: 3} - m_Name: - m_EditorClassIdentifier: - onClickPlaySEFilename: se_ButtonTap - randomPlaySEFilenames: [] - randomPlayVoiceFilenames: [] - vibrationType: 0 --- !u!1 &1972550997 GameObject: m_ObjectHideFlags: 0 diff --git a/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeDetailView.cs b/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeDetailView.cs index 9939efc9..b31bd80e 100644 --- a/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeDetailView.cs +++ b/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeDetailView.cs @@ -20,6 +20,8 @@ public class RecipeDetailView : MonoBehaviour [SerializeField] private PanSelector panSelector; [SerializeField] private Text flavorName; [SerializeField] private Text flavorPrice; + [SerializeField] private Text flavorVolume; + [SerializeField] private GameObject flavorVolumeObject; [SerializeField] private Text flavorStock; [SerializeField] private Text flavorText; [SerializeField] private Transform flavorImageTarget; @@ -32,6 +34,7 @@ public class RecipeDetailView : MonoBehaviour private void Start() { + var viewType = LocalCacheManager.Load(Const.ProductViewTypeTag, ProductViewType.Default); var data = LocalCacheManager.Load(PopcornGameManager.CookingDataTag); cancelButton.OnClickAsObservable().Subscribe(_ => @@ -62,7 +65,7 @@ public class RecipeDetailView : MonoBehaviour TransitionManager.Instance.LoadScene(GameScenes.Cooking); }).AddTo(this); - SetRecipe(data); + SetRecipe(data, viewType); var isPassedAmount = CheckAmount(data); var isPassedTank = CheckTank(data); nextButton.interactable = isPassedAmount && isPassedTank; @@ -71,7 +74,7 @@ public class RecipeDetailView : MonoBehaviour tankCaution.SetActive(isPassedAmount && !isPassedTank); } - public void SetRecipe(ProductData data) + public void SetRecipe(ProductData data, ProductViewType viewType) { var gameData = GameDataManager.GameData; @@ -81,10 +84,27 @@ public class RecipeDetailView : MonoBehaviour flavorStock.text = string.Format(flavorStockFormat, shopStock + tankStock); flavorName.text = data.name; flavorPrice.text = data.price.ToString(); + flavorVolume.text = data.volume.ToString(); flavorText.text = data.text; flavorImageTarget.DestroyAllChildrens(); Instantiate(data.GetIconPrefab(), flavorImageTarget); cornAmountText.text = string.Format(cornAmountFormat, gameData.CornSeed, data.MaterialList[0].amount); + + switch (viewType) + { + case ProductViewType.Default: + flavorVolumeObject.SetActive(true); + flavorPrice.transform.parent.gameObject.SetActive(true); + flavorVolume.transform.parent.gameObject.SetActive(false); + break; + case ProductViewType.BulkOrder: + flavorVolumeObject.SetActive(false); + flavorPrice.transform.parent.gameObject.SetActive(false); + flavorVolume.transform.parent.gameObject.SetActive(true); + break; + default: + throw new ArgumentOutOfRangeException(nameof(viewType), viewType, null); + } var shopData = SpreadsheetDataManager.Instance.GetBaseDataList(Const.ShopDataSheet); var flavor1Amount = gameData.Material.FirstOrDefault(x => x.Id == data.MaterialList[1].id)?.Amount ?? 0; diff --git a/popcorn/Assets/MyGame/Scripts/Const.cs b/popcorn/Assets/MyGame/Scripts/Const.cs index 3ce41485..691ec01e 100644 --- a/popcorn/Assets/MyGame/Scripts/Const.cs +++ b/popcorn/Assets/MyGame/Scripts/Const.cs @@ -17,6 +17,7 @@ public static class Const { public static readonly string VibrationTag = "Vibration"; public static readonly string LanguageDataTypeTag = "LanguageDataType"; public static readonly string LocalNotificationTag = "LocalNotification"; + public static readonly string ProductViewTypeTag = "ProductViewType"; // sns public static readonly string LineURL = "http://nav.cx/aVZ8nEK"; diff --git a/popcorn/Assets/MyGame/Scripts/SpreadsheetData.cs b/popcorn/Assets/MyGame/Scripts/SpreadsheetData.cs index c7eb2c32..51d24791 100644 --- a/popcorn/Assets/MyGame/Scripts/SpreadsheetData.cs +++ b/popcorn/Assets/MyGame/Scripts/SpreadsheetData.cs @@ -34,6 +34,12 @@ public enum CornFieldUpgradeType Machine = 4, } +public enum ProductViewType +{ + Default = 1, + BulkOrder = 2, +} + public enum MissionCategory { Normal = 1,