void Awake () { _mover = GameObject.FindObjectOfType<MoveScene>(); var swatch = GameObject.FindObjectOfType<ColourSwatch>(); if (swatch != null) _colour = swatch.GetColour(PlayerPrefsManager.GetShipColour()); else _colour = Color.white; }
void Awake () { _mover = GameObject.FindObjectOfType<MoveScene>(); if (_overrideButton) { PlayerPrefsManager.SetShipUpgrade(_overrideTo); } _powerUp = PlayerPrefsManager.GetShipUpgrade(); }
void Awake () { _mover = GameObject.FindObjectOfType<MoveScene>(); _gameManager = GameObject.FindObjectOfType<GameManager>(); }
void Awake () { _mover = GameObject.FindObjectOfType<MoveScene>(); _rocket = GameObject.FindObjectOfType<A_Rocket>(); }