From 2c6ee68988f38502ba2db87afc38aa95e5355b9b Mon Sep 17 00:00:00 2001 From: Mark Joshwel Date: Sat, 10 Aug 2024 12:30:51 +0800 Subject: [PATCH] game(ai): use System.Random directly in ChangeState --- RunningLateGame/Assets/Scripts/AI.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/RunningLateGame/Assets/Scripts/AI.cs b/RunningLateGame/Assets/Scripts/AI.cs index 7fc0f8f..895ab29 100644 --- a/RunningLateGame/Assets/Scripts/AI.cs +++ b/RunningLateGame/Assets/Scripts/AI.cs @@ -7,7 +7,6 @@ using System.Collections; using UnityEngine; using UnityEngine.AI; -using Random = System.Random; /// /// TODO @@ -99,7 +98,7 @@ private void ChangeState() /// private void SearchWalkPoint() { - var rand = new Random(); + var rand = new System.Random(); float randomX = rand.Next(-movingRange * 100, movingRange * 100); float randomZ = rand.Next(-movingRange * 100, movingRange * 100); destinationCoord = new Vector3(