Ejemplo n.º 1
0
    private IEnumerator SetTimer(Section.StatementInfo statementInfo)
    {
        yield return(new WaitForSeconds(statementInfo.statement.TimeOut));

        statementInfo.TimeOutEnded();
        // TODO: Checkout for event queue
    }
Ejemplo n.º 2
0
 void EventDispatched(string eventName)
 {
     Section.StatementInfo statementInfo = dialog.GetNextPhrase(eventName);
     if (statementInfo != null)
     {
         Statement statement = statementInfo.statement;
         if (statement.TimeOut != 0)
         {
             MakeTimer(statementInfo);
         }
         skipButton.gameObject.SetActive(statement.Skippable);
         info.text = statement.Phrase;
     }
 }
Ejemplo n.º 3
0
 private void MakeTimer(Section.StatementInfo statementInfo)
 {
     StartCoroutine(SetTimer(statementInfo));
 }