Example #1
0
 public void Awake()
 {
     _aStarController = GetComponent <MinimapController_Tile>();
     _renderRoot      = new GameObject();
     _renderRoot.name = "(MiniMap) Tile A* Render Root";
     _renderRoot.transform.SetParent(this.transform);
     _renderRoot.transform.localPosition = new Vector3(0, 105, 100);
     _rTiles       = null;
     _pathRenderer = null;
 }
Example #2
0
    public void Awake()
    {
        tileMap = new TileMap();

        _renderer                = GetComponent <TileMapRenderer>();
        _aStarControllerTile     = GetComponent <MinimapController_Tile>();
        _aStarControllerWaypoint = GetComponent <MinimapController_Waypoint>();

        _startPointGO = GameObject.Instantiate(startPointPrefab);
        _startPointGO.transform.SetParent(transform);
        _endPointGO = GameObject.Instantiate(endPointPrefab);
        _endPointGO.transform.SetParent(transform);

        _guiState = GUIState.Normal;
        _worldRep = WorldRepresenation.Tile;
    }