コード例 #1
0
    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);
        }
    }
コード例 #2
0
ファイル: DialogueUnit.cs プロジェクト: sdasd30/TSSG
 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;
     }
 }
コード例 #3
0
 public static Textbox addTextbox(string text, GameObject targetObj, bool full = false)
 {
     return(m_instance.addTextbox(text, targetObj, true, m_instance.textSpeed, Color.black, full));
 }