private void OnMouseEnter()
    {
        if (PlayerCheck() < playerDistance)
        {
            _selectionState = selectionState.selectedPlayer;
            _renderer.color = selectedPlColor;
        }
        else
        {
            _selectionState = selectionState.selected;
            _renderer.color = selectedColor;
        }

        _UI_Panel.DataReplacement(_renderer.sprite, _environmentDisplay.tileEnvironment.nameMaterial, _environmentDisplay.tileEnvironment.description, _environmentDisplay.strength);
        _UI_Panel.Fade(1);
    }
Example #2
0
    private void OnMouseEnter()
    {
        if (PlayerCheck() < playerDistance)
        {
            _selectionState = selectionState.selectedPlayer;
            _renderer.color = selectedColorPl;
        }
        else
        {
            _selectionState = selectionState.selected;
            _renderer.color = selectedColor;
        }

        _UI_Panel.DataReplacement(_renderer.sprite, _itemDisplay.item.nameItem, _itemDisplay.item.description, _itemDisplay.strength);
        _UI_Panel.Fade(1);
    }
Example #3
0
    private void OnMouseEnter()
    {
        if (_doorState == doorState.close)
        {
            if (PlayerCheck() < playerDistance)
            {
                _thisRenderer.color = selectedPlColor;
            }
            else
            {
                _thisRenderer.color = selectedColor;
            }
        }

        _UI_Panel.DataReplacement(_thisRenderer.sprite, nameDoor, description, 100);
        _UI_Panel.Fade(1);
    }
Example #4
0
    public void OnPointerEnter(PointerEventData eventData)
    {
        if (!_dragging)
        {
            _imgSelf.color = clrPointerEnter;
        }

        _itemDSelf = _inventory.GetItemDInSlot(_idSlot);
        if (_itemDSelf.item.id != 0)
        {
            _UI_Panel.DataReplacement(_itemDSelf.item.spriteInInventory, _itemDSelf.item.nameItem, _itemDSelf.item.description, _itemDSelf.strength);
            _UI_Panel.Fade(1);
        }
        else
        {
            _UI_Panel.Fade(0);
        }
    }