// Use this for initialization void Start() { gm = GameObject.FindGameObjectWithTag ("AsteroidGameManager").GetComponent<AsteroidGameManager> (); player = GameObject.FindGameObjectWithTag ("Player").GetComponent<AsteroidPlayerShip> (); asteroidScore = GameObject.FindGameObjectWithTag ("AsteroidScore").GetComponent<AsteroidScore> (); // stats = GameObject.FindGameObjectWithTag ("AsteroidGameManager").GetComponent<Stats> (); }
private void Awake() { if (_instance == null) { _instance = this; } score = 0; playerHealth = 100; DontDestroyOnLoad(this); }
void Start() { mainCamera = GameObject.FindGameObjectWithTag ("MainCamera"); asteroidGameManager = GameObject.FindGameObjectWithTag ("AsteroidGameManager").GetComponent<AsteroidGameManager> (); }
// Use this for initialization void Start() { gm = GameObject.FindGameObjectWithTag ("AsteroidGameManager").GetComponent<AsteroidGameManager> (); player = GameObject.FindGameObjectWithTag ("Player").GetComponent<AsteroidPlayerShip> (); }
// Use this for initialization void Start() { asteroidScore = GameObject.FindGameObjectWithTag ("AsteroidScore").GetComponent<AsteroidScore> (); gm = GameObject.FindGameObjectWithTag ("AsteroidGameManager").GetComponent<AsteroidGameManager> (); }