コード例 #1
0
    private void TaskAgree()
    {
        DeactivateDialogue();
        DeactivateYesNoPanel();
        TurnOnTaskObjects();

        pauseMenuReference.AddToOngoingList(questType);
    }
コード例 #2
0
    public void StartSideQuest3()
    {
        pauseMenuReference.AddToOngoingList(questType);

        foreach (GameObject tempGameObjects in receivedElement)
        {
            tempGameObjects.SetActive(true);
        }
    }
コード例 #3
0
    public void StartSideQuest1()
    {
        currentTimer = maxTimer;

        if (!pauseMenuReference.alreadyHadThisTask[questType])
        {
            pauseMenuReference.AddToOngoingList(questType);

            foreach (GameObject tempGameObjects in taskRelatedGameObjects)
            {
                tempGameObjects.SetActive(true);
            }

            UpdateTimerText();
        }
    }
コード例 #4
0
    public void StartSideQuest2()
    {
        if (!pauseMenuReference.alreadyHadThisTask[questType])
        {
            pauseMenuReference.AddToOngoingList(questType);

            taskRelatedGameObjects[1].transform.SetParent(taskReceiveNPC.transform, false);
            taskRelatedGameObjects[1].transform.localPosition = new Vector3(0, 0, 0);

            for (int counter = 0; counter < taskRelatedGameObjects.Length; counter++)
            {
                taskRelatedGameObjects[counter].SetActive(true);
                taskRelatedGameObjects[counter].transform.SetParent(parentNPC.transform, true);
            }
        }
    }
コード例 #5
0
    private void TaskAgree()
    {
        StartSideQuest();

        pauseMenuReference.AddToOngoingList(questType);
    }