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