Exemple #1
0
    protected override void Awake()
    {
        base.Awake();

        _gun = GetComponentInChildren <MainCharacterGun>();
        _mainCharacterController  = GetComponentInChildren <MainCharacterController>();
        SceneManager.sceneLoaded += HandleSceneLoaded;
    }
Exemple #2
0
    protected override void Awake()
    {
        base.Awake();

        _player               = GameObject.FindWithTag(Tags.Player).GetComponent <Player>();
        _playerGun            = _player.GetComponentInChildren <MainCharacterGun>();
        _previousHpFillAmount = 1;
        _hpBar.color          = _green;
    }