////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public void Awake()
        {
            if (InteractionSettings == null)
            {
                InteractionSettings = (GetComponent <HoverInteractionSettings>() ??
                                       FindObjectOfType <HoverInteractionSettings>());
            }

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

            if (InteractionSettings == null)
            {
                Debug.LogWarning("Could not find 'InteractionSettings'.", this);
            }
        }