示例#1
0
 public void UpdateUI(string itemname, string itemdesc, Sprite itemimage, InventItemScript incitem)
 {
     ItemImage.sprite = itemimage;
     ItemText.text    = itemdesc;
     Stats.text       = itemname;
     currentitem      = incitem;
 }
示例#2
0
 public void SetItemAsEquiped(InventItemScript item)
 { //Will need to be changed later as more weapons are added
     if (item.GetItemType() == "placeable")
     {
         if (currentlyEquipedItem != null)
         {
             currentlyEquipedItem.Unequip();
         }
         currentlyEquipedItem = item;
     }
 }
示例#3
0
文件: Equipment.cs 项目: nasa03/RSG
    public void equipitem(GameObject itemtoequip, InventItemScript incscript, string type)
    {
        if (type == "placeable")
        {
            currentequipment  = itemtoequip;
            currentitemscript = incscript;
        }

        if (type == "gun")
        {
            playermovement.GetGun(incscript);
        }
    }
示例#4
0
 public void UpdateUI(string itemname, string itemdesc, Sprite itemimage, InventItemScript incscript)
 {
     descriptor.UpdateUI(itemname, itemdesc, itemimage, incscript);
 }
示例#5
0
文件: MCMovement.cs 项目: nasa03/RSG
 public void GetGun(InventItemScript thegunscript)
 {
     GotGun = true;
     thegun = thegunscript;
 }