From da8b3da1874da6f615916bbc2342386121d55235 Mon Sep 17 00:00:00 2001 From: Gregory Campbell Date: Fri, 7 Feb 2020 23:20:48 -0500 Subject: [PATCH] Straightened up all obstacles in corner list --- Assets/Scripts/FloorLevel.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/Scripts/FloorLevel.cs b/Assets/Scripts/FloorLevel.cs index 93e951f..4b94941 100644 --- a/Assets/Scripts/FloorLevel.cs +++ b/Assets/Scripts/FloorLevel.cs @@ -133,7 +133,7 @@ public class FloorLevel : MonoBehaviour if(i == (escalation-1) && j == (escalation-1) && i == j) { selection = Random.Range(0, cornerList.Length); - if(selection == 0 || selection == 15 || selection == 16) + if(selection == 0 || selection == 7 || selection == 8) { Instantiate(cornerList[selection], new Vector3(100*i+50, Random.Range(-5, 0), 100*j+50), Quaternion.identity); } else { @@ -148,7 +148,7 @@ public class FloorLevel : MonoBehaviour if(i == (escalation-1) && j == (escalation-1) && i == j) { selection = Random.Range(0, cornerList.Length); - if(selection == 0 || selection == 23 || selection == 24) + if(selection == 0 || selection == 7 || selection == 8) { Instantiate(cornerList[selection], new Vector3(100*i+50, Random.Range(-5, 0), 100*j+50), Quaternion.identity); } else { @@ -163,7 +163,7 @@ public class FloorLevel : MonoBehaviour if(i == (escalation-1) && j == (escalation-1) && i == j) { selection = Random.Range(0, cornerList.Length); - if(selection == 0 || selection == 23 || selection == 24) + if(selection == 0 || selection == 7 || selection == 8) { Instantiate(cornerList[selection], new Vector3(100*i+50, Random.Range(-5, 0), 100*j+50), Quaternion.identity); } else { @@ -201,7 +201,7 @@ public class FloorLevel : MonoBehaviour if(i == (escalation-1) && j == (escalation-1) && i == j) { selection = Random.Range(0, cornerList.Length); - if(selection == 0 || selection == 15 || selection == 16) + if(selection == 0 || selection == 7 || selection == 8) { Instantiate(cornerList[selection], new Vector3(-100*i-50, Random.Range(-5, 0), -100*j-50), Quaternion.identity); } else { @@ -216,7 +216,7 @@ public class FloorLevel : MonoBehaviour if(i == (escalation-1) && j == (escalation-1) && i == j) { selection = Random.Range(0, cornerList.Length); - if(selection == 0 || selection == 23 || selection == 24) + if(selection == 0 || selection == 7 || selection == 8) { Instantiate(cornerList[selection], new Vector3(-100*i-50, Random.Range(-5, 0), -100*j-50), Quaternion.identity); } else { @@ -231,7 +231,7 @@ public class FloorLevel : MonoBehaviour if(i == (escalation-1) && j == (escalation-1) && i == j) { selection = Random.Range(0, cornerList.Length); - if(selection == 0 || selection == 23 || selection == 24) + if(selection == 0 || selection == 7 || selection == 8) { Instantiate(cornerList[selection], new Vector3(-100*i-50, Random.Range(-5, 0), -100*j-50), Quaternion.identity); } else {