Пример #1
0
    public Dialogue(InputDialogue inputDialogue)
    {
        Story = inputDialogue.Story
                .Select(x => new StoryChapter(x))
                .ToList();

        Interactions = inputDialogue.Interactions
                       .Select(x => new Interaction(x))
                       .ToList();
    }
    void Start()
    {
        playerID = GameObject.FindGameObjectWithTag("Player").GetComponent <EntityID>().id;

        inputDialogue  = GetComponent <InputDialogue>();
        inputPlayer    = GetComponent <InputPlayer>();
        inputKnockback = GetComponent <InputKnockback>();

        StartPlayerInput();

        justSwitched = false;
    }