zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Unity/Assets/Hotfix/Logic/Behaviour/Game/Event/Battle/BattleEndEvent.cs

34 lines
944 B
C#

using ET.EventType;
using ET;
using System;
using System.Collections.Generic;
namespace ET
{
public class BattleEndEvent : AEvent_Sync<BattleEnd>
{
public override void Run(BattleEnd args)
{
try
{
Game.EventSystem.Publish_Sync(new ET.EventType.TranslateSceneStart {isAutoEnd =false});
PosHelper.BackPos( args.zoneScene);
Game.EventSystem.Publish(new ET.EventType.StateBuffUI_Init
{
}).Coroutine();
Game.EventSystem.Publish_Sync(new ET.EventType.ShowOthersUnit
{
zoneScene = args.zoneScene
});
BattleComponent.Clear();
Game.EventSystem.Publish_Sync(new ET.EventType.TranslateSceneEnd { });
}
catch (Exception e)
{
Log.Error(e);
}
}
}
}