|
@@ -18,6 +18,7 @@ public class ModeController : MonoBehaviour
|
|
|
public GameObject Markers;
|
|
|
public GameObject Beacons;
|
|
|
public GameObject Walls;
|
|
|
+ public GameObject WallCursor;
|
|
|
|
|
|
Transform maps;
|
|
|
|
|
@@ -85,14 +86,32 @@ public class ModeController : MonoBehaviour
|
|
|
Beacons.transform.GetChild(i).GetComponent<BeaconController>().mode = BeaconController.Mode.Player;
|
|
|
Beacons.transform.GetChild(i).GetComponent<LabelObjectScript>().enabled = true;
|
|
|
}
|
|
|
-
|
|
|
- //PlayerController.markers = new List<Marker>();
|
|
|
- //client.SendGetUsers((uint)PlayerController.active_company + 1);
|
|
|
|
|
|
- //PlayerController.Beacons = new List<Beacon>();
|
|
|
- //client.BeaconsRequest((uint)PlayerController.locations[DropdownLocation.value].id);
|
|
|
+ WallCursor.SetActive(false);
|
|
|
+
|
|
|
+ GameObject old_button = null;
|
|
|
+ switch (WallCreate.mode)
|
|
|
+ {
|
|
|
+ case WallCreate.Mode.Cursor:
|
|
|
+ old_button =EditorTools.transform.GetChild(0).gameObject;
|
|
|
+ break;
|
|
|
+ case WallCreate.Mode.Room:
|
|
|
+ old_button = EditorTools.transform.GetChild(1).gameObject;
|
|
|
+ break;
|
|
|
+ case WallCreate.Mode.Wall:
|
|
|
+ old_button = EditorTools.transform.GetChild(2).gameObject;
|
|
|
+ break;
|
|
|
}
|
|
|
|
|
|
+ if (old_button != null) old_button.GetComponent<Image>().color = Color.white;
|
|
|
+
|
|
|
+ //PlayerController.markers = new List<Marker>();
|
|
|
+ //client.SendGetUsers((uint)PlayerController.active_company + 1);
|
|
|
+
|
|
|
+ //PlayerController.Beacons = new List<Beacon>();
|
|
|
+ //client.BeaconsRequest((uint)PlayerController.locations[DropdownLocation.value].id);
|
|
|
+ }
|
|
|
+
|
|
|
void EditorMode()
|
|
|
{
|
|
|
Player.SetActive(false);
|
|
@@ -117,7 +136,10 @@ public class ModeController : MonoBehaviour
|
|
|
Beacons.transform.GetChild(i).GetComponent<BeaconController>().mode = BeaconController.Mode.Editor;
|
|
|
Beacons.transform.GetChild(i).GetComponent<LabelObjectScript>().enabled = false;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ var color = new Color();
|
|
|
+ ColorUtility.TryParseHtmlString("#C8C8C8", out color);
|
|
|
+ EditorTools.transform.GetChild(0).gameObject.GetComponent<Image>().color = color;
|
|
|
|
|
|
//foreach (var m in PlayerController.markers)
|
|
|
//{
|