自動調理レベルの指定をDebugOptionに追加
This commit is contained in:
parent
732d59b660
commit
b6ccacf1f5
File diff suppressed because it is too large
Load Diff
|
|
@ -34,6 +34,7 @@ public class DebugOptionManager : MonoBehaviour
|
|||
[SerializeField] private InputField heartCount;
|
||||
[SerializeField] private Dropdown shopLevelDropdown;
|
||||
[SerializeField] private Dropdown bulkOrderDropdown;
|
||||
[SerializeField] private Dropdown autoCookDropdown;
|
||||
#if UNITY_EDITOR || DEVELOPMENT_BUILD
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
|
|
@ -238,6 +239,26 @@ public class DebugOptionManager : MonoBehaviour
|
|||
gameData.OrderConditionCount = 99999;
|
||||
}).AddTo(this);
|
||||
}
|
||||
|
||||
/*
|
||||
* 自動調理レベル
|
||||
*/
|
||||
autoCookDropdown.ClearOptions();
|
||||
var autoCookList = SpreadsheetDataManager.Instance.GetBaseDataList<AutoCookData>(Const.AutoCookDataSheet);
|
||||
autoCookDropdown.AddOptions(autoCookList.Select(data => data.level.ToString()).ToList());
|
||||
autoCookDropdown.value = gameData.AutoCookLevel - 1;
|
||||
autoCookDropdown.OnValueChangedAsObservable()
|
||||
.Skip(1)
|
||||
.DistinctUntilChanged()
|
||||
.Subscribe(x =>
|
||||
{
|
||||
gameData.AutoCookLevel = autoCookList[x].level;
|
||||
// level1ならチュートリアル復活
|
||||
if (gameData.AutoCookLevel == 1)
|
||||
{
|
||||
gameData.FinishedFlags &= ~TutorialFlag.AutoCook;
|
||||
}
|
||||
}).AddTo(this);
|
||||
|
||||
|
||||
// debugfielddata
|
||||
|
|
|
|||
Loading…
Reference in New Issue