Exemplo n.º 1
0
        // When given input, Moves to the next line.
        public void incrementLine()
        {
            // If not active, return.
            if (!active)
            {
                return;
            }

            // If the user is at the end of the dialogue, exits the dialogue and event.
            if (line + 1 >= maxLines)
            {
                endText();
                gEvent.proceed();
            }
            // Otherwise increases the line by two. NOTE: this is because line + 1 denotes the line that is drawn to the
            // bottom of the current line.
            else
            {
                line += 2;
                // Draws the new line in a stutter-like fashion.
                stutterText();
                // Checks if the arrow should be changed to a square.
                setBackgroundSprite();
            }
        }
Exemplo n.º 2
0
        // Proceeds event after done shaking.
        // Shakes the screen in time increments.
        private IEnumerator proceedEvent(GameEvent gEvent, float time)
        {
            yield return(new WaitForSeconds(time));

            gEvent.proceed();
        }