void Start() { MonsterModel.Instance.InitCrawlCreators(); MonsterModel.Instance.InitCrawl(); foreach (FightLayerType key in layerDic.Keys) { FightBaseLayer layer = layerDic[key]; layer.ShowList(); } LeanTween.delayedCall(0.1f, fightUI.InitView); int hideHeight = BattleModel.Instance.crtBattle.HideHeight(); if (hideHeight > 0) { crtFightStadus = FightStadus.roll; animTrans.anchoredPosition = new Vector2(0, hideHeight * PosUtil.CELL_H); float tweenTime = hideHeight * 0.5f; LeanTween.move(animTrans, new Vector2(0, 0), tweenTime).onComplete = AllRollComplete; } else { crtFightStadus = FightStadus.idle; animTrans.anchoredPosition = new Vector2(0, 0); } LeanTween.delayedCall(0.2f, ShowControl); }
private void StepRollComplete() { BattleModel.Instance.RollCut(rollCount); animTrans.anchoredPosition = new Vector2(0, 0); foreach (FightLayerType key in layerDic.Keys) { FightBaseLayer layer = layerDic[key]; layer.ShowList(); if (key == FightLayerType.cell) { CellLayer cellLayer = (CellLayer)layer; cellLayer.CheckAutoRefresh(); } } crtFightStadus = FightStadus.idle; }