Revert "game(ai): use System.Random directly in ChangeState"

This reverts commit 2c6ee68988.
This commit is contained in:
Mark Joshwel 2024-08-10 13:12:09 +08:00
parent 2c6ee68988
commit e74332781d

View file

@ -7,6 +7,7 @@
using System.Collections;
using UnityEngine;
using UnityEngine.AI;
using Random = System.Random;
/// <summary>
/// TODO
@ -98,7 +99,7 @@ private void ChangeState()
/// </summary>
private void SearchWalkPoint()
{
var rand = new System.Random();
var rand = new Random();
float randomX = rand.Next(-movingRange * 100, movingRange * 100);
float randomZ = rand.Next(-movingRange * 100, movingRange * 100);
destinationCoord = new Vector3(