From 6f5d6568c8a637cbbd0e372e4b27d27191e1195d Mon Sep 17 00:00:00 2001 From: Gregory Campbell Date: Fri, 7 Feb 2020 23:26:29 -0500 Subject: [PATCH] Made start/end tiles bigger and adjusted their heights so departing from/landing on these tiles is easier regardless of the connecting tiles --- Assets/Prefabs/Floors/End Floor.prefab | 2 +- Assets/Prefabs/Floors/Start Floor.prefab | 2 +- Assets/Scripts/FloorLevel.cs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/Prefabs/Floors/End Floor.prefab b/Assets/Prefabs/Floors/End Floor.prefab index 4de7cd4..f49177d 100644 --- a/Assets/Prefabs/Floors/End Floor.prefab +++ b/Assets/Prefabs/Floors/End Floor.prefab @@ -28,7 +28,7 @@ Transform: m_GameObject: {fileID: 414519846808350713} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 100, y: 1, z: 100} + m_LocalScale: {x: 125, y: 1, z: 125} m_Children: [] m_Father: {fileID: 0} m_RootOrder: 0 diff --git a/Assets/Prefabs/Floors/Start Floor.prefab b/Assets/Prefabs/Floors/Start Floor.prefab index 12ba02f..08ae9c8 100644 --- a/Assets/Prefabs/Floors/Start Floor.prefab +++ b/Assets/Prefabs/Floors/Start Floor.prefab @@ -28,7 +28,7 @@ Transform: m_GameObject: {fileID: 2429100199437399696} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 100, y: 1, z: 100} + m_LocalScale: {x: 125, y: 1, z: 125} m_Children: [] m_Father: {fileID: 0} m_RootOrder: 0 diff --git a/Assets/Scripts/FloorLevel.cs b/Assets/Scripts/FloorLevel.cs index 4b94941..08b2310 100644 --- a/Assets/Scripts/FloorLevel.cs +++ b/Assets/Scripts/FloorLevel.cs @@ -85,7 +85,7 @@ public class FloorLevel : MonoBehaviour void respawn() { - script.transform.position = new Vector3((100*escalation)+50, 2, (100*escalation)+50); + script.transform.position = new Vector3((100*escalation)+50, 7, (100*escalation)+50); script.transform.Rotate(0.0f, 0.0f, 0.0f, Space.Self); } @@ -320,8 +320,8 @@ public class FloorLevel : MonoBehaviour } - Instantiate(obstacleList[0], new Vector3((100*escalation)+50, 0, (100*escalation)+50), Quaternion.identity); - Instantiate(obstacleList[1], new Vector3(-((100*escalation)+50), 0, -((100*escalation)+50)), Quaternion.identity); + Instantiate(obstacleList[0], new Vector3((100*escalation)+50, 5, (100*escalation)+50), Quaternion.identity); + Instantiate(obstacleList[1], new Vector3(-((100*escalation)+50), -10, -((100*escalation)+50)), Quaternion.identity); script.finished = false; }