示例#1
0
        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);
            }
        }
示例#2
0
        public virtual void PlayChild(GuideStepData stepData)
        {
            GuideStepAction action = Guide.actionManager.CreateAction(stepData);

            action.SetData(stepData);
            action.Enter();
        }
示例#3
0
 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;
 }
示例#4
0
        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());
        }
示例#5
0
 public void Play(GuideStepAction action)
 {
     dialog.SetActive(false);
     icon.DOMove(targetIcon.position, 1.5f).OnComplete(() => { action.End(); });
     icon.DOScale(Vector3.one, 1.5f);
 }
示例#6
0
 public void Play(GuideStepAction action)
 {
     icon.DOMove(targetIcon.position, 1f).OnComplete(() => { action.End(); });
 }