Assets/Watson/Scripts/Camera/WatsonCamera.cs
/// <summary>
/// Event Handler for setting Depth of Field event
/// </summary>
/// <param name="args">Arguments.</param>
Event Handler for setting Depth of Field event
Event Handler for setting Depth of Field event
protected virtual void OnCameraSetDepthOfField(System.Object[] args)
        {
            if (args != null && args.Length > 0 && args[0] is bool)
            {
                bool valueSet = (bool)args[0];
                if (m_DepthOfField != null)
                {
                    m_DepthOfField.enabled = valueSet;
                }
            }
        }
protected virtual void OnCameraSetDepthOfField ( System . Object [ ] args ) { if ( args != null && args . Length > 0 && args [ 0 ] is bool ) { bool valueSet = ( bool ) args [ 0 ] ; if ( m_DepthOfField != null ) { m_DepthOfField . enabled = valueSet ; } } }
Event Handler for setting Depth of Field event
Event Handler for setting Depth of Field event
args
System.Object[]
None