Пример #1
0
        public override void Initialize(Joy joy)
        {
            base.Initialize(joy);

            m_uiRadius = ui.width / 2;

            m_sliderRadius = slider.width / 2;

            m_sliderInitPoint.x = m_uiRadius - m_sliderRadius;
            m_sliderInitPoint.y = m_uiRadius - m_sliderRadius;

            m_startMove = false;
            m_stopMove  = false;
        }
Пример #2
0
        public virtual void Initialize(Joy joy)
        {
            m_joy = joy;

            m_joy.touchHandler -= TouchHandler;
            m_joy.touchHandler += TouchHandler;

            m_joy.updateHandler -= OnUpdate;
            m_joy.updateHandler += OnUpdate;

            m_joy.keyDownHandler -= OnKeyDown;
            m_joy.keyDownHandler += OnKeyDown;

            m_joy.keyUpHandler -= OnKeyUp;
            m_joy.keyUpHandler += OnKeyUp;
        }
Пример #3
0
        public override void Initialize(Joy joy)
        {
            base.Initialize(joy);

            m_uiRadius = ui.width / 2;
        }