Ejemplo n.º 1
0
        public IEnumerator StartAnimation(BattleFormationKinds1 iKind)
        {
            int nSelectNo = (int)(iKind - 1);

            Formations.ForEach(delegate(UISprite x)
            {
                iTween.Stop(x.gameObject);
            });
            yield return(null);

            for (int i = 0; i < Formations.Length; i++)
            {
                if (i != nSelectNo)
                {
                    Formations[i].transform.position = defaultPos[i];
                    iTween.MoveBy(Formations[i].gameObject, iTween.Hash("x", 2, "easeType", easeType, "time", duration + (float)i * delay));
                }
            }
            flash[nSelectNo].flash(4, 0.05f);
            yield return(new WaitForSeconds(delay * (float)Formations.Length));

            Formations[nSelectNo].transform.LTMoveLocalY(-288f, 0.5f).setEase(LeanTweenType.easeOutQuint);
            IconPanel.transform.LTMoveLocalX(190f, 0.5f).setEase(LeanTweenType.easeOutQuint);
            yield return(new WaitForSeconds(0.2f));

            BtlCut_Live2D live2D = BattleCutManager.GetLive2D();

            live2D.ShowLive2D();
            live2D.ChangeMotion(Live2DModel.MotionType.Battle).Play().PlayShipVoice(13);
            yield return(new WaitForSeconds(2f));
        }