Beispiel #1
0
 private void OnSceneGUI()
 {
     if (_groundedPropFoldout)
     {
         DrawCapsule.DrawWireCapsule(_controller.SphereCastPos, _controller.transform.rotation,
                                     _sphereCastRadius.floatValue,
                                     _sphereCastRadius.floatValue * 2, Color.red);
     }
 }
Beispiel #2
0
 private void OnSceneDrawAlways(SceneView view)
 {
     DrawCapsule.DrawWireCapsule(_controller.transform.position + _controller.Center,
                                 _controller.transform.rotation, _controller.Radius, _controller.Height,
                                 Color.blue);
 }