private void Awake() { current = this; pathDebug = debugObj.GetComponent <DisplayPath>(); displayOldCarPositions = debugObj.GetComponent <DisplayOldCarPositions>(); displayGrid = debugObj.GetComponent <DisplayGrid>(); obstacleDebug = debugObj.GetComponent <ObstacleDebug>(); }
void Start() { displayGrid = debugObj.GetComponent <DisplayGrid>(); obstacleDebug = debugObj.GetComponent <ObstacleDebug>(); displayPath = debugObj.GetComponent <DisplayPath>(); menuObj.SetActive(false); StartCoroutine(UpdateSpeedText()); }