예제 #1
0
 public void ShowUseItemsScreen(string ItemName)
 {
     localizedConfirmationUseItems.UpdateText();
     ItemName += "?";
     localizedConfirmationUseItems.AddText(ItemName);
     animConfirmationUseItems.SetBool("AppearBox", true);
 }
예제 #2
0
 public void ShowConfirmationScreen(string ItemName, ItemObject item)
 {
     localizedConfirmationRemoveItems.UpdateText();
     ItemName += "?";
     localizedConfirmationRemoveItems.AddText(ItemName);
     animConfirmationRemoveItems.SetBool("AppearBox", true);
     auxItem = item;
 }
예제 #3
0
    IEnumerator UpdateButtonText(Button btn, string text)
    {
        LocalizedText localized = btn.GetComponentInChildren<LocalizedText>();
        localized.UpdateText();

        yield return new WaitForSeconds(0.1f);

        localized.AddText(text);
    }