void Update() { if (Input.anyKeyDown) { if (_curTutorial) { var tutName = _curTutorial.name; _curTutorial.gameObject.SetActive(false); BlockLayer.SetActive(false); _curTutorial = null; CompleteTutorial(tutName); } } }
void OnTutorialNew(Tutorial_New e) { var child = FindTutorialChild(e.Name); Debug.Assert(child); if (child) { _curTutorial = child; _curTutorial.gameObject.SetActive(true); BlockLayer.SetActive(child.WithBlockLayer); } else { CompleteTutorial(e.Name); } }