Ejemplo n.º 1
0
 //This function dequips the item graphically by sending it to the button icon
 //TODO have the dequipped item reflect itself on the user's stats
 void DequipItem(GameObject e)
 {
     transform.GetChild(1).gameObject.SetActive(false);                                      //Set the level pic to active
     displayItem.Add(e);
     Image[] panel = gameObject.GetComponentsInChildren <Image>();
     panel [1].sprite = defaultImage;
     equipped         = false;
     //
 }
Ejemplo n.º 2
0
 private void cmd_save_Click(object sender, EventArgs e)
 {
     SetDataModel();
     MessageBox.Show(_itemControl.Add());
 }