21 lines
434 B
C#
21 lines
434 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
[ExecuteInEditMode]
|
|
public class ChatAppIdCheckerUI : MonoBehaviour
|
|
{
|
|
public Text Description;
|
|
|
|
public void Update()
|
|
{
|
|
if (string.IsNullOrEmpty(PhotonNetwork.PhotonServerSettings.ChatAppID))
|
|
{
|
|
Description.text = "<Color=Red>WARNING:</Color>\nTo run this demo, please set the Chat AppId in the PhotonServerSettings file.";
|
|
}
|
|
else
|
|
{
|
|
Description.text = string.Empty;
|
|
}
|
|
}
|
|
}
|