/// <summary>
 /// When something enters the trigger, this method adds the database if the condition is true.
 /// </summary>
 /// <param name='other'>
 /// Other.
 /// </param>
 void OnTriggerEnter(Collider other)
 {
     if (condition.IsTrue(other.transform))
     {
         DialogueDebug.DebugLevel originalLevel = DialogueManager.DebugLevel;
         if (debug)
         {
             DialogueManager.DebugLevel = DialogueDebug.DebugLevel.Info;
             Debug.Log(string.Format("{0}: Adding database '{1}'", DialogueDebug.Prefix, database.name));
         }
         DialogueManager.AddDatabase(database);
         DialogueManager.DebugLevel = originalLevel;
     }
 }
예제 #2
0
 public override void OnEnter()
 {
     DialogueManager.AddDatabase(database);
     Finish();
 }