From ad4f30df636c7e9c0815a2e776bf3241491e8814 Mon Sep 17 00:00:00 2001 From: MrGadget1024 Date: Sun, 12 Dec 2021 08:29:26 -0500 Subject: [PATCH] Basic example: added missing namespace --- .../Mirror/Examples/Basic/Scripts/CanvasUI.cs | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/Assets/Mirror/Examples/Basic/Scripts/CanvasUI.cs b/Assets/Mirror/Examples/Basic/Scripts/CanvasUI.cs index 8bf8ccaa6..d5c8987ab 100644 --- a/Assets/Mirror/Examples/Basic/Scripts/CanvasUI.cs +++ b/Assets/Mirror/Examples/Basic/Scripts/CanvasUI.cs @@ -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; + } } }