public void ShowUseItemsScreen(string ItemName) { localizedConfirmationUseItems.UpdateText(); ItemName += "?"; localizedConfirmationUseItems.AddText(ItemName); animConfirmationUseItems.SetBool("AppearBox", true); }
public void ShowConfirmationScreen(string ItemName, ItemObject item) { localizedConfirmationRemoveItems.UpdateText(); ItemName += "?"; localizedConfirmationRemoveItems.AddText(ItemName); animConfirmationRemoveItems.SetBool("AppearBox", true); auxItem = item; }
IEnumerator UpdateButtonText(Button btn, string text) { LocalizedText localized = btn.GetComponentInChildren<LocalizedText>(); localized.UpdateText(); yield return new WaitForSeconds(0.1f); localized.AddText(text); }