private void SpawnBubbleOn(string dialogText, Transform target, float readTime, string title = "")
    {
        BubbleDialog b = bubblePool.SpawnTargetObject(bubbleObj, 3).GetComponent <BubbleDialog>();

        b.transform.position = target.transform.position + new Vector3(0, bubbleOffsetY, 0);
        b.InitBubble(dialogText, readTime, title);
    }
Beispiel #2
0
    private BubbleDialog SpawnBubbleOn(string dialogText, Transform target, float readTime)
    {
        BubbleDialog b = bubblePool.SpawnTargetObject(bubbleObj, 3).GetComponent <BubbleDialog>();

        b.transform.position = target.transform.position + new Vector3(0, bubbleOffsetY, 0);
        b.InitBubble(dialogText, readTime);
        currentBubble = b;
        return(b);
    }