internal void OnTriggerEnter2D(Collider2D other) { // Debug.Log ("detection with obj: " + other.gameObject.GetComponent<Player> ().ToString()); if (other.gameObject.GetComponent <Player> () && currentInterval <= 0.0f) { currentInterval = interval; tm.addTextbox(displayText, gameObject, typeText); } }
public void parseNextElement() { if (finished || currentElement >= elements.Count) { closeSequence(); } else { if (currentTB) { GameObject.Destroy(currentTB.gameObject); FrozenCharacters = currentTB.FrozenCharacters; } DialogueSubunit ne = elements [currentElement]; currentTB = TextboxManager.addTextbox(ne.text, Speaker, ne.isFullScreen); currentTB.MasterSequence = this; currentTB.FrozenCharacters = FrozenCharacters; currentElement += 1; } }
public static Textbox addTextbox(string text, GameObject targetObj, bool full = false) { return(m_instance.addTextbox(text, targetObj, true, m_instance.textSpeed, Color.black, full)); }