public void Move(UISortieMapCell NextCell, Action onFinishedAnimation) { Vector3 localPosition = NextCell.transform.localPosition; ChangeDirection(CalcDirection(base.transform.localPosition, localPosition)); base.transform.LTMoveLocal(localPosition, Math.Abs(Vector3.Distance(base.transform.localPosition, localPosition)) / 100f).setEase(LeanTweenType.linear).setOnComplete((Action) delegate { Dlg.Call(ref onFinishedAnimation); }); }
private void ActiveTargetCell(List <CellModel> cells) { _listUIMapCell = new List <System.Tuple <int, UISortieMapCell> >(); int cnt = 0; cells.ForEach(delegate(CellModel x) { UISortieMapCell uISortieMapCell = SortieMapTaskManager.GetUIMapManager().cells[x.CellNo]; uISortieMapCell.isActiveBranchingTarget = true; uISortieMapCell.SetOnDecideActiveBranchingTarget(cnt, OnActive, OnDecideMapCell); uISortieMapCell.isFocus2ActiveBranching = ((_nSelectIndex == cnt) ? true : false); _listUIMapCell.Add(new System.Tuple <int, UISortieMapCell>(cnt, uISortieMapCell)); cnt++; }); }
private void OnDecideMapCell(UISortieMapCell cell) { _isInputPossible = false; _listUIMapCell.ForEach(delegate(System.Tuple <int, UISortieMapCell> x) { x.Item2.isActiveBranchingTarget = false; }); UISortieShip sortieShip = SortieMapTaskManager.GetUIMapManager().sortieShip; sortieShip.HideInputIcon(); UIAreaMapFrame uIAreaMapFrame = SortieMapTaskManager.GetUIAreaMapFrame(); uIAreaMapFrame.ClearMessage(); Dlg.Call(ref _actOnDecideMapCell, cell.cellModel.CellNo); }
private void ActiveTargetCell(List <CellModel> cells) { this._listUIMapCell = new List <Tuple <int, UISortieMapCell> >(); int cnt = 0; cells.ForEach(delegate(CellModel x) { UISortieMapCell uISortieMapCell = SortieMapTaskManager.GetUIMapManager().cells.get_Item(x.CellNo); uISortieMapCell.isActiveBranchingTarget = true; uISortieMapCell.SetOnDecideActiveBranchingTarget(cnt, new Action <int>(this.OnActive), new Action <UISortieMapCell>(this.OnDecideMapCell)); uISortieMapCell.isFocus2ActiveBranching = (this._nSelectIndex == cnt); this._listUIMapCell.Add(new Tuple <int, UISortieMapCell>(cnt, uISortieMapCell)); cnt++; }); }
public void PlayDetectionAircraft(UISortieMapCell fromCell, UISortieMapCell toCell, Action onFinished) { ProdAircraftMove prodAircraftMove = ProdAircraftMove.Instantiate(((Component)_prefabEventAircraftMove).GetComponent <ProdAircraftMove>(), SortieMapTaskManager.GetUIMapManager().transform, panel.depth + 1); prodAircraftMove.Move(fromCell.transform.position, toCell.transform.position, onFinished); }