game(ai): use System.Random directly in ChangeState
This commit is contained in:
parent
0e6928ae37
commit
2c6ee68988
|
@ -7,7 +7,6 @@
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.AI;
|
using UnityEngine.AI;
|
||||||
using Random = System.Random;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// TODO
|
/// TODO
|
||||||
|
@ -99,7 +98,7 @@ private void ChangeState()
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void SearchWalkPoint()
|
private void SearchWalkPoint()
|
||||||
{
|
{
|
||||||
var rand = new Random();
|
var rand = new System.Random();
|
||||||
float randomX = rand.Next(-movingRange * 100, movingRange * 100);
|
float randomX = rand.Next(-movingRange * 100, movingRange * 100);
|
||||||
float randomZ = rand.Next(-movingRange * 100, movingRange * 100);
|
float randomZ = rand.Next(-movingRange * 100, movingRange * 100);
|
||||||
destinationCoord = new Vector3(
|
destinationCoord = new Vector3(
|
||||||
|
|
Reference in a new issue