Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new MapTileNode
 /// </summary>
 /// <param name="idx">The index is a concatenation of the two grid positions</param>
 /// <param name="owner"></param>
 public MapTileNode(TilemapGroup tilemapGroup, MapPathFinding owner, int idx)
 {
     m_owner        = owner;
     m_tilemapGroup = tilemapGroup;
     SetGridPos(idx >> 16, (int)(short)idx, m_owner.CellSize);
     //NOTE: calculate m_costFactor here using Tile parameters
     m_costFactor = 1f;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new MapTileNode
 /// </summary>
 /// <param name="idx">The index is a concatenation of the two grid positions</param>
 /// <param name="owner"></param>
 public MapTileNode(TilemapGroup tilemapGroup, MapPathFinding owner)
 {
     m_owner        = owner;
     m_tilemapGroup = tilemapGroup;
 }