Exemplo n.º 1
0
 void Start()
 {
     screenPixelsRect   = EasyWiFiUtilities.GetScreenRect(joystickImageBackground.rectTransform);
     defaultNubPosition = joystickImageForeground.transform.position;
     normalizeFactorX   = screenPixelsRect.width / 2;
     normalizeFactorY   = screenPixelsRect.height / 2;
 }
        void Start()
        {
            screenPixelsRect   = EasyWiFiUtilities.GetScreenRect(sliderImageBackground.rectTransform);
            defaultNubPosition = sliderImageForeground.transform.position;

            if (orientation == EasyWiFiConstants.SLIDER_TYPE.Horizonal)
            {
                normalizeFactor = screenPixelsRect.width / 2;
            }
            else
            {
                normalizeFactor = screenPixelsRect.height / 2;
            }
        }
Exemplo n.º 3
0
 void Start()
 {
     screenPixelsRect = EasyWiFiUtilities.GetScreenRect(currentImage.rectTransform);
 }
 void Start()
 {
     screenPixelsRect = EasyWiFiUtilities.GetScreenRect(dPadImage.rectTransform);
     normalizeFactorX = screenPixelsRect.width / 2;
     normalizeFactorY = screenPixelsRect.height / 2;
 }
 void Start()
 {
     screenPixelsRect = EasyWiFiUtilities.GetScreenRect(pinchZoomImage.rectTransform);
     normalizeFactorX = screenPixelsRect.width;
     normalizeFactorY = screenPixelsRect.height;
 }
 void Start()
 {
     screenPixelsRect = EasyWiFiUtilities.GetScreenRect(backgroundImage.rectTransform);
 }