void Start() { GameObject go = GameObject.FindGameObjectWithTag("Player"); GameObject go2 = GameObject.FindGameObjectWithTag("Golosinas"); moverGarra = go.GetComponent <MoverGarra>(); golosinas = go2.GetComponent <Golosinas>(); }
private void Awake() { golosinas = goGolosinas.GetComponent <Golosinas>(); CargarItems(); }