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; }
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(); } }