ミッション条件カウント処理追加

This commit is contained in:
kimura 2021-10-25 12:30:09 +09:00
parent 83724af0e9
commit 9f56c50a0e
4 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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)

View File

@ -37,6 +37,7 @@ public class RecipeSelectDialog : MonoBehaviour
{
// レシピ開放
gameData.MyRecipes = new List<int>(gameData.MyRecipes){productData.id}.ToArray();
gameData.DailyRecipeGetCount++;
hasRecipe = true;
}
if (hasRecipe)

View File

@ -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: