Esempio n. 1
0
    private void Awake()
    {
        _playerObject    = transform.root.gameObject;
        _playerTransform = _playerObject.GetComponent <Transform>();
        _fearTrigger     = _playerObject.GetComponent <FluctFearTrigger>();

        _fovControllerObject = GameObject.Find("PlayerFovCamera");
        _fovController       = _fovControllerObject.GetComponent <Transform>();

        _itemManagerObject = GameObject.Find("ItemManager");
        _itemManager       = _itemManagerObject.GetComponent <ItemManager>();

        _pauseManagerObject = GameObject.Find("PauseCanvas");
        _pauseManager       = _pauseManagerObject.GetComponent <PauseManager>();

        _squatSpeed.y = 0.05f;
    }
Esempio n. 2
0
 private void Awake()
 {
     _playerObject = transform.root.gameObject;
     _fearTrigger  = _playerObject.GetComponent <FluctFearTrigger>();
 }