Пример #1
0
    private void ControlUpdate()
    {
        ControlElement last = GetLastControl();

        if (ElementInControl == last && ElementInControl != null)
        {
            ElementInControl.OnControlUpdate();
        }
        else
        {
            ElementInControl?.OnLoseControl();
            last?.OnGainControl();

            ElementInControl = last;
        }
    }