示例#1
0
 override public void ActivateSwitch(bool b)
 {
     if (b)
     {
         InventoryList playerInventory = GlobalController.inventory.items;
         if (playerInventory.HasItem(plasma))
         {
             StoredItem playerPlasma = playerInventory.GetItem(plasma);
             int        plasmaCount  = playerPlasma.count;
             playerInventory.RemoveItem(playerPlasma);
             GlobalController.BoostStat(StatType.HEALTH, plasmaCount * healthPerPlasma);
         }
     }
 }