ミッション条件カウント処理追加
This commit is contained in:
parent
83724af0e9
commit
9f56c50a0e
|
|
@ -119,6 +119,8 @@ public class BulkOrder : MonoBehaviour
|
|||
// カウントリセット
|
||||
gameData.OrderConditionCount = 0;
|
||||
gameData.DeliveredOrder.Add(bulkOrderData.id);
|
||||
gameData.BulkOrderDeliveredCount++;
|
||||
gameData.DailyBulkOrderDeliveredCount++;
|
||||
#if UNITY_EDITOR
|
||||
Debug.Log($"current:{gameData.DeliveredOrder.Count} max:{bulkOrderData.maxOrder}");
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -118,6 +118,9 @@ public class Market : SingletonMonoBehaviour<Market>
|
|||
|
||||
requestSubject.BatchFrame().Subscribe(customers =>
|
||||
{
|
||||
// 来客数カウント
|
||||
gameData.AddCustomerCount(customers.Count);
|
||||
|
||||
var orders = new List<int>();
|
||||
var dontBuyCustomerList = new List<CustomerController>();
|
||||
foreach (var controller in customers)
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ public class RecipeSelectDialog : MonoBehaviour
|
|||
{
|
||||
// レシピ開放
|
||||
gameData.MyRecipes = new List<int>(gameData.MyRecipes){productData.id}.ToArray();
|
||||
gameData.DailyRecipeGetCount++;
|
||||
hasRecipe = true;
|
||||
}
|
||||
if (hasRecipe)
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ public class Shopping : MonoBehaviour
|
|||
if (!gameData.MyRecipes.Contains(shopData.itemId))
|
||||
{
|
||||
gameData.MyRecipes = new List<int>(gameData.MyRecipes){shopData.itemId}.ToArray();
|
||||
gameData.DailyRecipeGetCount++;
|
||||
}
|
||||
break;
|
||||
case ItemCategory.Pan:
|
||||
|
|
|
|||
Loading…
Reference in New Issue