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