53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
|
using UnityEngine;
|
|||
|
using System.Collections;
|
|||
|
using UnityEngine.UI;
|
|||
|
using GCGame.Table;
|
|||
|
using Module.Log;
|
|||
|
|
|||
|
// For test
|
|||
|
public class TestActService : MonoBehaviour {
|
|||
|
|
|||
|
private Button btn;
|
|||
|
|
|||
|
private void Awake()
|
|||
|
{
|
|||
|
btn = transform.GetComponent<Button>();
|
|||
|
btn.onClick.AddListener(OnBtnClick);
|
|||
|
}
|
|||
|
|
|||
|
public void OnBtnClick()
|
|||
|
{
|
|||
|
// 开服活动测试
|
|||
|
//MarketingActState actState = new MarketingActState();
|
|||
|
//actState.actID = 5;
|
|||
|
//Tab_ActInfoClient tab = TableManager.GetActInfoClientByID(actState.actID, 0);
|
|||
|
//Hashtable hash = new Hashtable();
|
|||
|
//hash.Add("ActState", actState);
|
|||
|
//if(MarketingActsRoot.Instance() != null)
|
|||
|
//{
|
|||
|
// LuaUIManager.Instance.ShowLuaUI(tab.UIPath, MarketingActsRoot.Instance().LoadUICallBack, hash, true);
|
|||
|
//}
|
|||
|
//else
|
|||
|
//{
|
|||
|
// LogModule.ErrorLog("Null");
|
|||
|
//}
|
|||
|
/////////////////////////////////////////////////////////////////////
|
|||
|
|
|||
|
// 每日首冲测试
|
|||
|
MarketingActState actState = new MarketingActState();
|
|||
|
actState.actID = 110;
|
|||
|
Tab_ActInfoClient tab = TableManager.GetActInfoClientByID(actState.actID, 0);
|
|||
|
Hashtable hash = new Hashtable();
|
|||
|
hash.Add("ActState", actState);
|
|||
|
if (MarketingActsRoot.Instance() != null)
|
|||
|
{
|
|||
|
LuaUIManager.Instance.ShowLuaUI(tab.UIPath, MarketingActsRoot.Instance().LoadUICallBack, hash, true);
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
LogModule.ErrorLog("Null");
|
|||
|
}
|
|||
|
/////////////////////////////////////////////////////////////////////
|
|||
|
}
|
|||
|
}
|