示例#1
0
 void Update()
 {
     if (Input.anyKeyDown)
     {
         if (_curTutorial)
         {
             var tutName = _curTutorial.name;
             _curTutorial.gameObject.SetActive(false);
             BlockLayer.SetActive(false);
             _curTutorial = null;
             CompleteTutorial(tutName);
         }
     }
 }
示例#2
0
        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);
            }
        }