2021-04-16 00:06:30 +08:00
|
|
|
|
using System;
|
2021-04-24 17:39:11 +08:00
|
|
|
|
using Cal.DataTable;
|
2021-04-16 00:06:30 +08:00
|
|
|
|
|
|
|
|
|
namespace ET
|
2021-04-15 00:12:07 +08:00
|
|
|
|
{
|
|
|
|
|
public class TestComponentAwakeSystem: AwakeSystem<TestComponent>
|
|
|
|
|
{
|
|
|
|
|
public override void Awake(TestComponent self)
|
|
|
|
|
{
|
2021-04-24 17:39:11 +08:00
|
|
|
|
TimerComponent.Instance.NewFrameTimer(self.Test);
|
2021-04-15 00:12:07 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2021-04-24 17:39:11 +08:00
|
|
|
|
public static class TestComponentSystem
|
2021-04-15 00:12:07 +08:00
|
|
|
|
{
|
2021-04-24 17:39:11 +08:00
|
|
|
|
public static void Test(this TestComponent self)
|
|
|
|
|
{
|
|
|
|
|
CopyConfig copyConfig = CopyConfigCategory.Instance.Get(CopyConfigId.MainStoryNormalBattle);
|
|
|
|
|
GlobalMethodHelper.Call(copyConfig.MethodName,copyConfig.MethodParams);
|
|
|
|
|
copyConfig = CopyConfigCategory.Instance.Get(CopyConfigId.MainStoryEliteBattle);
|
|
|
|
|
GlobalMethodHelper.Call(copyConfig.MethodName,copyConfig.MethodParams);
|
|
|
|
|
copyConfig = CopyConfigCategory.Instance.Get(CopyConfigId.MainStoryBossBattle);
|
|
|
|
|
GlobalMethodHelper.Call(copyConfig.MethodName,copyConfig.MethodParams);
|
|
|
|
|
}
|
2021-04-15 00:12:07 +08:00
|
|
|
|
}
|
|
|
|
|
}
|