Exemplo n.º 1
0
    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);
    }
Exemplo n.º 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);
    }