예제 #1
0
 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>();
 }
예제 #2
0
    // Start is called before the first frame update

    void Awake()
    {
        animator         = GetComponent <Animator>();
        rigidbody2D_     = GetComponent <Rigidbody2D>();
        spawnarGhost_ref = GetComponent <SpawnarGhost>();
    }