// [] - defines this as an array instead of a regular game object // Start is called before the first frame update void Awake() { scoreHolderRef = GetComponent <ScoreHolderScript>(); theShip = GameObject.FindWithTag("Player"); restartButton.SetActive(false); youWinImage.SetActive(false); }
void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(instance.gameObject); instance = this; } }
//public Sprite explosionAsteroid; private void Awake() { scoreHolderRef = GameObject.FindWithTag("GameController").GetComponent <ScoreHolderScript>(); }