mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Basic example: added missing namespace
This commit is contained in:
parent
7366ba3bff
commit
ad4f30df63
@ -1,18 +1,21 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class CanvasUI : MonoBehaviour
|
||||
namespace Mirror.Examples.Basic
|
||||
{
|
||||
[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()
|
||||
public class CanvasUI : MonoBehaviour
|
||||
{
|
||||
instance = this;
|
||||
[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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user