UI框架开发中
This commit is contained in:
11
Assets/Scripts/HotUpdate/Main/UI/Base/UIBasePanel.cs
Normal file
11
Assets/Scripts/HotUpdate/Main/UI/Base/UIBasePanel.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public abstract class UIBasePanel : MonoBehaviour
|
||||
{
|
||||
public virtual void OnShow() { }
|
||||
public virtual void OnHide() { }
|
||||
|
||||
public virtual void Refresh() { }
|
||||
}
|
||||
11
Assets/Scripts/HotUpdate/Main/UI/Base/UIBasePanel.cs.meta
Normal file
11
Assets/Scripts/HotUpdate/Main/UI/Base/UIBasePanel.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2bf3cc6e9e21be7419df9ca4faedb67f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
19
Assets/Scripts/HotUpdate/Main/UI/Base/UIBaseWindow.cs
Normal file
19
Assets/Scripts/HotUpdate/Main/UI/Base/UIBaseWindow.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public abstract class UIBaseWindow : MonoBehaviour
|
||||
{
|
||||
public virtual void Show()
|
||||
{
|
||||
gameObject.SetActive(true);
|
||||
OnShow();
|
||||
}
|
||||
public virtual void Hide()
|
||||
{
|
||||
gameObject.SetActive(true);
|
||||
OnHide();
|
||||
}
|
||||
protected virtual void OnShow() { }
|
||||
protected virtual void OnHide() { }
|
||||
}
|
||||
11
Assets/Scripts/HotUpdate/Main/UI/Base/UIBaseWindow.cs.meta
Normal file
11
Assets/Scripts/HotUpdate/Main/UI/Base/UIBaseWindow.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e3f28a4ac0387cf41a8955b532a5fd19
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user