示例#1
0
    public IEnumerator TeleportFadeIn(OW_Controller pc, float waitTime, float fadeTime)
    {
        pc.Change((int)OWStates.BlockMove);
        fade.enabled = true;
        yield return(StartCoroutine(FadeIn(fadeTime)));

        yield return(new WaitForSeconds(waitTime));
    }
示例#2
0
    public IEnumerator TeleportFadeOut(OW_Controller pc, float waitTime, float fadeTime)
    {
        yield return(StartCoroutine(FadeOut(fadeTime)));

        yield return(new WaitForSeconds(waitTime));

        fade.enabled = false;
        pc.Change((int)OWStates.PlayerWait);
    }
示例#3
0
 /// <summary>
 /// Disable this textbox.
 /// </summary>
 public void Disable()
 {
     foreach (Transform t in entities)
     {
         OW_Controller player = t.GetComponent <OW_Controller> ();
         if (player != null)
         {
             player.Change((int)OWStates.PlayerWait);
         }
     }
     this.gameObject.SetActive(false);
     activeDisplay = false;
 }
示例#4
0
        /// <summary>
        /// Enable this textbox.
        /// </summary>
        public void Enable()
        {
            foreach (Transform t in entities)
            {
                OW_Controller entity = t.GetComponent <OW_Controller> ();
                if (entity != null)
                {
                    entity.Change((int)OWStates.BlockMove);
                }
            }
            this.gameObject.SetActive(true);
            activeDisplay = true;
            currentLine   = 0;

            StartCoroutine(ReadText(textLines[currentLine]));
        }