using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using UnityEngine.Events;
|
|
class ILOneLevelWindow
|
{
|
protected static ILOneLevelWindowProxy proxy;
|
|
public static void SetProxy(ILOneLevelWindowProxy nproxy)
|
{
|
proxy = nproxy;
|
}
|
|
#region 窗口的生命周期,仅为了方便子类重写联想与结构的定义,注意子类不重写,父类也不会调用,所以不要在这些方法里写代码
|
|
protected virtual void OnActived() { }
|
|
protected virtual void LateUpdate() { }
|
|
protected virtual void BindController() { }
|
|
protected virtual void AddListeners() { }
|
|
protected virtual void OnPreOpen() { }
|
|
protected virtual void OnAfterOpen() { }
|
|
protected virtual void OnPreClose() { }
|
|
protected virtual void OnAfterClose() { }
|
|
protected virtual void OnDestroy() { }
|
|
#endregion
|
|
/// <summary>
|
/// 释放窗口资源
|
/// </summary>
|
private void Dipose()
|
{
|
proxy = null;
|
}
|
|
|
public void SetFunctionListener(int order, UnityAction callBack)
|
{
|
proxy.SetFunctionListener(order, callBack);
|
}
|
|
public void CloseAllChildWindow()
|
{
|
proxy.CloseAllChildWindow();
|
}
|
|
}
|