Пример #1
0
    private void Start()
    {
        grid.Generate();
        SetUnpassables();

        algorithm.GenerateDistanceField();
        algorithm.GenerateVectorFields();

        // Spawns just a single actor for testing.
        group = new Group(1, actorPrefab);
        group.SetStartPositions();

        #if UNITY_EDITOR
        debug.InitCam(width, length, grid, goals);
        #endif
    }