You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SAE/Assets/Mirror/Examples/Basic/Scripts/CanvasUI.cs

22 lines
554 B

using UnityEngine;
namespace Mirror.Examples.Basic
{
public class CanvasUI : MonoBehaviour
{
[Tooltip("Assign Main Panel so it can be turned on from Player:OnStartClient")]
public RectTransform mainPanel;
[Tooltip("Assign Players Panel for instantiating PlayerUI as child")]
public RectTransform playersPanel;
// static instance that can be referenced directly from Player script
public static CanvasUI instance;
void Awake()
{
instance = this;
}
}
}