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));
        }
        public static BtlCut_Live2D Instantiate(BtlCut_Live2D prefab, Transform parent, Vector3 pos)
        {
            BtlCut_Live2D btlCut_Live2D = Object.Instantiate <BtlCut_Live2D>(prefab);

            btlCut_Live2D.get_transform().set_parent(parent);
            btlCut_Live2D.get_transform().localPositionZero();
            btlCut_Live2D.get_transform().localScaleOne();
            return(btlCut_Live2D);
        }
Ejemplo n.º 3
0
        public static BtlCut_Live2D Instantiate(BtlCut_Live2D prefab, Transform parent, Vector3 pos)
        {
            BtlCut_Live2D btlCut_Live2D = UnityEngine.Object.Instantiate(prefab);

            btlCut_Live2D.transform.parent = parent;
            btlCut_Live2D.transform.localPositionZero();
            btlCut_Live2D.transform.localScaleOne();
            return(btlCut_Live2D);
        }