void Awake() { //usarRefereciaDoPlayer_ref = GetComponent<UsarRefereciaDoPlayer>(); spawnarArmadilhas_ref = GetComponent <SpawnarArmadilhas>(); spawnarMunicao_ref = GetComponent <SpawnarMunicao>(); if (singleton != null && singleton != this) { GameObject.Destroy(this); } else { singleton = this; } }
private void Awake() { vida_ref = GameObject.Find("Tanque").GetComponent <Vida>(); spawnarArmadilhas_ref = GetComponent <SpawnarArmadilhas>(); }
private void Awake() { spawnarArmadilhas_ref = GameObject.Find("Game").GetComponent <SpawnarArmadilhas>(); }