コード例 #1
0
    public void CheckUnlock()
    {
        var item = this.controller.selectedItem.ItemId;

        if (controller.UnpackToPlayer)
        {
            PF_GameData.TryOpenContainer(item, null, this.afterUnlock);
        }
        else
        {
            var character = PF_PlayerData.activeCharacter.characterDetails.CharacterId;
            PF_GameData.TryOpenContainer(item, character, this.afterUnlock);
        }
    }
コード例 #2
0
    public void CheckUnlock()
    {
        var chestItemId = controller.selectedItem.ItemId;

        PF_GameData.TryOpenContainer(chestItemId, afterUnlock);
    }
コード例 #3
0
    public void CheckUnlock(string id)
    {
        string item = selectedItem.ItemId;

        PF_GameData.TryOpenContainer(id, null, AfterUnlock);
    }