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); } }
public void CheckUnlock() { var chestItemId = controller.selectedItem.ItemId; PF_GameData.TryOpenContainer(chestItemId, afterUnlock); }
public void CheckUnlock(string id) { string item = selectedItem.ItemId; PF_GameData.TryOpenContainer(id, null, AfterUnlock); }