From bdb737230b30e8fb9be63d95b792e8c8ba531ea0 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 23 Apr 2022 13:24:05 +0800 Subject: * ui staff --- SurvivalTest/Assets/Scripts/UI/UIRootCanvas.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 SurvivalTest/Assets/Scripts/UI/UIRootCanvas.cs (limited to 'SurvivalTest/Assets/Scripts/UI/UIRootCanvas.cs') diff --git a/SurvivalTest/Assets/Scripts/UI/UIRootCanvas.cs b/SurvivalTest/Assets/Scripts/UI/UIRootCanvas.cs new file mode 100644 index 0000000..541d21a --- /dev/null +++ b/SurvivalTest/Assets/Scripts/UI/UIRootCanvas.cs @@ -0,0 +1,13 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class UIRootCanvas : MonoBehaviour +{ + + private void Awake() + { + UIManager.Instance.SetRootCanvas(gameObject.GetComponent()); + } + +} -- cgit v1.1-26-g67d0