Exemplo n.º 1
0
    private IEnumerator CreateConversationSnippetForResponseTaken(ConversationResponseDisplay responseTaken, float distraction)
    {
        conversationResponseManager.SetAllInactive();

        ConversationSnippet snippet = snippetFactory.CreatePlayerSnippetFromResponseDisplay(responseTaken);

        yield return(new WaitWhile(() => !CraftingManager.FocusedOnCrafting && CraftingManager.CraftingUiBusy));

        yield return(new WaitForSeconds(0.05f));

        snippet.GrowToFullScale(0.1f);

        snippet.ApplyLocalJumpAndJitter(Vector3.up);

        snippet.SetDragWeight(distraction);

        focusedViewDialogueHub.SetMostRecentPlayerResponse(snippet);

        yield return(new WaitWhile(() => snippet.Typing));

        yield return(new WaitForSeconds(0.15f));
    }