Assets/Scripts/Player/Movement/SensorOnOff.cs
/// <summary>
/// Callback to draw gizmos that are pickable and always drawn.
/// </summary>
Callback to draw gizmos that are pickable and always drawn.
Callback to draw gizmos that are pickable and always drawn .
void OnDrawGizmos()
    {
        Gizmos.color = GetState() ? new Color(1, 0, 0, .5f) : new Color(0, 1, 0, .5f);
        Gizmos.DrawCube(
            transform.position,
            transform.lossyScale
            );
        Gizmos.color = Color.white;
    }
void OnDrawGizmos ( ) { Gizmos . color = GetState ( ) ? new Color ( 1 , 0 , 0 , .5f ) : new Color ( 0 , 1 , 0 , .5f ) ; Gizmos . DrawCube ( transform . position , transform . lossyScale ) ; Gizmos . color = Color . white ; }
Callback to draw gizmos that are pickable and always drawn.
Callback to draw gizmos that are pickable and always drawn .