Пример #1
0
 void UseItem()
 {
     if (currentInventoryIndex == 3)
     {
         if (torchOn)
         {
             torchOn = false;
             torch.gameObject.SetActive(false);
             playerSoundManager.PlayTorchClickOff();
         }
         else
         {
             torchOn = true;
             torch.gameObject.SetActive(true);
             playerSoundManager.PlayTorchClickOn();
         }
     }
 }