|
@@ -27,7 +27,6 @@ public class PlayerController : MonoBehaviour
|
|
public GameObject StartStopButton;
|
|
public GameObject StartStopButton;
|
|
public LocationZones locationZones;
|
|
public LocationZones locationZones;
|
|
public Dropdown DropdownMode;
|
|
public Dropdown DropdownMode;
|
|
- public Toggle ToggleAllUsers; // отображение всех маркеров пользователей
|
|
|
|
public Toggle ToggleLine;
|
|
public Toggle ToggleLine;
|
|
public Toggle ToggleDisappearance;
|
|
public Toggle ToggleDisappearance;
|
|
|
|
|
|
@@ -82,12 +81,6 @@ public class PlayerController : MonoBehaviour
|
|
|
|
|
|
var broadcast_stop = UserInfo.transform.GetChild(1).GetChild(1).GetComponent<Button>();
|
|
var broadcast_stop = UserInfo.transform.GetChild(1).GetChild(1).GetComponent<Button>();
|
|
broadcast_stop.onClick.AddListener(() => BroadcastStop());
|
|
broadcast_stop.onClick.AddListener(() => BroadcastStop());
|
|
-
|
|
|
|
- ToggleAllUsers = GameObject.Find("ToggleAllUsers").GetComponent<Toggle>();
|
|
|
|
- ToggleAllUsers.onValueChanged.AddListener(delegate {
|
|
|
|
- foreach (var u in users.Values)
|
|
|
|
- u.toggle.isOn = ToggleAllUsers.isOn;
|
|
|
|
- });
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// Update is called once per frame
|
|
// Update is called once per frame
|
|
@@ -351,9 +344,12 @@ public class PlayerController : MonoBehaviour
|
|
{
|
|
{
|
|
case 0:
|
|
case 0:
|
|
DateTimePanel.SetActive(false);
|
|
DateTimePanel.SetActive(false);
|
|
- if(users != null)
|
|
|
|
- foreach(var u in users)
|
|
|
|
- u.Value.toggle_user.SetActive(u.Value.online);
|
|
|
|
|
|
+ if (users != null)
|
|
|
|
+ foreach (var u in users)
|
|
|
|
+ {
|
|
|
|
+ if(!u.Value.online) u.Value.toggle.isOn = false;
|
|
|
|
+ u.Value.toggle_user.SetActive(u.Value.online);
|
|
|
|
+ }
|
|
break;
|
|
break;
|
|
case 1:
|
|
case 1:
|
|
DateTimePanel.SetActive(true);
|
|
DateTimePanel.SetActive(true);
|