Пример #1
0
    void InitLevel()
    {
        Vector3 playerSpawn;
        GameObject player = GameObject.Find("Soldier");

        Tile.SetCamera();

        BasicLevelGenerator generator = new BasicLevelGenerator();
        int[,] generatedLevel = generator.GenerateLevel(GameState.LevelIndex, out playerSpawn);
        setTiles(generatedLevel, playerSpawn, player);

        AStar.world = generatedLevel;
    }
Пример #2
0
    void InitLevel()
    {
        WALL_COLLIDERS_INITIALIZED = false;

        Vector3 playerSpawn;
        GameObject player = GameObject.Find("Soldier");

        Tile.SetCamera();

        BasicLevelGenerator generator = new BasicLevelGenerator();
        int[,] generatedLevel = generator.GenerateLevel(levelIndex, out playerSpawn);
        setTiles(generatedLevel, playerSpawn, player);
        AStar.world = generatedLevel;
    }