PlayerSetting.cs 623 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. public class PlayerSetting : MonoBehaviour
  7. {
  8. public Text nameText;
  9. public InputField nameInput;
  10. private LocalizationManager LANG = LocalizationManager.Instance;
  11. internal void SetPlayerText(int v) {
  12. string text = LANG.GetText("PLAYER_SETTING_TEXT");
  13. text = String.Format(text, v);
  14. nameText.text = text;
  15. }
  16. internal void SetPlayerName(int v) {
  17. string text = LANG.GetText("PLAYER_TEXT") + " " + v.ToString();
  18. nameInput.text = text;
  19. }
  20. }