public override void ConfigureControl()
        {
            var worldOffset = (Vector3)offset * TouchManager.UnitToWorld;

            resetPosition      = TouchManager.ViewToWorldPoint(TouchUtility.AnchorToViewPoint(anchor)) + worldOffset;
            transform.position = resetPosition;

            ScaleSprite(ringGameObject, ringRenderer, ringSize);
            ScaleSprite(knobGameObject, knobRenderer, knobSize);

            worldActiveArea = TouchManager.ViewToWorldRect(activeArea);
            worldRingSize   = ringSize * TouchManager.HalfUnitToWorld;
            worldKnobSize   = knobSize * TouchManager.HalfUnitToWorld;
            worldKnobRange  = knobRange * TouchManager.HalfUnitToWorld;
        }
Esempio n. 2
0
 public override void ConfigureControl()
 {
     worldActiveArea = TouchManager.ViewToWorldRect(activeArea);
 }