Виктор Шейко před 4 roky
rodič
revize
b6d4bc922d

+ 1 - 1
Assets/Materials/Temp.mat

@@ -84,7 +84,7 @@ Material:
     - _UVSec: 0
     - _ZWrite: 0
     m_Colors:
-    - _Color: {r: 1, g: 0, b: 0, a: 0.64705884}
+    - _Color: {r: 1, g: 0, b: 0, a: 0.49803922}
     - _EmissionColor: {r: 0, g: 0, b: 0, a: 0}
     - _EmissionColorUI: {r: 1, g: 1, b: 1, a: 1}
     - _OutlineColor: {r: 0.735849, g: 0.017354928, b: 0.017354928, a: 0.6039216}

+ 1 - 1
Assets/Resources/GameObjects/Zone.prefab

@@ -127,7 +127,7 @@ GameObject:
   m_Icon: {fileID: 0}
   m_NavMeshLayer: 0
   m_StaticEditorFlags: 0
-  m_IsActive: 1
+  m_IsActive: 0
 --- !u!4 &8410972727744012244
 Transform:
   m_ObjectHideFlags: 0

+ 1 - 0
Assets/Scripts/Controllers/EditorController.cs

@@ -113,6 +113,7 @@ public class EditorController : MonoBehaviour
             var location = player.locations[player.locations_index[player.active_location]];
             Name.text = location.name;
 
+            player.active_location = DropdownLocation.value;
             EditLocation = location;
         }
 

+ 2 - 2
Assets/Scripts/Controllers/ZoneController.cs

@@ -25,11 +25,11 @@ public class ZoneController : MonoBehaviour
 
     void OnMouseOver()
     {
-        if(ZoneColor) transform.GetComponent<Renderer>().material.color = new Color(0, 1, 0, 0.75f);
+        if(ZoneColor) transform.GetComponent<Renderer>().material.color = new Color(0, 1, 0, 0.25f);
     }
 
     void OnMouseExit()
     {
-        if (ZoneColor) transform.GetComponent<Renderer>().material.color = new Color(1, 0, 0, 0.75f);
+        if (ZoneColor) transform.GetComponent<Renderer>().material.color = new Color(1, 0, 0, 0.25f);
     }
 }