畑チュートリアル対応
This commit is contained in:
parent
27c72d2854
commit
8f4d28f77d
|
|
@ -67,10 +67,10 @@ public class CornField : MonoBehaviour
|
||||||
// データ
|
// データ
|
||||||
var gameData = GameDataManager.GameData;
|
var gameData = GameDataManager.GameData;
|
||||||
|
|
||||||
if (gameData.isFirstPlay)
|
if (!gameData.FinishedFlags.HasFlag(TutorialFlag.CornField))
|
||||||
{
|
{
|
||||||
promoteGrowthButton.gameObject.SetActive(false);
|
promoteGrowthButton.gameObject.SetActive(false);
|
||||||
TutorialManager.Instance.ShowTutorialConversation(3, () =>
|
TutorialManager.Instance.ShowTutorialConversation(5, () =>
|
||||||
{
|
{
|
||||||
// コーンスワイプ指示
|
// コーンスワイプ指示
|
||||||
cornFieldMask.gameObject.SetActive(true);
|
cornFieldMask.gameObject.SetActive(true);
|
||||||
|
|
@ -316,7 +316,7 @@ public class CornField : MonoBehaviour
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gameData.isFirstPlay)
|
if (!gameData.FinishedFlags.HasFlag(TutorialFlag.CornField))
|
||||||
{
|
{
|
||||||
// 既に収穫できる状態にする
|
// 既に収穫できる状態にする
|
||||||
var plantLine = gameData.SeedlingDataList.First(data => data.type == PlantLineType.Center);
|
var plantLine = gameData.SeedlingDataList.First(data => data.type == PlantLineType.Center);
|
||||||
|
|
@ -335,14 +335,10 @@ public class CornField : MonoBehaviour
|
||||||
this.CallWaitForSeconds(4f, () =>
|
this.CallWaitForSeconds(4f, () =>
|
||||||
{
|
{
|
||||||
cornFieldMask.gameObject.SetActive(false);
|
cornFieldMask.gameObject.SetActive(false);
|
||||||
TutorialManager.Instance.ShowTutorialConversation(4, () =>
|
TutorialManager.Instance.ShowTutorialConversation(6, () =>
|
||||||
{
|
{
|
||||||
// gameData.SeedlingDataList.Clear();
|
gameData.FinishedFlags |= TutorialFlag.CornField;
|
||||||
var go = FindObjectOfType<FooterManager>().transform;
|
GameDataManager.SaveGameData();
|
||||||
go.transform.FindChildByName("Button_Purchasing", t =>
|
|
||||||
{
|
|
||||||
TutorialManager.Instance.ShowTutorialMask(go.parent, t as RectTransform, true);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}).AddTo(compositeDisposable);
|
}).AddTo(compositeDisposable);
|
||||||
|
|
@ -426,7 +422,7 @@ public class CornField : MonoBehaviour
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// チュートリアル時新しい苗を隠す
|
// チュートリアル時新しい苗を隠す
|
||||||
if (gameData.isFirstPlay)
|
if (!gameData.FinishedFlags.HasFlag(TutorialFlag.CornField))
|
||||||
{
|
{
|
||||||
seedling.SetSeedlingGene(DateTime.MaxValue, Int32.MaxValue, newGene.Level);
|
seedling.SetSeedlingGene(DateTime.MaxValue, Int32.MaxValue, newGene.Level);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue