PlayerSetting.cs 450 B

1234567891011121314151617181920
  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. internal void SetPlayerText(int v) {
  11. nameText.text = "Player " + v + " name";
  12. }
  13. internal void SetPlayerName(int v) {
  14. string text = "Player " + v.ToString();
  15. nameInput.text = text;
  16. }
  17. }