25 lines
489 B
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|