public override void OnInteract() { if (!PI.IsFull()) { if (hasRandom) { randomItem = Random.Range(0, item.Count); PI.Add(item[randomItem]); } else { PI.Add(item[0]); } Cleared(); gameObject.SetActive(false); Invoke("reset", ResetTime); } else if (PI.IsFull()) { EM.InventoryFull(); } }
public void AddProtectiveIndex(ProtectiveIndex pi) { PI.Add(pi); }