using System.Collections.Generic; using BehaviorDesigner.Runtime; using MoleMole.Config; using UnityEngine; using UnityEngine.UI; using proto; using Material = UnityEngine.Material; namespace MoleMole { public class EndlessFloorEndPageContext : BasePageContext { private const float WAIT_TIME = 1f; private const string DROP_ITEM_SCALE_07 = "DropItemScale07"; private const string MATERIAL_GRAY_SCALE_PATH = "Material/ImageGrayscale"; private SequenceAnimationManager _animationManager; public readonly bool isSuccess; public readonly EvtLevelState.LevelEndReason endReason; private SequenceAnimationManager _dropPanelBGAnimationManager; private SequenceAnimationManager _dropItemAnimationManager; private List _dropItemList; private MonoGridScroller _dropScroller; private EndlessStageBeginRsp _stageBeginRsp; private EndlessGroupMetaData _groupMetaData; private LoadingWheelWidgetContext _loadingWheelDialogContext; private bool _hasAvatarDie; public EndlessFloorEndPageContext(bool isSuccess) { config = new ContextPattern { contextName = "EndlessFloorEndPageContext", viewPrefabPath = "UI/Menus/Page/EndlessActivity/EndlessFloorEndPage" }; this.isSuccess = isSuccess; if (Singleton.Instance != null) { Singleton.Instance.isLevelSuccess = isSuccess; } } public EndlessFloorEndPageContext(EvtLevelState.LevelEndReason reason) { config = new ContextPattern { contextName = "EndlessFloorEndPageContext", viewPrefabPath = "UI/Menus/Page/EndlessActivity/EndlessFloorEndPage" }; endReason = reason; isSuccess = reason == EvtLevelState.LevelEndReason.EndWin; if (Singleton.Instance != null) { Singleton.Instance.isLevelSuccess = isSuccess; } } protected override void BindViewCallbacks() { BindViewCallback(base.view.transform.Find("Actions/ExitBtn/Button").GetComponent