using System; using TMPro; using UnityEngine; using UnityEngine.UI; using UnityEngine.Video; public class ServerGameTalkingPanel : MonoBehaviour { public static ServerGameTalkingPanel Instance; public GameObject introPanel; public GameObject playPanel; public VideoPlayer introVideoPlayer; public RawImage introRawImage; public TMP_InputField playInputField; public TMP_Text playChatText; public Button playSendButton; private void Awake() { Instance = this; } // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { if (playSendButton) { playSendButton.onClick.AddListener(playSendButton_onClick); } } private void playSendButton_onClick() { } void processStep(int step) { if (introPanel) { introPanel.SetActive(step == 1); } if (playPanel) { playPanel.SetActive(step == 2); } } // Update is called once per frame void Update() { } }