Exemple #1
0
    void MakeMap()
    {
        // PVP모드에서는 서버에서 받은 MapData를 사용
        TileMapFactory         factory_map = this.GetComponent <TileMapFactory>();
        Dictionary <int, Tile> map_data    = factory_map.MakeTileMap();

        this.GetComponent <TileMap>().SetTileMap(map_data);
    }
Exemple #2
0
    void SetPVEMode()
    {
        //1. 맵 생성
        TileMapFactory         factory_map = this.GetComponent <TileMapFactory>();
        Dictionary <int, Tile> map_data    = factory_map.MakeTileMap();

        this.GetComponent <TileMap>().SetTileMap(map_data);

        //2. 캐릭터 생성
        SetAICharacter(5);
    }
Exemple #3
0
    private void Start()
    {
        mTileMap     = this.GetComponent <TileMap>();
        mTileFactory = this.GetComponent <TileMapFactory>();

        BoundBox.SetActive(true);

        // 타일맵 세팅
        Dictionary <int, Tile> map_tile = mTileFactory.MakeTileMap();

        this.GetComponent <TileMap>().SetTileMap(map_tile);
    }