// 移动到下一个开始点,需要跳跃
        public void moveToDestPos(MazeStartPt pt_)
        {
            string path = Path.Combine(Ctx.m_instance.m_cfg.m_pathLst[(int)ResPathType.ePathAudio], "Jump.mp3");
            Ctx.m_instance.m_soundMgr.play(path, false);

            Vector3 srcPos = m_mazePlayer.selfGo.transform.localPosition;
            Vector3 destPos = pt_.pos;
            //float time = 1;

            Vector3 midPt;      // 中间点
            midPt = (srcPos + destPos) / 2;
            midPt.y = 5;

            SimpleCurveAni curveAni = new SimpleCurveAni();
            m_numAniParal.addOneNumAni(curveAni);
            curveAni.setGO(m_mazePlayer.selfGo);
            curveAni.setTime(sTime);
            curveAni.setPlotCount(3);
            curveAni.addPlotPt(0, srcPos);
            curveAni.addPlotPt(1, midPt);
            curveAni.addPlotPt(2, destPos);
            curveAni.setAniEndDisp(onMove2DestEnd);

            curveAni.setEaseType(iTween.EaseType.easeInExpo);

            m_numAniParal.play();
        }
Esempio n. 2
0
        // 移动动画
        public void moveToDest(Vector3 srcPos, Vector3 destPos, float time, Action <NumAniBase> handle)
        {
            Vector3 midPt;      // 中间点

            midPt   = (srcPos + destPos) / 2;
            midPt.y = 2;

            SimpleCurveAni curveAni = new SimpleCurveAni();

            m_numAniSeq.addOneNumAni(curveAni);
            curveAni.setGO(m_entity.gameObject());
            curveAni.setTime(time);
            curveAni.setPlotCount(3);
            curveAni.addPlotPt(0, srcPos);
            curveAni.addPlotPt(1, midPt);
            curveAni.addPlotPt(2, destPos);
            if (handle != null)
            {
                curveAni.setAniEndDisp(handle);
            }

            curveAni.setEaseType(iTween.EaseType.easeInExpo);

            m_numAniSeq.play();
        }
Esempio n. 3
0
        // 移动到下一个开始点,需要跳跃
        public void moveToDestPos(MazeStartPt pt_)
        {
            string path = Path.Combine(Ctx.m_instance.m_cfg.m_pathLst[(int)ResPathType.ePathAudio], "Jump.mp3");

            Ctx.m_instance.m_soundMgr.play(path, false);

            Vector3 srcPos  = m_mazePlayer.selfGo.transform.localPosition;
            Vector3 destPos = pt_.pos;
            //float time = 1;

            Vector3 midPt;      // 中间点

            midPt   = (srcPos + destPos) / 2;
            midPt.y = 5;

            SimpleCurveAni curveAni = new SimpleCurveAni();

            m_numAniParal.addOneNumAni(curveAni);
            curveAni.setGO(m_mazePlayer.selfGo);
            curveAni.setTime(sTime);
            curveAni.setPlotCount(3);
            curveAni.addPlotPt(0, srcPos);
            curveAni.addPlotPt(1, midPt);
            curveAni.addPlotPt(2, destPos);
            curveAni.setAniEndDisp(onMove2DestEnd);

            curveAni.setEaseType(iTween.EaseType.easeInExpo);

            m_numAniParal.play();
        }
Esempio n. 4
0
        // 移动动画
        public void moveToDest(Vector3 srcPos, Vector3 destPos, float time, Action<NumAniBase> handle)
        {
            Vector3 midPt;      // 中间点
            midPt = (srcPos + destPos) / 2;
            midPt.y = 2;

            SimpleCurveAni curveAni = new SimpleCurveAni();
            m_numAniSeq.addOneNumAni(curveAni);
            curveAni.setGO(m_entity.gameObject());
            curveAni.setTime(time);
            curveAni.setPlotCount(3);
            curveAni.addPlotPt(0, srcPos);
            curveAni.addPlotPt(1, midPt);
            curveAni.addPlotPt(2, destPos);
            if (handle != null)
            {
                curveAni.setAniEndDisp(handle);
            }

            curveAni.setEaseType(iTween.EaseType.easeInExpo);

            m_numAniSeq.play();
        }