From 88f3697b16c63b5a991394093c4e27e7f4e10217 Mon Sep 17 00:00:00 2001 From: MB Date: Sat, 26 Jan 2019 11:37:07 +1100 Subject: [PATCH] Tiny error change --- Assets/Scenes/MainScene.unity | 26 +++++++++++++------------- Assets/Scipts/Map.cs | 3 +-- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/Assets/Scenes/MainScene.unity b/Assets/Scenes/MainScene.unity index 94a08c4..5136a80 100644 --- a/Assets/Scenes/MainScene.unity +++ b/Assets/Scenes/MainScene.unity @@ -631,7 +631,7 @@ Camera: field of view: 60 orthographic: 1 orthographic size: 5 - m_Depth: -1 + m_Depth: 0 m_CullingMask: serializedVersion: 2 m_Bits: 4294967295 @@ -671,7 +671,7 @@ GameObject: - component: {fileID: 700181635} m_Layer: 0 m_Name: BotCam - m_TagString: MainCamera + m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -692,7 +692,7 @@ Camera: m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_BackGroundColor: {r: 0.9245283, g: 0.27710664, b: 0.030526895, a: 0} m_projectionMatrixMode: 1 m_SensorSize: {x: 36, y: 24} m_LensShift: {x: 0, y: 0} @@ -706,7 +706,7 @@ Camera: near clip plane: 0.3 far clip plane: 1000 field of view: 60 - orthographic: 0 + orthographic: 1 orthographic size: 5 m_Depth: -1 m_CullingMask: @@ -943,7 +943,7 @@ GameObject: - component: {fileID: 1195683499} m_Layer: 0 m_Name: RightCam - m_TagString: MainCamera + m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -964,7 +964,7 @@ Camera: m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_BackGroundColor: {r: 0.9245283, g: 0.27710664, b: 0.030526895, a: 0} m_projectionMatrixMode: 1 m_SensorSize: {x: 36, y: 24} m_LensShift: {x: 0, y: 0} @@ -978,7 +978,7 @@ Camera: near clip plane: 0.3 far clip plane: 1000 field of view: 60 - orthographic: 0 + orthographic: 1 orthographic size: 5 m_Depth: -1 m_CullingMask: @@ -1158,7 +1158,7 @@ GameObject: - component: {fileID: 1779215477} m_Layer: 0 m_Name: LeftCam - m_TagString: MainCamera + m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -1179,7 +1179,7 @@ Camera: m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_BackGroundColor: {r: 0.9245283, g: 0.27710664, b: 0.030526895, a: 0} m_projectionMatrixMode: 1 m_SensorSize: {x: 36, y: 24} m_LensShift: {x: 0, y: 0} @@ -1193,7 +1193,7 @@ Camera: near clip plane: 0.3 far clip plane: 1000 field of view: 60 - orthographic: 0 + orthographic: 1 orthographic size: 5 m_Depth: -1 m_CullingMask: @@ -1357,7 +1357,7 @@ GameObject: - component: {fileID: 2005481973} m_Layer: 0 m_Name: TopCam - m_TagString: MainCamera + m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 @@ -1378,7 +1378,7 @@ Camera: m_Enabled: 1 serializedVersion: 2 m_ClearFlags: 1 - m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_BackGroundColor: {r: 0.9245283, g: 0.27710664, b: 0.030526895, a: 0} m_projectionMatrixMode: 1 m_SensorSize: {x: 36, y: 24} m_LensShift: {x: 0, y: 0} @@ -1392,7 +1392,7 @@ Camera: near clip plane: 0.3 far clip plane: 1000 field of view: 60 - orthographic: 0 + orthographic: 1 orthographic size: 5 m_Depth: -1 m_CullingMask: diff --git a/Assets/Scipts/Map.cs b/Assets/Scipts/Map.cs index a4e444e..e1742b7 100644 --- a/Assets/Scipts/Map.cs +++ b/Assets/Scipts/Map.cs @@ -34,7 +34,7 @@ public class Map : MonoBehaviour { void Teleport() { - Transform PT = localPlayer.Transform; + Transform PT = LocalPlayer.transform; if (PT.position.x > maxX) { PT.position = new Vector3(minX, PT.position.y, PT.position.z); @@ -73,6 +73,5 @@ public class Map : MonoBehaviour { void HandleCamSizing() { - } }