Esempio n. 1
0
 /// <summary>
 /// Method called when text is requested to be dispalyed.
 /// </summary>
 /// <param name="text">Array of strings to display. Each entry in the array will be an individual text box.</param>
 /// <param name="textSpeed">Number of charecters per second to display in typewriter style. 0 for no delay.</param>
 /// <param name="completeAction">Delegate function to be called when all text has been displayed.</param>
 private void SetTextToDisplay(string[] text, float textSpeed, EventCompleteCallback onComplete)
 {
     displaying  = text;
     section     = 0;
     letterSpeed = textSpeed;
     textbox.gameObject.transform.parent.gameObject.SetActive(true);
     advanceText();
     this.onComplete = onComplete;
 }
Esempio n. 2
0
 public void UnRegisterToEvent(EventCompleteCallback callback)
 {
     DebugLogger.DebugSystemMessage("UNREGISTERED EVENT :" + callback);
     EventComplete -= callback;
 }