private void Awake() { current = this; pathDebug = debugObj.GetComponent <DisplayPath>(); displayOldCarPositions = debugObj.GetComponent <DisplayOldCarPositions>(); displayGrid = debugObj.GetComponent <DisplayGrid>(); obstacleDebug = debugObj.GetComponent <ObstacleDebug>(); }
void Awake() { egoCar = GameObject.Find("EgoCar"); egoCarInterface = egoCar.GetComponent <EgoCarInterface>(); egoCarData = egoCar.GetComponent <CarData>(); heuristicsController = new HeuristicsController(); smoothPathController = new SmoothPathController(); debugController = GetComponent <DebugController>(); }