public async Task <Unit> SelectUnitAsync(Party party) { var slot = await selector.SelectItemAsync(); if (slot < 0) { return(null); } return(party[slot]); }
public async Task DoMenu() { Populate(messenger); ConversationSelector.Selection = 0; while (true) { var index = await ConversationSelector.SelectItemAsync(null, true); if (index < 0) { break; } var convo = ConversationList.GetCell(index).GetComponent <ConversationCell>().Convo; await ShowConversation(convo); if (!MapOverlayUI.Instance().phoneSystem.IsFlipped&& !MapOverlayUI.Instance().phoneSystem.IsFlippedForeign) { break; } } }