Browse Source

Some tile data

main
Joshua 1 year ago
parent
commit
c49769e3a2
10 changed files with 29 additions and 7 deletions
  1. BIN
      Assets/Data/Tiles/Bend_Left.asset
  2. BIN
      Assets/Data/Tiles/Bend_Left_01.asset
  3. +0
    -0
      Assets/Data/Tiles/Bend_Left_01.asset.meta
  4. BIN
      Assets/Data/Tiles/Bend_Left_02.asset
  5. +8
    -0
      Assets/Data/Tiles/Bend_Left_02.asset.meta
  6. BIN
      Assets/Data/Tiles/Straight_01.asset
  7. BIN
      Assets/Data/Tiles/Straight_02.asset
  8. +8
    -0
      Assets/Data/Tiles/Straight_02.asset.meta
  9. BIN
      Assets/Scenes/Main.unity
  10. +1
    -1
      Assets/Scripts/Route/TileManager.cs

BIN
Assets/Data/Tiles/Bend_Left.asset (Stored with Git LFS) View File

size 502

BIN
Assets/Data/Tiles/Bend_Left_01.asset (Stored with Git LFS) View File

size 505

Assets/Data/Tiles/Bend_Left.asset.meta → Assets/Data/Tiles/Bend_Left_01.asset.meta View File


BIN
Assets/Data/Tiles/Bend_Left_02.asset (Stored with Git LFS) View File

size 505

+ 8
- 0
Assets/Data/Tiles/Bend_Left_02.asset.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fcc2d51be6341b64b8709e5259b7b848
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Data/Tiles/Straight_01.asset (Stored with Git LFS) View File

size 503 size 503

BIN
Assets/Data/Tiles/Straight_02.asset (Stored with Git LFS) View File

size 503

+ 8
- 0
Assets/Data/Tiles/Straight_02.asset.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 27840c40339e676429a2e06442fbfe0d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Scenes/Main.unity (Stored with Git LFS) View File

size 65336

+ 1
- 1
Assets/Scripts/Route/TileManager.cs View File

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

Loading…
Cancel
Save