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