feature: Message sending
This commit is contained in:
parent
4b5689a283
commit
69b2edf1e6
3 changed files with 157 additions and 2 deletions
|
@ -1,12 +1,20 @@
|
|||
using System;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Messaging {
|
||||
public class Message : MonoBehaviour{
|
||||
public RectTransform RectTransform { private set; get; }
|
||||
public string Text => messageText.text;
|
||||
|
||||
[SerializeField] private TMP_Text messageText;
|
||||
|
||||
private void Awake() {
|
||||
RectTransform = GetComponent<RectTransform>();
|
||||
}
|
||||
|
||||
public void SetMessageText(string text) {
|
||||
messageText.text = text;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue