A 2D Farming RPG
This is just a simple 2D farming RPG game
Loading...
Searching...
No Matches
UIInventoryTextBox.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using UnityEngine;
4using UnityEngine.UI;
5using TMPro;
6
7public class UIInventoryTextBox : MonoBehaviour
8{
9 [SerializeField]
10 private TextMeshProUGUI m_TextMeshTop1 = null;
11
12 [SerializeField]
13 private TextMeshProUGUI m_TextMeshTop2 = null;
14
15 [SerializeField]
16 private TextMeshProUGUI m_TextMeshTop3 = null;
17
18 [SerializeField]
19 private TextMeshProUGUI m_TextMeshBottom1 = null;
20
21 [SerializeField]
22 private TextMeshProUGUI m_TextMeshBottom2 = null;
23
24 [SerializeField]
25 private TextMeshProUGUI m_TextMeshBottom3 = null;
26
36 public void SetTextBoxText( string textTop1, string textTop2, string textTop3, string textBottom1, string textBottom2, string textBottom3 )
37 {
38 m_TextMeshTop1.text = textTop1;
39 m_TextMeshTop2.text = textTop2;
40 m_TextMeshTop3.text = textTop3;
41
42 m_TextMeshBottom1.text = textBottom1;
43 m_TextMeshBottom2.text = textBottom2;
44 m_TextMeshBottom3.text = textBottom3;
45 }
46}
TextMeshProUGUI m_TextMeshBottom1
TextMeshProUGUI m_TextMeshTop1
TextMeshProUGUI m_TextMeshBottom2
TextMeshProUGUI m_TextMeshTop3
TextMeshProUGUI m_TextMeshBottom3
void SetTextBoxText(string textTop1, string textTop2, string textTop3, string textBottom1, string textBottom2, string textBottom3)
Set Text Values
TextMeshProUGUI m_TextMeshTop2