Exemplo n.º 1
0
    void Start()
    {
        GameObject go  = GameObject.FindGameObjectWithTag("Player");
        GameObject go2 = GameObject.FindGameObjectWithTag("Golosinas");

        moverGarra = go.GetComponent <MoverGarra>();
        golosinas  = go2.GetComponent <Golosinas>();
    }
Exemplo n.º 2
0
 private void Awake()
 {
     golosinas = goGolosinas.GetComponent <Golosinas>();
     CargarItems();
 }