Пример #1
0
        public void setMap(TileMap map, Vector2 location)
        {
            camera.setMap(map);
            player.setTileLocation(location);
            resetEntities();
            camera.forceUpdate();

            LuaScript startScript = map.getScript(map.playerStart);

            if (startScript != null)
            {
                startScript.execute(player, lua);
            }
        }