chenxin
2020-12-02 cc7ed63c3efab2640c9cc56225519ab187fd7cbc
Assets/Scripts/TowerDefense/Agents/Agent.cs
@@ -474,18 +474,6 @@
            poisonTimes = 0;
            timeToPoisonHurt = 0;
            CanMove = true;
            /*// 如果对应的粒子不为空,则播放
         if( spawnParticle)
            {
            ParticleSystem tpar = Instantiate<ParticleSystem>(spawnParticle);
            tpar.transform.localScale = new Vector3(1.5f, 1.5f, 1.5f);
            tpar.transform.position = this.transform.position;
            tpar.Simulate(0.0f);
            tpar.Play();
         }*/
            // if (healthBar)
            //    healthBar.bOpponent = opponentAgent;
        }
        /// <summary>
@@ -542,7 +530,6 @@
            // 需要设置移动的目标Node.
            m_NextNode = m_CurrentNode.GetNextNode();
            this.MoveToNode();
        }
@@ -786,22 +773,6 @@
            if (!m_CurrentNode) return;
            Node nextNode = m_CurrentNode.GetNextNode();
            if (!nextNode) return;
            /*         if (m_CurrentNode.transform.position.z > nextNode.transform.position.z)
                            this.m_PositiveZ = false;
                        else
                            this.m_PositiveZ = true;
                        m_ZMaxValue = nextNode.transform.position.z;
                        Node thirdNode = nextNode.GetNextNode();
                        if (!thirdNode) return;
                        if (thirdNode.transform.position.x > nextNode.transform.position.x)
                            this.m_PositiveX = true;
                        else
                        {
                            this.m_PositiveX = false;
                        }
                        m_XMaxValue = thirdNode.transform.position.x;*/
        }
        /// <summary>