Firstborn/Assets/SWAN Dev/DynamicUI/DCanvasComponent.cs

22 lines
426 B
C#
Raw Normal View History


using UnityEngine;
[RequireComponent(typeof(Canvas))]
public class DCanvasComponent : MonoBehaviour
{
[HideInInspector] public Canvas m_Canvas;
private void Awake()
{
m_Canvas = GetComponent<Canvas>();
DCanvasLayerHandler.iAddCanvas(m_Canvas, false);
}
private void Start()
{
m_Canvas = GetComponent<Canvas>();
DCanvasLayerHandler.iAddCanvas(m_Canvas);
}
}