| | |
| | | { |
| | | Vector3 _nextPosition = Vector3.zero; |
| | | bool fight = false; |
| | | if (Random.Range(0, 3) == 1) |
| | | int moveWay = Random.Range(0, 3); |
| | | if (moveWay == 1) |
| | | { |
| | | fight = true; |
| | | _nextPosition = GetFightNpcPosition(); |
| | | } |
| | | else if (moveWay == 2) |
| | | _nextPosition = GetRandomNpcPosition(); |
| | | else |
| | | _nextPosition = GetCloserNpcPosition(); |
| | | |
| | |
| | | // 等级限制 |
| | | private static int m_LevelLimit = int.Parse(gemTypeConfig.Numerical1); |
| | | // 创建间隔 |
| | | private static float m_CraeteInterval = 3f; |
| | | private static float m_CraeteInterval = 2f; |
| | | // 计算创建间隔 |
| | | private static float m_CraeteCalcTime = 0; |
| | | // 最大的玩家数量 |