private void Awake() { if (Instance == null) { Instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
void Awake() { if (instance == null) { instance = this; } else { Destroy(this); } levelName = "Asteroides"; }
/// <summary> /// Creates the Managers as these need to set before they can used. /// </summary> private void CreateManagers() { ProjectileManager = new ProjectileManager(); AsteroidsManager = new AsteroidsManager(); }
void Awake() { asteroidManager = GameObject.FindGameObjectWithTag("asteroidManager").GetComponent <AsteroidsManager>(); }