public void SelectObjectId(string tag) { IsObjectDetected = true; if (tag == "Cup") { currentType = PlasticTypes.Cup; } else if (tag == "Bottle") { currentType = PlasticTypes.Bottle; } }
public void SelectObjectId() { var selectedItem = FindObjectsOfType <AugmentedImageVisualizer>(); if (selectedItem == null) { return; } var active = selectedItem.FirstOrDefault(x => x.isActiveAndEnabled); if (active == null) { return; } currentType = active.type; }
public void SelectObjectId(PlasticTypes type) { IsObjectDetected = true; currentType = type; }