diff --git a/Assets/Data/Tiles/Bend_Left.asset b/Assets/Data/Tiles/Bend_Left.asset deleted file mode 100644 index 6584830..0000000 --- a/Assets/Data/Tiles/Bend_Left.asset +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5d2827fd1d81a3700ba37186dcd7700fca664b589eb44a130061b1669c439f0f -size 502 diff --git a/Assets/Data/Tiles/Bend_Left_01.asset b/Assets/Data/Tiles/Bend_Left_01.asset new file mode 100644 index 0000000..69fb73e --- /dev/null +++ b/Assets/Data/Tiles/Bend_Left_01.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f078f1f5525c03b852a766c298a619546534527eb85a2eff1d3421de04624d3 +size 505 diff --git a/Assets/Data/Tiles/Bend_Left.asset.meta b/Assets/Data/Tiles/Bend_Left_01.asset.meta similarity index 100% rename from Assets/Data/Tiles/Bend_Left.asset.meta rename to Assets/Data/Tiles/Bend_Left_01.asset.meta diff --git a/Assets/Data/Tiles/Bend_Left_02.asset b/Assets/Data/Tiles/Bend_Left_02.asset new file mode 100644 index 0000000..53c7985 --- /dev/null +++ b/Assets/Data/Tiles/Bend_Left_02.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4b5786f658c575bede6e76c8eeb7c5e6ff83f688dfee3f83010a7e885aa1bb9 +size 505 diff --git a/Assets/Data/Tiles/Bend_Left_02.asset.meta b/Assets/Data/Tiles/Bend_Left_02.asset.meta new file mode 100644 index 0000000..01cbdc6 --- /dev/null +++ b/Assets/Data/Tiles/Bend_Left_02.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fcc2d51be6341b64b8709e5259b7b848 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Data/Tiles/Straight_01.asset b/Assets/Data/Tiles/Straight_01.asset index 646b968..97b92aa 100644 --- a/Assets/Data/Tiles/Straight_01.asset +++ b/Assets/Data/Tiles/Straight_01.asset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:36917b533f5f5abc01c79997c664649aa49661692510f886005f67313d8edae7 +oid sha256:86d4bebfbf84f9a871f041e93ea64381b49275abb65751668288bf9e0482bff7 size 503 diff --git a/Assets/Data/Tiles/Straight_02.asset b/Assets/Data/Tiles/Straight_02.asset new file mode 100644 index 0000000..8f56d9c --- /dev/null +++ b/Assets/Data/Tiles/Straight_02.asset @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea27d5d41b4fb21f05ee18f081f12798d1aa17cd79932c34da203f3a42a73370 +size 503 diff --git a/Assets/Data/Tiles/Straight_02.asset.meta b/Assets/Data/Tiles/Straight_02.asset.meta new file mode 100644 index 0000000..a7d9926 --- /dev/null +++ b/Assets/Data/Tiles/Straight_02.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 27840c40339e676429a2e06442fbfe0d +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index cd51a65..85ed0b2 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a2e303750b2ca3c5dbc150ccfcce0ac7338d3437cd3c07e269282cb458e4f505 -size 65193 +oid sha256:e0cc345bf817079df6b981b7cb4356f840adebcf6a295e63f3e86aeeaac6a644 +size 65336 diff --git a/Assets/Scripts/Route/TileManager.cs b/Assets/Scripts/Route/TileManager.cs index 58675bd..0b28105 100644 --- a/Assets/Scripts/Route/TileManager.cs +++ b/Assets/Scripts/Route/TileManager.cs @@ -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(); + var _newTileController = _newTileObj.GetComponentInChildren(); Vector3 _offset = m_currentTile.exitAnchor.position - _newTileController.entryAnchor.position; _newTileObj.transform.position += _offset;