コード例 #1
0
 private void Awake()
 {
     while (playerReference == null)
     {
         playerReference = FindObjectOfType <PlayerController_Alex>();
     }
 }
コード例 #2
0
    private void Awake()
    {
        timerText.enabled = false;
        flowchart         = FindObjectOfType <Flowchart>();

        while (playerReference == null)
        {
            playerReference = FindObjectOfType <PlayerController_Alex>();
        }

        while (pauseMenuReference == null)
        {
            pauseMenuReference = FindObjectOfType <PauseMenuController_Khoa>();
        }

        while (uiControllerReference == null)
        {
            uiControllerReference = FindObjectOfType <UIController_Khoa>();
        }

        foreach (GameObject tempGameObjects in taskRelatedGameObjects)
        {
            tempGameObjects.SetActive(false);
            tempGameObjects.transform.SetParent(this.transform, true);
        }

        objectsNumber = taskRelatedGameObjects.Length;
    }
コード例 #3
0
    private void Awake()
    {
        while (playerReference == null)
        {
            playerReference = FindObjectOfType <PlayerController_Alex>();
        }

        pickUpRigidbody = GetComponent <Rigidbody>();
        changeMaterial  = GetComponent <MeshRenderer>();
    }
コード例 #4
0
    private void Awake()
    {
        playerReference    = FindObjectOfType <PlayerController_Alex>();
        pauseMenuReference = FindObjectOfType <PauseMenuController_Khoa>();

        nameText.text = charaName;

        DeactivateDialogue();
        DeactivateYesNoPanel();
        AssignTaskObjectParent();
        TurnOffTaskObjects();
    }
    private void Awake()
    {
        while (playerReference == null)
        {
            playerReference = FindObjectOfType <PlayerController_Alex>();
        }

        while (uiReference == null)
        {
            uiReference = FindObjectOfType <UIController_Khoa>();
        }

        absorbSound = GetComponent <AudioSource>();

        stayInside = false;
        doOnce     = false;
    }
コード例 #6
0
    private void Awake()
    {
        foreach (Image image in element)
        {
            image.fillAmount = 0;
            image.enabled    = true;
        }
        foreach (Text text in elementalText)
        {
            text.enabled = false;
        }

        while (playerControllerReference == null)
        {
            playerControllerReference = FindObjectOfType <PlayerController_Alex>();
        }
    }
コード例 #7
0
    private void Awake()
    {
        while (playerReference == null)
        {
            playerReference = FindObjectOfType <PlayerController_Alex>();
        }

        while (soundControllerReference == null)
        {
            soundControllerReference = FindObjectOfType <SoundVolumeUpdate_Khoa>();
        }

        onGoingList   = new List <int>();
        completedList = new List <int>();

        TurnOffPauseMenu();
    }
コード例 #8
0
    private bool hasPlayer, finishedTask, hasTalked; // is the player in a collider? yes or no

    private void Awake()
    {
        hasTalked         = false;
        timerText.enabled = false;
        questType         = flowchart.GetIntegerVariable("questType");

        playerReference       = FindObjectOfType <PlayerController_Alex>();
        pauseMenuReference    = FindObjectOfType <PauseMenuController_Khoa>();
        uiControllerReference = FindObjectOfType <UIController_Khoa>();

        foreach (GameObject tempGameObjects in taskRelatedGameObjects)
        {
            tempGameObjects.SetActive(false);
            tempGameObjects.transform.SetParent(this.transform, true);
        }

        objectsNumber = taskRelatedGameObjects.Length;
    }
コード例 #9
0
    private bool hasTalked; // is the player in a collider? yes or no

    private void Awake()
    {
        hasTalked        = false;
        CanMoveReference = FindObjectOfType <PlayerController_Alex>();
    }
コード例 #10
0
    private void Awake()
    {
        playerReference = FindObjectOfType <PlayerController_Alex>();

        canStart = false;
    }