// Start is called before the first frame update void Start() { //take the current position = new position(0,0,0) transform.position = new Vector3(0, 0, 0); _spawnManager = GameObject.Find("spawn_manager").GetComponent <spawnmanager>(); _uimanage = GameObject.Find("Canvas").GetComponent <UImanager>(); shieldcolor = shieldchild.GetComponent <SpriteRenderer>(); if (_spawnManager == null) { Debug.LogError("spawn manager is null "); } Sourceaudio = GetComponent <AudioSource>(); Sourceaudio.clip = laserAudio; }
void Start() { _spawnmanager = GameObject.Find("spawn_manager").GetComponent <spawnmanager>(); }