Пример #1
0
 public void Click()
 {
     if (!Typewriter.isActive)
     {
         showIndex++;
         if (showIndex < talkInfoList.Count)
         {
             ShowTalk(talkInfoList[showIndex]);
         }
         else
         {
             this.gameObject.SetActive(false);
             PlayerManager.UnLock();
             if (nextScene != null)
             {
                 SceneManager.LoadScene(nextScene);
                 nextScene = null;
             }
         }
     }
     else
     {
         Typewriter.OnFinish();
     }
 }