34 lines
929 B
C#
34 lines
929 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();
|
|||
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|