Esempio n. 1
0
    void Start()
    {
        MapData data      = MapDataParser.ParseMapData(MapFolderName);
        var     mapParent = GameObject.Instantiate(MapPrefab);

        heightRenderer.RenderMap(data, mapParent);
        surfaceRenderer.RenderMap(data, mapParent, BasingMatPrefab, TerrainTextureMatPrefab, WaterMatPrefab);
        doodadRenderer.RenderMap(data, mapParent);
    }
Esempio n. 2
0
    // PUBLIC

    #endregion

    #region UNITY METHODE
    void Awake()
    {
        mapData = gameObject.GetComponent <MapDataParser>();
    }
Esempio n. 3
0
    // PUBLIC

    #endregion

    #region UNITY METHODE
    void Awake()
    {
        mapData           = Camera.main.GetComponent <MapDataParser>();
        clickInfo         = Camera.main.GetComponent <ClickInformation>();
        aStar_Pathfinding = Camera.main.GetComponent <AStar_Pathfinding>();
    }