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)); }
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); }
/// <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; }
/// <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])); }