gg.easy.airship 0.1.2124 → 0.1.2126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Runtime/Code/DeveloperTooling/EasyTransformAnchor.cs +14 -12
- package/Runtime/Code/Luau/LuauPlugin.cs +3 -5
- package/Runtime/Code/UserInput/KeyboardInput.cs +3 -1
- package/Runtime/Plugins/Android/libLuauPlugin.so +0 -0
- package/Runtime/Plugins/Linux/libLuauPlugin.so +0 -0
- package/Runtime/Plugins/Mac/LuauPlugin.bundle/Contents/Info.plist +1 -1
- package/Runtime/Plugins/Mac/LuauPlugin.bundle/Contents/MacOS/LuauPlugin +0 -0
- package/Runtime/Plugins/Windows/x64/LuauPlugin.dll +0 -0
- package/Runtime/Plugins/Windows/x64/LuauPlugin.pdb +0 -0
- package/Runtime/Plugins/iOS/LuauPluginIos.a +0 -0
- package/package.json +1 -1
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
1
|
using UnityEngine;
|
|
4
2
|
|
|
5
|
-
public class EasyTransformAnchor : MonoBehaviour
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
3
|
+
public class EasyTransformAnchor : MonoBehaviour {
|
|
4
|
+
public Transform anchor;
|
|
5
|
+
public bool matchPosition = true;
|
|
6
|
+
public bool matchRotation = true;
|
|
7
|
+
public bool matchScale = false;
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
void Update()
|
|
9
|
+
void LateUpdate()
|
|
15
10
|
{
|
|
16
|
-
|
|
11
|
+
if(matchPosition)
|
|
12
|
+
this.transform.position = anchor.position;
|
|
13
|
+
|
|
14
|
+
if(matchRotation)
|
|
15
|
+
this.transform.rotation = anchor.rotation;
|
|
16
|
+
|
|
17
|
+
if(matchScale)
|
|
18
|
+
this.transform.localScale = anchor.localScale;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -241,12 +241,10 @@ public static class LuauPlugin {
|
|
|
241
241
|
#else
|
|
242
242
|
[DllImport("LuauPlugin", CallingConvention = CallingConvention.Cdecl)]
|
|
243
243
|
#endif
|
|
244
|
-
private static extern
|
|
245
|
-
public static
|
|
244
|
+
private static extern void Reset(LuauContext context);
|
|
245
|
+
public static void LuauReset(LuauContext context) {
|
|
246
246
|
ThreadSafetyCheck();
|
|
247
|
-
|
|
248
|
-
bool returnValue = Reset(context);
|
|
249
|
-
return returnValue;
|
|
247
|
+
Reset(context);
|
|
250
248
|
}
|
|
251
249
|
|
|
252
250
|
#if UNITY_IPHONE
|
|
@@ -6,11 +6,13 @@ public class KeyboardInput : IDisposable {
|
|
|
6
6
|
public event Action<Key> KeyDown;
|
|
7
7
|
public event Action<Key> KeyUp;
|
|
8
8
|
|
|
9
|
-
private
|
|
9
|
+
private InputActionMap _inputMap = new InputActionMap("keyboard");
|
|
10
10
|
|
|
11
11
|
public KeyboardInput() {
|
|
12
12
|
// Capture all keys and bind them to the input action map:
|
|
13
13
|
foreach (var keyControl in Keyboard.current.allKeys) {
|
|
14
|
+
if (keyControl == null) continue;
|
|
15
|
+
|
|
14
16
|
var action = _inputMap.AddAction(keyControl.name);
|
|
15
17
|
action.AddBinding($"<Keyboard>/{keyControl.name}");
|
|
16
18
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|