Ejemplo n.º 1
0
        /// <summary>
        /// Adds a speechbubble that will follow a certain transform.
        /// It is recommended you use a character's head or mouth transform.
        /// </summary>
        /// <param name="objectToFollow"></param>
        /// <param name="text"></param>
        /// <param name="type"></param>
        /// <param name="timeToLive"></param>
        /// <param name="color"></param>
        /// <param name="offset"></param>
        public void AddSpeechbubble(Transform objectToFollow, string text, SpeechbubbleType type, float timeToLive, Color color, Vector3 offset)
        {
            SpeechbubbleBehaviour bubbleBehaviour = GetBubble(type);

            bubbleBehaviour.Setup(objectToFollow, offset, text, timeToLive, color);
            speechbubbleQueue[type].Enqueue(bubbleBehaviour);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds a speechbubble to a certain position
        /// </summary>
        /// <param name="position"></param>
        /// <param name="text"></param>
        /// <param name="type"></param>
        /// <param name="timeToLive"></param>
        /// <param name="color"></param>
        public void AddSpeechbubble(Vector3 position, string text, SpeechbubbleType type, float timeToLive, Color color)
        {
            SpeechbubbleBehaviour bubbleBehaviour = GetBubble(type);

            bubbleBehaviour.Setup(position, text, timeToLive, color);
            speechbubbleQueue[type].Enqueue(bubbleBehaviour);
        }