gg.easy.airship 0.1.2124 → 0.1.2125

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.
@@ -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
- // Start is called before the first frame update
8
- void Start()
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
- // Update is called once per frame
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 bool Reset(LuauContext context);
245
- public static bool LuauReset(LuauContext context) {
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 readonly InputActionMap _inputMap = new InputActionMap("keyboard");
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
  }
@@ -3,7 +3,7 @@
3
3
  <plist version="1.0">
4
4
  <dict>
5
5
  <key>BuildMachineOSBuild</key>
6
- <string>23H420</string>
6
+ <string>23H527</string>
7
7
  <key>CFBundleDevelopmentRegion</key>
8
8
  <string>en</string>
9
9
  <key>CFBundleExecutable</key>
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gg.easy.airship",
3
- "version": "0.1.2124",
3
+ "version": "0.1.2125",
4
4
  "displayName": "Airship",
5
5
  "unity": "2021.3",
6
6
  "unityRelease": "12f1",