Example #1
0
 public void SelectObjectId(string tag)
 {
     IsObjectDetected = true;
     if (tag == "Cup")
     {
         currentType = PlasticTypes.Cup;
     }
     else if (tag == "Bottle")
     {
         currentType = PlasticTypes.Bottle;
     }
 }
Example #2
0
    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;
    }
Example #3
0
 public void SelectObjectId(PlasticTypes type)
 {
     IsObjectDetected = true;
     currentType      = type;
 }