Пример #1
0
    private void QuestStep1()
    {
        //if the player is adjacent to angela.
        if (angela.playerTouching == true)
        {
            active = true;

            //If the player interacts while adjacent to angela
            if (angela.playerTouching == true && Input.GetButtonDown("Fire1"))
            {
                //CALL FLOWCHART BLOCK TWO
                questFlowchart.ExecuteBlock(Step2BlockName);

                //Updates to the next part of the quest, updates Angela's proximity speech, and starts the timer to finish.
                angela.UpdateProxSpeech(updatedAngelaText);
                questSystem.UpdateQuest(questStep, questStep2Text);
                timerForFinish = Time.time;
                questStep++;
                active = false;
            }
        }
        else
        {
            active = false;
        }
        //Prompts the player to interact if they are adjacent
        PromptPlayer();
    }