111
This commit is contained in:
@@ -2,12 +2,18 @@ using UnityEngine;
|
||||
|
||||
public class UIBase : MonoBehaviour
|
||||
{
|
||||
public RectTransform rectTransform;
|
||||
public UIBase parent;
|
||||
public virtual void OnCreate()
|
||||
public RectTransform rectTransform
|
||||
{
|
||||
rectTransform = GetComponent<RectTransform>();
|
||||
get
|
||||
{
|
||||
if (_rectTransform == null)
|
||||
_rectTransform = GetComponent<RectTransform>();
|
||||
return _rectTransform;
|
||||
}
|
||||
}
|
||||
RectTransform _rectTransform;
|
||||
public UIBase parent;
|
||||
public virtual void OnCreate() { }
|
||||
public virtual void OnShow() { }
|
||||
public virtual void OnHide() { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user