public void OnPointerClick(PointerEventData eventData) { Viewer360.StereoToggle toggle; if (Toggle.name == "ToggleTopBottom") { toggle = Viewer360.StereoToggle.TopBottom; } else if (Toggle.name == "ToggleLeftRight") { toggle = Viewer360.StereoToggle.LeftRight; } else { toggle = Viewer360.StereoToggle.Mpo; } Viewer360.OnToggleChange(toggle); }
public void OnPointerClick(PointerEventData eventData) { bool upDown = (Toggle.name == "ToggleUpDown"); Viewer360.OnToggleChange(upDown); }