Exemple #1
0
    void Start()
    {
        GameObject golemModel = GameObject.FindGameObjectWithTag("Golem");

        golem = golemModel.GetComponent <GolemBehaviorTree>();

        GameObject staticObgHolder = GameObject.FindGameObjectWithTag("Static");

        staticObj = staticObgHolder.GetComponent <Static>();

        aSource = GetComponent <AudioSource>();

        playerWalkSpeed = 2.0f;
        playerRunSpeed  = 5.0f;
        playerSpeed     = playerWalkSpeed;

        rB = GetComponentInChildren <Rigidbody>();
        cR = GetComponentInChildren <Collider>();

        for (int i = 0; i < levers.Length; i++)
        {
            levers[i].SetActive(false);
        }

        //to lock the mouse to the game
        Cursor.lockState = CursorLockMode.Locked;
    }
    void Start()
    {
        GameObject golemModel = GameObject.FindGameObjectWithTag("Golem");

        golem = golemModel.GetComponent <GolemBehaviorTree>();

        golemComandPanel.SetActive(false);
        companionComandPanel.SetActive(true);
    }
Exemple #3
0
    private void Start()
    {
        GameObject golemModel = GameObject.FindGameObjectWithTag("Golem");

        golem = golemModel.GetComponent <GolemBehaviorTree>();

        GameObject gateModel = GameObject.FindGameObjectWithTag("Gate");

        GateToRoomThree = gateModel.GetComponent <Gate>();
    }
    void Start()
    {
        GameObject golemModel = GameObject.FindGameObjectWithTag("Golem");

        golem = golemModel.GetComponent <GolemBehaviorTree>();
    }