//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public void Awake() { if ( InteractionSettings == null ) { InteractionSettings = (GetComponent<HoverInteractionSettings>() ?? FindObjectOfType<HoverInteractionSettings>()); } if ( InteractionSettings == null ) { Debug.LogWarning("Could not find 'InteractionSettings'."); } }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public void Awake() { if ( CursorDataProvider == null ) { CursorDataProvider = FindObjectOfType<HoverCursorDataProvider>(); } if ( ProximityProvider == null ) { ProximityProvider = GetComponent<HoverRendererController>(); } if ( InteractionSettings == null ) { InteractionSettings = (GetComponent<HoverInteractionSettings>() ?? FindObjectOfType<HoverInteractionSettings>()); } if ( CursorDataProvider == null ) { Debug.LogWarning("Could not find 'CursorDataProvider'."); } if ( ProximityProvider == null ) { Debug.LogWarning("Could not find 'ProximityProvider'."); } if ( InteractionSettings == null ) { Debug.LogWarning("Could not find 'InteractionSettings'."); } }