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; }
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; }
public override void Initialize(Joy joy) { base.Initialize(joy); m_uiRadius = ui.width / 2; }