예제 #1
0
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Return))
     {
         openingcanvas.SetActive(false);
         openingstep++;
     }
     if (openingstep == 0)
     {
         if (openingcanvas.GetComponent <OpeningTextController>().is_talknow == false)
         {
             if (staging.fadeOutBlack() || Input.GetKeyDown(KeyCode.Return))
             {
                 openingcanvas.SetActive(false);
                 talkcanvas.SetActive(true);
                 talkmanager.talkStart();
                 openingstep++;
             }
         }
     }
     if (openingstep == 1)
     {
         if (staging.fadeInBlack())
         {
             talkmanager.is_talknow = true;
             openingstep++;
         }
     }
 }