Ejemplo n.º 1
0
    void Start()
    {
        _mainCamera = GameObject.FindWithTag("LobbyCamera");
        _mainCamera.SetActive(false);

        _hurtEffect = GameObject.FindWithTag("UI").GetComponentInChildren <UI_HurtEffect>();
        _debugInfo  = GameObject.FindWithTag("UI").GetComponent <UI_DebugInfo>();
    }
    private void Start()
    {
        /* Set the intial lockstate and get the reference to the character controller*/
        _controller = GetComponent <CharacterController>();
        _camera     = GetComponentInChildren <Camera>();
        _debugInfo  = GameObject.FindGameObjectWithTag("UI").GetComponent <UI_DebugInfo>();
        //_handAnimation_R = GameObject.FindGameObjectWithTag("RHand").GetComponent<Animation_Hand>();
        //_handAnimation_L = GameObject.FindGameObjectWithTag("LHand").GetComponent<Animation_Hand>();

        Cursor.lockState = CursorLockMode.Locked;
    }