using asap.core; using cfg; using GameCore; using System.Threading.Tasks; public class MatchGameAct : AGameAct { EventMatchGameManager matchGameManager; EventMatchInit eventMatchInit; public override async Task StartAsync() { matchGameManager = new EventMatchGameManager(); MatchGameData data = matchGameManager.GetEventData(); eventMatchInit = matchGameManager.GetMatchInit(data.eventID); await UIManager.Instance.ShowUI(new UIType(eventMatchInit.UIPanel)); return await base.StartAsync(); } public override async Task StopAsync() { UIManager.Instance.DestroyUI(new UIType(eventMatchInit.UIPanel)); UIManager.Instance.DestroyUI(new UIType(eventMatchInit.InfoPanel)); await base.StopAsync(); } protected override void OnDestroy() { } }