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

            if (InteractionSettings == null)
            {
                Debug.LogWarning("Could not find 'InteractionSettings'.");
            }
        }
Exemplo n.º 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);
            }
        }