private void Awake() { barraDeVida_ref = GameObject.Find("Game").GetComponent <BarraDeVida>(); spawnInimigo_ref = GetComponent <SpawnInimigo>(); spawnarAlga_ref = GetComponent <SpawnarAlga>(); spawnarGhost_ref = GetComponent <SpawnarGhost>(); spawnarTesouro_ref = GetComponent <SpawnarTesouro>(); }
// Start is called before the first frame update void Awake() { animator = GetComponent <Animator>(); rigidbody2D_ = GetComponent <Rigidbody2D>(); spawnarGhost_ref = GetComponent <SpawnarGhost>(); }