Exemplo n.º 1
0
 private void Awake()
 {
     //Appellé lorsque le composant est créé.
     gameController          = Finder.GameController;
     playerDeathEventChannel = Finder.PlayerDeathEventChannel;
     flapMover = GetComponent <FlapMover>();
     sensor    = GetComponentInChildren <HazardSensor>();
 }
Exemplo n.º 2
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>();
 }