コード例 #1
0
    public void NotifyPickedUpItem()
    {
        if (!Possessed)
        {
            Assert.ActualAssert(Net.Work.IsNetworkServer());
            RpcId(Id, nameof(NotifyPickedUpItem));
            return;
        }

        Sfx.PlayPlayer(Sfx.ID.ITEM_PICKUP, this);
        SetCooldown(0, SlotSwitchCooldown, false);
    }