jump-ball/09.09 Less_unity/Assets/Scripts/MessageDrawer.cs
2024-09-11 10:54:13 +03:00

25 lines
489 B
C#

using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
public class Text : MonoBehaviour
{
[SerializeField] public string message;
[SerializeField] private TextMeshProUGUI messagetext;
// Start is called before the first frame update
void Start()
{
messagetext.text = $"Message from inspector {message}" +
$"\nnext line";
}
// Update is called once per frame
void Update()
{
}
}