| | |
| | | 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> |
| | |
| | | |
| | | // 需要设置移动的目标Node. |
| | | m_NextNode = m_CurrentNode.GetNextNode(); |
| | | |
| | | |
| | | this.MoveToNode(); |
| | | } |
| | |
| | | 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> |