game(ai): nicen car code
This commit is contained in:
parent
51148ef5e2
commit
98b9bfae92
|
@ -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;
|
||||
|
|
Reference in a new issue