Beispiel #1
0
 private void Awake() //Called when component is created (OnCeate)
 {
     gameController    = Finder.GameController;
     mover             = GetComponent <TranslateMover>();
     scoreEventChannel = Finder.ScoreEventChannel;
     playerSensor      = GetComponentInChildren <PlayerSensor>();
 }
Beispiel #2
0
 private void Awake()
 {
     playerSensor      = GetComponentInChildren <PlayerSensor>();
     translateMover    = GetComponent <TranslateMover>();
     gameController    = Finder.GameController;
     scoreEventChannel = Finder.ScoreEventChannel;
 }
Beispiel #3
0
 private void Awake()
 {
     gameController          = Finder.GameController;
     pointGainedEventChannel = Finder.PointGainedEventChannel;
     mover  = GetComponent <TranslateMover>();
     sensor = GetComponentInChildren <Sensor>();
 }
 void Awake()
 {
     translateMover = GetComponent <TranslateMover>();
 }