public bool OnGrab(WandController controller) { foreach (var vis in FindObjectOfType <ImAxesRecognizer>().WalkLinkedVisualisations(this)) { controller.PropergateOnGrab(vis.gameObject); } return(false); }
public bool OnGrab(WandController controller) { foreach (var item in XAxes) { controller.PropergateOnGrab(item.gameObject); } foreach (var item in YAxes) { controller.PropergateOnGrab(item.gameObject); } foreach (var item in ZAxes) { controller.PropergateOnGrab(item.gameObject); } foreach (var item in ghostAxes) { item.Value.ForEach(x => { if (x != null) { controller.PropergateOnGrab(x.gameObject); } }); } return(false); }