//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public void Awake() { if (InteractionSettings == null) { InteractionSettings = (GetComponent <HoverInteractionSettings>() ?? FindObjectOfType <HoverInteractionSettings>()); } if (InteractionSettings == null) { Debug.LogWarning("Could not find 'InteractionSettings'."); } }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public void Awake() { if (InteractionSettings == null) { InteractionSettings = (GetComponent <HoverInteractionSettings>() ?? HoverItemsManager.Instance.GetComponent <HoverInteractionSettings>()); } if (InteractionSettings == null) { Debug.LogWarning("Could not find 'InteractionSettings'.", this); } }