コード例 #1
0
        /// <summary>Tries Progresses the dialogue by switching display if necessary and dislay the next line on screen. Returns false if the end of monologues has been reached.</summary>
        public bool Continue(AudableCharacterDisplay display, ref int indexAt)
        {
            indexAt++;

            if (indexAt == lines.Length)
            {
                return(false);
            }

            display.text = lines[indexAt];

            return(true);
        }
コード例 #2
0
 /// <summary>Resets the dialogue state</summary>
 public void Restore()
 {
     display?.SetActive(false);
     display = null;
 }
コード例 #3
0
 public void SetupDisplay(AudableCharacterDisplay display)
 {
     this.display        = display;
     this.display.sprite = character.DisplaySprite;
 }