public void FlyScreen(GuideStepAction action) { gameObject.SetActive(true); int count = cardList.Count; float startX = (cardWidth + gap) * count - gap; startX = startX * -0.5f + cardWidth * 0.5f; for (int i = 0; i < count; i++) { GuideHeroCard card = cardList[i]; Vector2 pos = new Vector2(startX, 100); startX += cardWidth + gap; // if(i == count -1) // { // (card.transform as RectTransform).DOAnchorPos(pos, 0.5f).SetDelay(i * 0.2f).OnComplete(()=>{ // action.End(); // }); // } // else // { // (card.transform as RectTransform).DOAnchorPos(pos, 0.5f).SetDelay(i * 0.2f); // } (card.transform as RectTransform).DOAnchorPos(pos, 0.5f).SetDelay(i * 0.2f); } }
public virtual void PlayChild(GuideStepData stepData) { GuideStepAction action = Guide.actionManager.CreateAction(stepData); action.SetData(stepData); action.Enter(); }
public MoveTo_SendArm(int id, int fromId, int toId, GuideMoveToPanel guidePanel, GuideStepAction stepAction) { this.id = id; this.fromId = fromId; this.toId = toId; this.guidePanel = guidePanel; this.stepAction = stepAction; }
public void Set(GuideStepAction stepAction, int skillId, int buildId) { if (War.ownLegionData.GetSkillDataBySkillId(skillId) == null) { stepAction.NextFrameEnd(); return; } this.stepAction = stepAction; this.skillId = skillId; this.buildId = buildId; this.moveId = skillId; gameObject.SetActive(true); StopAllCoroutines(); StartCoroutine(Check()); }
public void Play(GuideStepAction action) { dialog.SetActive(false); icon.DOMove(targetIcon.position, 1.5f).OnComplete(() => { action.End(); }); icon.DOScale(Vector3.one, 1.5f); }
public void Play(GuideStepAction action) { icon.DOMove(targetIcon.position, 1f).OnComplete(() => { action.End(); }); }