private void Awake()
        {
            current = this;

            pathDebug = debugObj.GetComponent <DisplayPath>();

            displayOldCarPositions = debugObj.GetComponent <DisplayOldCarPositions>();

            displayGrid = debugObj.GetComponent <DisplayGrid>();

            obstacleDebug = debugObj.GetComponent <ObstacleDebug>();
        }
Пример #2
0
        void Start()
        {
            displayGrid = debugObj.GetComponent <DisplayGrid>();

            obstacleDebug = debugObj.GetComponent <ObstacleDebug>();

            displayPath = debugObj.GetComponent <DisplayPath>();

            menuObj.SetActive(false);

            StartCoroutine(UpdateSpeedText());
        }