// Start is called before the first frame update private void Start() { _movement = GetComponent <FlightMovement2D>(); _playerHealth = GetComponent <PlayerHealth>(); _playerHealth.damaged += Damage; _playerHealth.recovered += Recover; _playerHealth.dead += Dead; }
// Start is called before the first frame update private void Start() { _movement = GetComponent <FlightMovement2D>(); _health = GetComponent <PlayerHealth>(); }