File tree 4 files changed +20
-9
lines changed 4 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Changelog
4
4
5
+ ## v0.2.2
6
+
7
+ ### Date: 11/21/2019
8
+
9
+ ### Changes
10
+ - Bug Fixes
11
+ - Fixed UnityEvents on ` RadialController ` being null if instanced at runtime.
12
+ - Fixed ` RadialControllerWindowsBridge.StartServerProcess ` not being invoked if the ` RadialController ` component is instanced at runtime.
13
+
5
14
## v0.2.1
6
15
7
16
### Date: 11/20/2019
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ public class RadialController : MonoBehaviour {
11
11
public float rotationResolutionInDegrees = 10.0f ;
12
12
public bool useAutoHapticFeedback = true ;
13
13
14
- public UnityEvent onButtonClicked ;
15
- public UnityEvent onButtonPressed ;
16
- public UnityEvent onButtonReleased ;
17
- public UnityEvent onButtonHolding ;
18
- public FloatEvent onRotationChanged ;
19
- public UnityEvent onControlAcquired ;
20
- public UnityEvent onControlLost ;
14
+ public UnityEvent onButtonClicked = new UnityEvent ( ) ;
15
+ public UnityEvent onButtonPressed = new UnityEvent ( ) ;
16
+ public UnityEvent onButtonReleased = new UnityEvent ( ) ;
17
+ public UnityEvent onButtonHolding = new UnityEvent ( ) ;
18
+ public FloatEvent onRotationChanged = new FloatEvent ( ) ;
19
+ public UnityEvent onControlAcquired = new UnityEvent ( ) ;
20
+ public UnityEvent onControlLost = new UnityEvent ( ) ;
21
21
22
22
private float _prevRotationResolutionInDegrees ;
23
23
private bool _prevUseAutoHapticFeedback ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public class RadialControllerWindowsBridge : IRadialControllerPlatformBridge
46
46
47
47
public string Name { get { return "Radial Controller Windows Bridge" ; } }
48
48
49
- public string Version { get { return "0.2.1 " ; } }
49
+ public string Version { get { return "0.2.2 " ; } }
50
50
51
51
public event Action onBridgeReady ;
52
52
public event Action onButtonClicked ;
@@ -64,6 +64,8 @@ public RadialControllerWindowsBridge(RadialController radialController) {
64
64
_localUdpClient = new LocalUdpClient ( "RadialControllerUnityReceiver" , Port ) ;
65
65
_localUdpClient . ignoreDataFromClient = true ;
66
66
_localUdpClient . onDataReceived += OnDataReceived ;
67
+
68
+ StartServerProcess ( ) ;
67
69
}
68
70
69
71
private void StartServerProcess ( ) {
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ PlayerSettings:
120
120
16:10 : 1
121
121
16:9 : 1
122
122
Others : 1
123
- bundleVersion : 0.2.1
123
+ bundleVersion : 0.2.2
124
124
preloadedAssets : []
125
125
metroInputSource : 0
126
126
wsaTransparentSwapchain : 0
You can’t perform that action at this time.
0 commit comments