Example #1
0
        public void DropCurrentlyEquippedSheild()
        {
            Item sheild = curSheild;

            curSheild = null;
            DropItem(sheild);
        }
Example #2
0
 void QuickEquipSheild(SheildBase sheildToEquip)
 {
     if (curSheild != null)
     {
         DropCurrentlyEquippedSheild();
     }
     curSheild = sheildToEquip;
     SetSheild();
 }
Example #3
0
 void StowAwayEquippedSheild()
 {
     if (curSheild != null)
     {
         curSheild.transform.SetParent(sheildInventoryObj.transform);
         curSheild.PickUp(new Vector3(0, 9999, 0));
         curSheild.gameObject.SetActive(false);
         curSheild = null;
     }
 }
Example #4
0
 public void EquipSheild(SheildBase sheildToEquip)
 {
     if (curSheild != null)
     {
         if (curSheild == sheildToEquip)
         {
             return;
         }
         StowAwayEquippedSheild();
     }
     if (sheildToEquip != null)
     {
         curSheild = sheildToEquip;
         SetSheild();
     }
 }