|
|
@ -84,7 +84,7 @@ public class TileManager : MonoBehaviour |
|
|
|
var _newTileObj = Instantiate(_selectedTile.prefab); |
|
|
|
_newTileObj.transform.forward = m_currentTile.exitAnchor.transform.forward; |
|
|
|
|
|
|
|
var _newTileController = _newTileObj.GetComponent<TileController>(); |
|
|
|
var _newTileController = _newTileObj.GetComponentInChildren<TileController>(); |
|
|
|
|
|
|
|
Vector3 _offset = m_currentTile.exitAnchor.position - _newTileController.entryAnchor.position; |
|
|
|
_newTileObj.transform.position += _offset; |
|
|
|