コード例 #1
0
    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();
        }
    }
コード例 #2
0
 public void AddProtectiveIndex(ProtectiveIndex pi)
 {
     PI.Add(pi);
 }