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

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