Exemplo n.º 1
0
    public void newMoveSlot(GameObject newSlot)
    {
        //If there is no old Slot return
        if (!savedSlot)
        {
            return;
        }

        /*Create an object to make the link
         * New object set as 0
         * 0 set as 1
         * 1 set as New object
         */
        objectsInGame.item Saved = new objectsInGame.item();

        Saved.set(newSlot.GetComponent <Slot>().getItem());
        newSlot.GetComponent <Slot>().Set(savedSlot.GetComponent <Slot>().getItem());
        savedSlot.GetComponent <Slot>().Set(Saved);


        savedSlot = null;
    }
Exemplo n.º 2
0
 public void Set(objectsInGame.item itemToChange, objectsInGame.item becameItem)
 {
     itemToChange.set(becameItem);
 }
Exemplo n.º 3
0
    //Set the item in the slot
    public void Set(objectsInGame.item itemToChange)
    {
        itemInSlot.set(itemToChange);

        Refresh();
    }