From fb70c00f45c2eccc9e0953838f47eadcf542caa3 Mon Sep 17 00:00:00 2001 From: kimura Date: Wed, 27 Oct 2021 11:28:51 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=81=E3=83=A5=E3=83=BC=E3=83=88=E3=83=AA?= =?UTF-8?q?=E3=82=A2=E3=83=AB=E3=83=AA=E3=82=BB=E3=83=83=E3=83=88=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/MyGame/Scripts/TutorialManager.cs | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/popcorn/Assets/MyGame/Scripts/TutorialManager.cs b/popcorn/Assets/MyGame/Scripts/TutorialManager.cs index bc7ea63d..baa09424 100644 --- a/popcorn/Assets/MyGame/Scripts/TutorialManager.cs +++ b/popcorn/Assets/MyGame/Scripts/TutorialManager.cs @@ -7,28 +7,23 @@ namespace MyGame.Scripts { public class TutorialManager : SingletonMonoBehaviour { - /* - * UIMaskをPrefab化 - * 必要な時にInstantiateしてTransform設定 - * Unmask自体にクリック判定? - * 指定ボタンが押されたらマスクDestroy - * 次のTutorialへ - * BrotherConversationはCompleteにコールバック設定できるのでそのタイミングで次のステップ実行 - * ステップを記憶 - */ [SerializeField] private TutorialObjectMask maskPrefab; public int Index => index; private int index; private List scriptList; private void Start() { - index = 1; + ResetTutorial(); scriptList = SpreadsheetDataManager.Instance.GetBaseDataList(Const.TutorialScriptDataSheet); } + public void ResetTutorial() + { + index = 1; + } + public void ShowTutorialConversation(int id, Action onComplete = null) { - Debug.Log($"count:{scriptList.Count}"); var list = scriptList.Where(data => data.id == id).ToList(); if (list.Count == 0) {