Beispiel #1
0
    public void UseContent(Transform follow, int contentID)
    {
        ConversationContent content = freeList[0];

        if (conversationDic.ContainsKey(follow))
        {
            if (!usedList.Contains(conversationDic[follow]))
            {
                conversationDic[follow] = content;
            }
            else
            {
                conversationDic[follow].End();
                conversationDic[follow] = content;
            }
        }
        else
        {
            conversationDic.Add(follow, content);
        }
        usedList.Add(content);
        freeList.RemoveAt(0);
        float height = (contentID >= 3) ? -1 : 0;

        content.StartFollow(conversationSprite[contentID], follow, height);
    }
Beispiel #2
0
    public void UseContent(Transform follow, int contentID, float blank)
    {
        ConversationContent content = freeList[0];

        usedList.Add(content);
        freeList.RemoveAt(0);
        float height = (contentID >= 3) ? -1 : 0;

        content.StartFollow(conversationSprite[contentID], follow, blank, height);
    }