private void Awake() { spriteRenderer_ref = GameObject.Find("GameOver").GetComponentInChildren <SpriteRenderer>(); tanqueMovimento_ref = GetComponent <TanqueMovimento>(); TiroDoPlayer_ref = GetComponent <TiroDoPlayer>(); canhaoMovimento_ref = GetComponentInChildren <CanhaoMovimento>(); vida_ref = GetComponent <Vida>(); usarRefereciaDoPlayer_ref = GameObject.Find("Game").GetComponent <UsarRefereciaDoPlayer>(); }
void Awake() { usarRefereciaDoPlayer_ref = GameObject.Find("Game").GetComponent <UsarRefereciaDoPlayer>(); righ = GetComponent <Rigidbody2D>(); }
private void Awake() { usarRefereciaDoPlayer_ref = GameObject.Find("Game").GetComponent <UsarRefereciaDoPlayer>(); }