public void StartVeinsScreen(ItemCore.ItemType type)
 {
     isVignetteActivated = true;
     setFadeIn           = true;
     setFadeOut          = false;
     StartCoroutine(screenShake.Shake());
 }
예제 #2
0
 private void CheckQuest(ItemCore.ItemType type)
 {
     if (isOn)
     {
         currentAmount++;
         if (currentAmount >= itemsToPickup)
         {
             OpenBarricade();
         }
     }
 }
예제 #3
0
 private void DeactivateIcon(ItemCore.ItemType type)
 {
     for (int i = 0; i < slots.Length; i++)
     {
         if (i == (int)type)
         {
             Color newColor = new Vector4(slots[i].icon.color.r, slots[i].icon.color.g, slots[i].icon.color.b, 0);
             slots[i].icon.color = newColor;
             i = slots.Length;
         }
     }
 }
예제 #4
0
 private void ActivateIcon(ItemCore.ItemType type)
 {
     for (int i = 0; i < slots.Length; i++)
     {
         if (i == (int)type)
         {
             Debug.Log("modo messi");
             Color newColor = new Vector4(slots[i].icon.color.r, slots[i].icon.color.g, slots[i].icon.color.b, 1);
             slots[i].icon.color = newColor;
             i = slots.Length;
         }
     }
 }