Pārlūkot izejas kodu

Revert "wall coordinates"

This reverts commit f81b34c24114827240197e645d148f40a17719c9.
Виктор Шейко 4 gadi atpakaļ
vecāks
revīzija
88be51d22d
3 mainītis faili ar 5 papildinājumiem un 14 dzēšanām
  1. 0 5
      .gitignore
  2. 1 1
      Assets/Scenes/Player.unity
  3. 4 8
      Assets/Scripts/Models/Wall.cs

+ 0 - 5
.gitignore

@@ -72,8 +72,3 @@ crashlytics-build.properties
 # Temporary auto-generated Android Assets
 /[Aa]ssets/[Ss]treamingAssets/aa.meta
 /[Aa]ssets/[Ss]treamingAssets/aa/*
-/PositionViewer_Data
-/MonoBleedingEdge
-/UnityPlayer.dll
-/UnityCrashHandler64.exe
-/PositionViewer.exe

+ 1 - 1
Assets/Scenes/Player.unity

@@ -38,7 +38,7 @@ RenderSettings:
   m_ReflectionIntensity: 1
   m_CustomReflection: {fileID: 0}
   m_Sun: {fileID: 0}
-  m_IndirectSpecularColor: {r: 0.4465782, g: 0.49641252, b: 0.5748167, a: 1}
+  m_IndirectSpecularColor: {r: 0.44657844, g: 0.49641222, b: 0.57481694, a: 1}
   m_UseRadianceAmbientProbe: 0
 --- !u!157 &3
 LightmapSettings:

+ 4 - 8
Assets/Scripts/Models/Wall.cs

@@ -97,14 +97,10 @@ public class Wall
         //var wall = WallCreate.AddWall(this,
         //               new Vector3(w.start_width, WallCreate.WallHeight / 2, w.start_height),
         //               new Vector3(Mathf.Abs(w.end_width), WallCreate.WallHeight, Mathf.Abs(w.end_height)));
-        var x1 = start_width - (end_width / 2);
-        coord.Add(x1); //x1
-        var x2 = start_height - (end_height / 2);
-        coord.Add(x2); //z1
-        var z1 = start_width + (end_width / 2);
-        coord.Add(z1); //x2
-        var z2 = start_height + (end_height  / 2);
-        coord.Add(z2); //z2
+        coord.Add(end_width - (start_width/2));
+        coord.Add(end_height - (start_height / 2));
+        coord.Add(end_width + (start_width/2));
+        coord.Add(end_height + (start_height / 2));
 
         return coord;
     }