game(ai): nicen car code

This commit is contained in:
Mark Joshwel 2024-08-10 02:27:32 +08:00
parent 51148ef5e2
commit 98b9bfae92

View file

@ -95,10 +95,9 @@ private void Awake()
{
var hasChild = false;
var i = 0;
GameObject test;
while (!hasChild)
{
test = gameObject.transform.GetChild(i).gameObject;
var test = gameObject.transform.GetChild(i).gameObject;
if (test.name == "Target")
{
_driveTarget = test.transform;