private void Awake()
 {
     movement             = GetComponent <Movement>();
     health               = GetComponent <CharacterHealth>();
     _shoot               = GetComponent <ShootRifle>();
     _shoot.hitLayerShoot = PlayerLayer;
 }
 private void Awake()
 {
     movement             = GetComponent <Movement>();
     health               = GetComponent <CharacterHealth>();
     _shoot               = GetComponent <ShootRifle>();
     _player              = GameController.GameControllerInstance.playerGameobject;
     _shoot.hitLayerShoot = PlayerLayer;
 }
 void Awake()
 {
     _movement                = GetComponent <Movement>();
     _shoot                   = GetComponent <ShootRifle>();
     _shotGun                 = GetComponent <ShotGun>();
     _health                  = GetComponent <CharacterHealth>();
     _shield                  = GetComponent <Shield>();
     _health.OnUnitDied      += OnPlayerDied;
     _health.OnHealthChanged += OnHealthChanged;
     GameController.GameControllerInstance.playerTransform  = transform;
     GameController.GameControllerInstance.playerGameobject = gameObject;
     _shoot.hitLayerShoot   = enemyLayer;
     _shotGun.hitLayerShoot = enemyLayer;
 }