TextSetting.cs 356 B

123456789101112131415161718192021
  1. using System;
  2. using UnityEngine;
  3. [RequireComponent(typeof(TextMesh))]
  4. public class TextSetting : BaseBehaviour
  5. {
  6. private void Awake()
  7. {
  8. this._textMesh = base.GetComponent<TextMesh>();
  9. }
  10. private void Start()
  11. {
  12. this._textMesh.text = this._ps4Str;
  13. }
  14. [SerializeField]
  15. private string _ps4Str;
  16. private TextMesh _textMesh;
  17. }