void Start() { inv = FindObjectOfType <Inventario>(); db = FindObjectOfType <DataBase>(); receita = LerXml.Receitas(xml)[nome]; pc = FindObjectOfType <PlayerColetavel>(); }
void Start() { inv = FindObjectOfType <Inventario>(); uiCon = FindObjectOfType <UIControl>(); ima = transform.GetChild(0).GetComponent <Image>(); tx = transform.GetChild(1).GetComponent <Text>(); pc = FindObjectOfType <PlayerColetavel>(); personagem = FindObjectOfType <PersonagemComandos>(); }
void Start() { //contChild = transform.childCount; contChild = slots.Count; db = FindObjectOfType(typeof(DataBase)) as DataBase; pc = FindObjectOfType <PlayerColetavel>(); perC = FindObjectOfType <PersonagemComandos>(); for (int i = 0; i < contChild; i++) { slots[i].indexSlot = i; inventairo.Add(new Itens()); } AddItensSlot(); }
void Start() { inv = FindObjectOfType <Inventario>(); personaC = FindObjectOfType <PersonagemComandos>(); pc = FindObjectOfType <PlayerColetavel>(); }