Exemplo n.º 1
0
 public void OnFocusEnter()
 {
     if (InteractiveProgrammingManager.Instance.CurrentState == InteractiveProgrammingManager.ProgrammingManagerState.pick_from_feeder_learn &&
         FakeFeederObjectsPositions.CheckIfObjectIsInFeeder(type, ROSUnityCoordSystemTransformer.ConvertVector(position)))
     {
         wireframeMat.SetColor("_WireColor", blue);
         PickFromFeederIP.Instance.StaringAtObject(true);
     }
     focus_stay = true;
 }
Exemplo n.º 2
0
    public void OnInputClicked(InputClickedEventData eventData)
    {
        if (InteractiveProgrammingManager.Instance.CurrentState == InteractiveProgrammingManager.ProgrammingManagerState.pick_from_feeder_learn &&
            FakeFeederObjectsPositions.CheckIfObjectIsInFeeder(GetComponent <DetectedObject>().type, ROSUnityCoordSystemTransformer.ConvertVector(GetComponent <DetectedObject>().position)))
        {
            PickFromFeederIP.Instance.MarkClickedArea(GetComponent <DetectedObject>());

            UISoundManager.Instance.PlaySnap();
        }
    }