void Start() { //take the current position= new positiont(0,0,0) transform.position = new Vector3(0, 0, 0); _spawnManger = GameObject.Find("SpawnManger").GetComponent <SpawnManger>(); _uiManager = GameObject.Find("Canvas").GetComponent <UIManager>(); if (_spawnManger == null) { UnityEngine.Debug.LogError("The Spawn Manger is Null"); } if (_uiManager == null) { UnityEngine.Debug.LogError("The UI Manger is Null"); } }
// Use this for initialization void Start() { if (instance == null) { instance = this; } else if (instance != null) { Destroy(gameObject); } wall = GetComponent <SpawnManger>(); queen = GetComponent <SpawnManger>(); alien = GetComponent <SpawnManger>(); terrain = GetComponent <SpawnManger>(); boundary = GetComponent <SpawnManger>(); InitGame(); }
private void Start() { _spawnMamger = GameObject.Find("SpawnManger").GetComponent <SpawnManger>(); }
public void Awake() { Instance = this; }
// Use this for initialization void Start() { spawner = GetComponent<SpawnManger>(); spawner.StartSpawner(); }