예제 #1
0
    public bool OnGrab(WandController controller)
    {
        foreach (var vis in FindObjectOfType <ImAxesRecognizer>().WalkLinkedVisualisations(this))
        {
            controller.PropergateOnGrab(vis.gameObject);
        }

        return(false);
    }
예제 #2
0
 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);
 }