public void Unlock() { if (currentMove == null && currentPerk == null) { return; } if (currentMove != null) { player.UnlockMove(player.GetMoveID(currentMove)); } else { player.UnlockPerk(currentPerk); } }