Exemple #1
0
        protected void buildPathPt6f(int pathIdx)
        {
            MazePtBase pt   = null;
            string     path = "";

            for (int idx = 0; idx < 6; ++idx)
            {
                if (0 == idx)
                {
                    pt = new MazeStartPt();
                }
                else if (3 == idx)
                {
                    pt = new MazeEndPt();
                }
                else if (4 == idx)
                {
                    pt = new MazeBombPt();
                }
                else if (5 == idx)
                {
                    pt = new MazeDiePt();
                }
                else
                {
                    pt = new MazeComPt();
                }
                m_ptListArr[pathIdx].Add(pt);

                path   = string.Format("WayPt_{0}{1}", pathIdx, idx);
                pt.pos = UtilApi.TransFindChildByPObjAndPath(this.selfGo, path).transform.localPosition;
            }
        }
Exemple #2
0
        // 死亡点
        public void moveToDestPos(MazeDiePt pt_)
        {
            // 死亡点
            m_bDiePt = true;

            PosAni posAni;

            posAni = new PosAni();
            m_numAniParal.addOneNumAni(posAni);
            posAni.setGO(m_mazePlayer.selfGo);
            posAni.destPos = pt_.pos;
            posAni.setTime(3);
            posAni.setEaseType(iTween.EaseType.easeInOutBounce);

            m_numAniParal.play();

            playDieAniAndSound();
        }
        // 死亡点
        public void moveToDestPos(MazeDiePt pt_)
        {
            // 死亡点
            m_bDiePt = true;

            PosAni posAni;
            posAni = new PosAni();
            m_numAniParal.addOneNumAni(posAni);
            posAni.setGO(m_mazePlayer.selfGo);
            posAni.destPos = pt_.pos;
            posAni.setTime(3);
            posAni.setEaseType(iTween.EaseType.easeInOutBounce);

            m_numAniParal.play();

            playDieAniAndSound();
        }
Exemple #4
0
        protected void buildPathPt6f(int pathIdx)
        {
            MazePtBase pt = null;
            string path = "";

            for (int idx = 0; idx < 6; ++idx)
            {
                if (0 == idx)
                {
                    pt = new MazeStartPt();
                }
                else if (3 == idx)
                {
                    pt = new MazeEndPt();
                }
                else if (4 == idx)
                {
                    pt = new MazeBombPt();
                }
                else if (5 == idx)
                {
                    pt = new MazeDiePt();
                }
                else
                {
                    pt = new MazeComPt();
                }
                m_ptListArr[pathIdx].Add(pt);

                path = string.Format("WayPt_{0}{1}", pathIdx, idx);
                pt.pos = UtilApi.TransFindChildByPObjAndPath(this.selfGo, path).transform.localPosition;
            }
        }