Beispiel #1
0
 private void Awake()
 {
     gameController          = Finder.GameController;
     playerDeathEventChannel = Finder.PlayerDeathEventChannel;
     playerMover             = GetComponent <PlayerMover>();
     hazardSensor            = GetComponentInChildren <HazardSensor>();
 }
Beispiel #2
0
 private void Awake()
 {
     //Appellé lorsque le composant est créé.
     gameController          = Finder.GameController;
     playerDeathEventChannel = Finder.PlayerDeathEventChannel;
     flapMover = GetComponent <FlapMover>();
     sensor    = GetComponentInChildren <HazardSensor>();
 }
Beispiel #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>();
 }
Beispiel #4
0
 public void Hit(HazardSensor hazardSensor)
 {
 }