private void Awake() { gameController = Finder.GameController; playerDeathEventChannel = Finder.PlayerDeathEventChannel; playerMover = GetComponent <PlayerMover>(); hazardSensor = GetComponentInChildren <HazardSensor>(); }
private void Awake() { //Appellé lorsque le composant est créé. gameController = Finder.GameController; playerDeathEventChannel = Finder.PlayerDeathEventChannel; flapMover = GetComponent <FlapMover>(); sensor = GetComponentInChildren <HazardSensor>(); }
private void Awake() //Called when component is created (OnCeate) { gameController = Finder.GameController; flapMover = GetComponent <FlapMover>(); hazardSensor = GetComponentInChildren <HazardSensor>(); playerDeathEventChannel = Finder.PlayerDeathEventChannel; deathSound = GetComponent <AudioSource>(); }
public void Hit(HazardSensor hazardSensor) { }