Ejemplo n.º 1
0
    public void RotateInput(bool right)
    {
        void DeleteShade()
        {
            if (selectedHex == null)
            {
                return;
            }
            var targetSub = hexCoordinate.TryGetHex(selectedHex.Point + deck.Target);

            targetSub?.OnContactedExit();
        }

        void AddShade()
        {
            if (selectedHex == null)
            {
                return;
            }
            var targetSub = hexCoordinate.TryGetHex(selectedHex.Point + deck.Target);

            targetSub?.OnContacted();
        }

        DeleteShade();
        deck.ChangeTarget(right);
        AddShade();
    }