public void TriggerExit(ProximityWatcher proximityWatcher, Collider collider) { if (collider.isTrigger) { isTouching = false; } }
public void TriggerEnter(ProximityWatcher proximityWatcher, Collider collider) { if (collider.isTrigger) { isTouching = true; } }
private void TryAddBrush(ProximityWatcher arg0, Collider arg1) { var brush = arg1.GetComponent <TexturePaintBrush>(); if (brush && !_brushes.Contains(brush)) { _brushes.Add(brush); } }
private void TryRemoveBrush(ProximityWatcher arg0, Collider arg1) { var brush = arg1.GetComponent <TexturePaintBrush>(); if (brush) { _brushes.Remove(brush); } }
private void OnEnter(ProximityWatcher sender, Collider args) { _inputUpdater.SendHapticFeedback(_view.HandType); }