protected override void Awake() { base.Awake(); _gun = GetComponentInChildren <MainCharacterGun>(); _mainCharacterController = GetComponentInChildren <MainCharacterController>(); SceneManager.sceneLoaded += HandleSceneLoaded; }
protected override void Awake() { base.Awake(); _player = GameObject.FindWithTag(Tags.Player).GetComponent <Player>(); _playerGun = _player.GetComponentInChildren <MainCharacterGun>(); _previousHpFillAmount = 1; _hpBar.color = _green; }