| 123456789101112131415161718 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class InformationPanelScript : MonoBehaviour
- {
- public Button quitButton;
- public Text currentPlayerText;
- // Start is called before the first frame update
- void Start() {
- quitButton.onClick.AddListener(() => { Application.Quit(); });
- }
- public void SetCurrentPlayer(string playerName) {
- currentPlayerText.text = playerName;
- }
- }
|