Example #1
0
 // Use this for initialization
 void Awake()
 {
     buttonKey           = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_BUTTON, controlName);
     button              = (ButtonControllerType)EasyWiFiController.controllerDataDictionary[buttonKey];
     currentImage        = gameObject.GetComponent <Image>();
     buttonRegularSprite = currentImage.sprite;
 }
Example #2
0
        // Use this for initialization
        void Awake()
        {
            buttonKey = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_BUTTON, controlName);
            button    = (ButtonControllerType)EasyWiFiController.controllerDataDictionary[buttonKey];

            GetComponent <Button>().onClick.AddListener(OnButtonPressed);
        }
 protected override void Awake()
 {
     base.Awake();
     if (Application.isPlaying)
     {
         buttonKey = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_BUTTON, controlName);
         button    = (ButtonControllerType)EasyWiFiController.controllerDataDictionary[buttonKey];
     }
 }
 // Use this for initialization
 void Awake()
 {
     gyroKey = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_GYRO, controlName);
     gyro    = (GyroControllerType)EasyWiFiController.controllerDataDictionary[gyroKey];
     if (SystemInfo.supportsGyroscope)
     {
         Input.gyro.enabled = true;
     }
 }
Example #5
0
        void Awake()
        {
            buttonKey           = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_BUTTON, controlName);
            button              = (ButtonControllerType)EasyWiFiController.controllerDataDictionary[buttonKey];
            currentImage        = gameObject.GetComponent <Image>();
            buttonRegularSprite = currentImage.sprite;

            lowPassFilterFactor      = accelerometerUpdateInterval / lowPassKernelWidthInSeconds;
            shakeDetectionThreshold *= shakeDetectionThreshold;
            lowPassValue             = Input.acceleration;
        }
 // Use this for initialization
 void Awake()
 {
     dPadKey   = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_DPAD, controlName);
     dPad      = (DpadControllerType)EasyWiFiController.controllerDataDictionary[dPadKey];
     dPadImage = gameObject.GetComponent <Image>();
 }
 // Use this for initialization
 void Awake()
 {
     sliderKey             = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_SLIDER, controlName);
     slider                = (SliderControllerType)EasyWiFiController.controllerDataDictionary[sliderKey];
     sliderImageBackground = gameObject.GetComponent <Image>();
 }
Example #8
0
 void Awake()
 {
     gyroKey = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_GYRO, controlName);
     gyro    = (GyroControllerType)EasyWiFiController.controllerDataDictionary[gyroKey];
 }
 // Use this for initialization
 void Awake()
 {
     decimalKey  = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_DECIMAL, controlName);
     decimalData = (DecimalBackchannelType)EasyWiFiController.controllerDataDictionary[decimalKey];
 }
 // Use this for initialization
 void Awake()
 {
     floatKey  = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_FLOAT, controlName);
     floatData = (FloatBackchannelType)EasyWiFiController.controllerDataDictionary[floatKey];
 }
 // Use this for initialization
 void Awake()
 {
     pinchZoomKey   = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_PINCHZOOMTOUCHPAD, controlName);
     pinchZoom      = (PinchZoomTouchpadControllerType)EasyWiFiController.controllerDataDictionary[pinchZoomKey];
     pinchZoomImage = gameObject.GetComponent <Image>();
 }
 // Use this for initialization
 void Awake()
 {
     touchpadKey   = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_TOUCHPAD, controlName);
     touchpad      = (TouchpadControllerType)EasyWiFiController.controllerDataDictionary[touchpadKey];
     touchpadImage = gameObject.GetComponent <Image>();
 }
 void Awake()
 {
     backchannelKey  = EasyWiFiController.registerControl(EasyWiFiConstants.BACKCHANNELTYPE_BOOL, controlName);
     boolBackchannel = (BoolBackchannelType)EasyWiFiController.controllerDataDictionary[backchannelKey];
 }
 void Awake()
 {
     backchannelKey     = EasyWiFiController.registerControl(EasyWiFiConstants.BACKCHANNELTYPE_DECIMAL, controlName);
     decimalBackchannel = (DecimalBackchannelType)EasyWiFiController.controllerDataDictionary[backchannelKey];
 }
 void Awake()
 {
     backchannelKey    = EasyWiFiController.registerControl(EasyWiFiConstants.BACKCHANNELTYPE_DOUBLE, controlName);
     doubleBackchannel = (DoubleBackchannelType)EasyWiFiController.controllerDataDictionary[backchannelKey];
 }
 // Use this for initialization
 void Awake()
 {
     intKey  = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_INT, controlName);
     intData = (IntBackchannelType)EasyWiFiController.controllerDataDictionary[intKey];
 }
 // Use this for initialization
 void Awake()
 {
     accelerometerKey = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_ACCELEROMETER, controlName);
     accelerometer    = (AccelerometerControllerType)EasyWiFiController.controllerDataDictionary[accelerometerKey];
 }
 // Use this for initialization
 void Awake()
 {
     boolKey  = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_BOOL, controlName);
     boolData = (BoolBackchannelType)EasyWiFiController.controllerDataDictionary[boolKey];
 }
Example #19
0
 // Use this for initialization
 void Awake()
 {
     stringKey  = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_STRING, controlName);
     stringData = (StringBackchannelType)EasyWiFiController.controllerDataDictionary[stringKey];
 }
 // Use this for initialization
 void Awake()
 {
     doubleKey  = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_DOUBLE, controlName);
     doubleData = (DoubleBackchannelType)EasyWiFiController.controllerDataDictionary[doubleKey];
 }
 void Awake()
 {
     backchannelKey    = EasyWiFiController.registerControl(EasyWiFiConstants.BACKCHANNELTYPE_STRING, controlName);
     stringBackchannel = (StringBackchannelType)EasyWiFiController.controllerDataDictionary[backchannelKey];
 }
Example #22
0
 void Awake()
 {
     backchannelKey   = EasyWiFiController.registerControl(EasyWiFiConstants.BACKCHANNELTYPE_FLOAT, controlName);
     floatBackchannel = (FloatBackchannelType)EasyWiFiController.controllerDataDictionary[backchannelKey];
 }
Example #23
0
 // Use this for initialization
 void Awake()
 {
     joystickKey             = EasyWiFiController.registerControl(EasyWiFiConstants.CONTROLLERTYPE_JOYSTICK, controlName);
     joystick                = (JoystickControllerType)EasyWiFiController.controllerDataDictionary[joystickKey];
     joystickImageBackground = gameObject.GetComponent <Image>();
 }