diff --git a/EditorOnly/ItemLockDatabase.cs b/EditorOnly/ItemLockDatabase.cs index 6e40e92..a878af1 100644 --- a/EditorOnly/ItemLockDatabase.cs +++ b/EditorOnly/ItemLockDatabase.cs @@ -8,21 +8,25 @@ public class ItemLockDatabase : MonoBehaviour { [SerializeField] private String[] usernames; [Header("必ずプレハブをUnpackしてからお使いください")] + [Header("Please UNPACK this prefab before using.")] + [Header(" ")] - [Header("Mode[0]アイテムが消える、[1]アイテムが触れなくなる")] - [Header("予め[0]オブジェクト[1]コライダーを無効にするとよりセキュアになります")] - [Header("全ての操作がJoin時に終わるため")] - [Header("スイッチでオブジェクト(コライダー)を有効にするとロックが解除されます")] - [Header("Wall Modeでは、動作が逆になります(壁などを一部の人だけがぬけるようにするなど)")] - [Header("導入したあと、下のスクリプトにデータが表示されます")] + + [Header("Modeに関する詳しい説明は、Githubおよび商品ページにあります。")] + + [Header("Specific Inforamtion is on the github and booth page")] + + [Header("Github: https://github.com/TamakiRuri/SimpleItemLock")] + + [Header("Booth: https://saphir.booth.pm/items/6375850")] + [Header(" ")] - [Header("Mode 0 will make the item disappear, 1 will make the item not touchable")] - [Header("Deactivating[0]objects[1]colliders before uploading is recommanded for better security")] - [Header("However, the item will be unlocked if a switch enables the object(collider) directly")] - [Header("In Wall Mode the function of the script become reversed.")] - [Header("(for creating walls that can only be go through by whitelisted users)")] + + [Header("導入したあと、下のスクリプトにデータが表示されます")] + [Header("If the data is correctly imported, The script below will show the imported data")] + [Header(" ")] [SerializeField] private ItemLockList[] targetObjects; diff --git a/ItemLockBasic.cs b/ItemLockBasic.cs index cd9d120..7d2cab6 100644 --- a/ItemLockBasic.cs +++ b/ItemLockBasic.cs @@ -13,47 +13,25 @@ public class ItemLockBasic : UdonSharpBehaviour [SerializeField] private GameObject targetObject; [SerializeField] private String[] usernames; - [Header("Mode[0]アイテムが消える、[1]アイテムが触れなくなる")] - [Header("[1]予めコライダーを無効にするとよりセキュアになります")] - [Header("[0]このスクリプトがオブジェクトにアタッチしたまま無効にしないでください")] - [Header("スイッチでオブジェクト(コライダー)を有効にするとロックが解除されます。")] + [Header("Modeに関する詳しい説明は、Githubおよび商品ページにあります。")] + [Header("Specific Inforamtion is on the github and booth page")] - [Header("Mode 0 will make the item disappear, 1 will make the item not touchable")] - [Header("[1]Deactivating colliders before uploading is recommanded for better security")] - [Header("[0]Don't deactivate the game object if this script is attacted to it.")] - [Header("The item will be unlocked if a switch enables the object(collider) directly")] + [Header("Github: https://github.com/TamakiRuri/SimpleItemLock")] - [Header(" ")] + [Header("Booth: https://saphir.booth.pm/items/6375850")] + [Header(" ")] [SerializeField] private int actionMode = 0; - [SerializeField] private bool allowInstanceOwner = false; - - [Header("Wall Modeでは、動作が逆になります(壁などを一部の人だけがぬけるようにするなど)")] - [Header("In Wall Mode the function of the script become reversed (for creating walls that can only be go through by whitelisted users).")] - [Header(" ")] - [SerializeField] private bool wallMode = false; - private bool shouldOn = false; - private Collider targetCollider; void Start() { if (targetObject == null) targetObject = gameObject; shouldOn = UserCheck(); - if (actionMode == 1) - { - targetCollider = targetObject.GetComponent(); - if (targetCollider == null) - { - Debug.LogError("Item Lock: This object is in Action Mode 1 but the Collider can't be detected"); - Debug.LogError("Item Lock: このオブジェクトの動作モードがAction Mode 1ですがコライダーを取得できません"); - return; - } - } // (shouldOn && !wallMode) || (!shouldOn && wallMode) // in non wall mode, output == shouldOn // in wall mode, output == !shouldOn @@ -88,7 +66,14 @@ private void ScriptAction(int mode, bool targetState) targetObject.SetActive(targetState); break; case 1: - targetObject.GetComponent().enabled = targetState; + Collider targetCollider = targetObject.GetComponent(); + if (targetCollider == null) + { + Debug.LogError("Item Lock: This object is in Action Mode 1 but the Collider can't be detected"); + Debug.LogError("Item Lock: このオブジェクトの動作モードがAction Mode 1ですがコライダーを取得できません"); + } + else + targetCollider.enabled = targetState; break; case 2: ColliderRecursive(targetState); @@ -192,7 +177,7 @@ private void ColliderRecursive(bool targetState) public void ImportUsernames(String[] importedUsernames) { usernames = importedUsernames; - Debug.Log("Username Imported"); + Debug.Log("Item Lock Basic: Username Imported"); } diff --git a/ItemLockCenter.cs b/ItemLockCenter.cs index 4195aab..c421bf3 100644 --- a/ItemLockCenter.cs +++ b/ItemLockCenter.cs @@ -11,25 +11,18 @@ public class ItemLockCenter : UdonSharpBehaviour [SerializeField] private GameObject[] targetObjects; - [Header("Mode[0]アイテムが消える、[1]アイテムが触れなくなる")] - [Header("予め[0]オブジェクト[1]コライダーを無効にするとよりセキュアになります")] - [Header("全ての操作がJoin時に終わるため")] - [Header("スイッチでオブジェクト(コライダー)を有効にするとロックが解除されます。")] + [Header("Modeに関する詳しい説明は、Githubおよび商品ページにあります。")] + [Header("Specific Inforamtion is on the github and booth page")] - [Header("Mode 0 will make the item disappear, 1 will make the item not touchable")] - [Header("Deactivating[0]objects[1]colliders before uploading is recommanded for better security")] - [Header("However, the item will be unlocked if a switch enables the object(collider) directly")] + [Header("Github: https://github.com/TamakiRuri/SimpleItemLock")] - [Header(" ")] + [Header("Booth: https://saphir.booth.pm/items/6375850")] + [Header(" ")] [SerializeField] private int actionMode = 0; [SerializeField] private bool allowInstanceOwner = false; - - [Header("Wall Modeでは、動作が逆になります(壁などを一部の人だけがぬけるようにするなど)")] - [Header("In Wall Mode the function of the script become reversed (for creating walls that can only be go through by whitelisted users).")] - [Header(" ")] [SerializeField] private bool wallMode = false; private bool shouldOn = false; void Start() @@ -38,9 +31,9 @@ void Start() // (shouldOn && !wallMode) || (!shouldOn && wallMode) // in non wall mode, output == shouldOn // in wall mode, output == !shouldOn - foreach (GameObject _gameObject in targetObjects) + foreach (GameObject targetObject in targetObjects) { - ScriptAction(_gameObject, actionMode, (shouldOn && !wallMode) || (!shouldOn && wallMode)); + ScriptAction(targetObject, actionMode, (shouldOn && !wallMode) || (!shouldOn && wallMode)); } } @@ -63,23 +56,30 @@ private bool UserCheck() } return false; } - private void ScriptAction(GameObject _gameObject, int mode, bool targetState) + private void ScriptAction(GameObject targetObject, int mode, bool targetState) { switch (mode) { case 0: - _gameObject.SetActive(targetState); + targetObject.SetActive(targetState); break; case 1: - _gameObject.GetComponent().enabled = targetState; + Collider targetCollider = targetObject.GetComponent(); + if (targetCollider == null) + { + Debug.LogError("Item Lock: This object is in Action Mode 1 but the Collider can't be detected"); + Debug.LogError("Item Lock: このオブジェクトの動作モードがAction Mode 1ですがコライダーを取得できません"); + } + else + targetCollider.enabled = targetState; break; case 2: - ColliderRecursive(_gameObject, targetState); + ColliderRecursive(targetObject, targetState); break; case 3: - ColliderRecursive(_gameObject, targetState); - MeshRendererRecursive(_gameObject, targetState); - SkinnedMeshRendererRecursive(_gameObject, targetState); + ColliderRecursive(targetObject, targetState); + MeshRendererRecursive(targetObject, targetState); + SkinnedMeshRendererRecursive(targetObject, targetState); break; default: Debug.LogError("Item Lock: Action Mode Index Out Of Bound."); @@ -137,7 +137,7 @@ private void ColliderRecursive(GameObject targetObject, bool targetState) public void ImportUsernames(String[] importedUsernames) { usernames = importedUsernames; - Debug.Log("Username Imported"); + Debug.Log("Item Lock Center: Username Imported"); } public String[] ExportUsernames() { diff --git a/ItemLockCenterAdvanced.cs b/ItemLockCenterAdvanced.cs index 00a353b..3a7f4eb 100644 --- a/ItemLockCenterAdvanced.cs +++ b/ItemLockCenterAdvanced.cs @@ -59,7 +59,14 @@ private void ScriptAction(GameObject targetObject, int mode, bool targetState) targetObject.SetActive(targetState); break; case 1: - targetObject.GetComponent().enabled = targetState; + Collider targetCollider = targetObject.GetComponent(); + if (targetCollider == null) + { + Debug.LogError("Item Lock: This object is in Action Mode 1 but the Collider can't be detected"); + Debug.LogError("Item Lock: このオブジェクトの動作モードがAction Mode 1ですがコライダーを取得できません"); + } + else + targetCollider.enabled = targetState; break; case 2: ColliderRecursive(targetObject, targetState); @@ -135,26 +142,27 @@ public void ImportLockData(GameObject[] l_gameObject, int[] l_modes, bool[] l_al actionMode = l_modes; allowInstanceOwner = l_allowOwner; wallModes = l_wallModes; + Debug.Log("Item Lock Advanced: Data Imported"); } public void ImportTargets(GameObject[] importedGameObjects) { targetObjects = importedGameObjects; - Debug.Log("Target GameObjects Imported"); + Debug.Log("Item Lock Advanced: Target GameObjects Imported"); } public void ImportModes(int[] importedModes) { actionMode = importedModes; - Debug.Log("Action Modes Imported"); + Debug.Log("Item Lock Advanced: Action Modes Imported"); } public void ImportAllowOwner(bool[] importedAllowOwner) { allowInstanceOwner = importedAllowOwner; - Debug.Log("Allow Instance Owner Settings Imported"); + Debug.Log("Item Lock Advanced: Allow Instance Owner Settings Imported"); } public void ImportWallModes(bool[] importedWallModes) { wallModes = importedWallModes; - Debug.Log("Wall Mode Settings Imported"); + Debug.Log("Item Lock Advanced: Wall Mode Settings Imported"); } // Export Functions (not in use) public String[] ExportUsernames() diff --git a/README.md b/README.md index d7e3209..fc4a676 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,9 @@ Only whitelisted users will be able to interact or grab the item. The Collision Target: target object itself. Child objects won't be affected. The target object should have collider directly attached. -#### Alpha - Mode 2 - コライダー一括モード/Collider Inclusive Mode +#### Mode 2 - コライダー一括モード/Collider Inclusive Mode -> コライダーを利用するギミックに干渉する可能性があります。アンロックしない想定のモードです。 +> コライダーコンポーネントのオンオフを制御するため、コライダーを利用するギミックに干渉する可能性があります。 許可されていないプレイヤーには、このオブジェクトおよび子オブジェクトのすべてのコライダーが無効になります。それ以外のスクリプトは正常に同期されます。 @@ -54,21 +54,23 @@ Target: target object itself. Child objects won't be affected. The target object 使用例: いくつかのオブジェクトのコライダーを一括管理する場合や、ギミックのコライダー構成が複雑な場合。 -> This could potentially break other gimmicks that rely on colliders. This isn't designed to be unlocked. +> This could potentially break other gimmicks that rely on colliders. -Works the same as Mode 1 but all colliders on child objects will also going to be switched off. +Works the same as Mode 1 but all colliders on child objects will also be switched off. -#### Alpha - Mode 3 - コライダー一括&消失モード(仮)/Collider & Invisible Inclusive Mode +#### Mode 3 - コライダー一括&不可視モード/Collider & Invisible Inclusive Mode -> コライダー/Rendererを利用するギミックに干渉する可能性があります。アンロックしない想定のモードです。 +> コライダー/Rendererコンポーネントのオンオフを制御するため、それらを利用するギミックに干渉する可能性があります。 許可されていないプレイヤーには、このオブジェクトおよび子オブジェクトのすべてのコライダー、MeshとSkinned Mesh Rendererが無効になります。そのため、アイテムが見られないままスクリプトの実行ができます。それ以外のスクリプトは正常に同期されます。 +子オブジェクトにあるもののMesh RendererとSkinned Mesh Rendererがすべて無効になります。(ただし、パーティクル、UI、Spriteなどは正常に動作します)もし子オブジェクトに表示させたいものがありましたら、別のオブジェクトに移動してください。 + 範囲: オブジェクトおよびすべての子オブジェクト 使用例: ギミックの本体を隠したままギミック機能を利用する場合。 -> This could potentially break other gimmicks that rely on colliders, mesh and skinned mesh renderers. This isn't designed to be unlocked. +> This could potentially break other gimmicks that rely on colliders, mesh and skinned mesh renderers. Mode 2 with disabling all mesh and skinned mesh renderers to make the target object invisible. @@ -88,7 +90,6 @@ Allow the player who create this instance to use the item. Use wall mode to make whitelisted players to go through certain walls etc. - ### 注意事項 / Limitations いたずら防止のためのギミックです。すべての状況に対応するものではありません。 @@ -131,6 +132,12 @@ From Beta-b4, due to the Stack Overflow issue, the import tool is removed. From RC-b7, some variable names are changed. So in case of an update, please make sure you have a backup. +### 問題と回避策 / Limitations and workaround + +1. インタラプトでテレポートするドアなどに対応するモードがない / No modes applicatable to doors that rely on interaction to teleport. + +A: ドア(またはコライダーが入っている部分)をMode 1に設定して、その後ろに別のオブジェクトでコライダーを設定してください。 + ### 導入 2種類の導入方法があります。 / There are 2 ways to import this gimmick. diff --git a/SimpleItemLock-b11.unitypackage b/SimpleItemLock-b11.unitypackage new file mode 100644 index 0000000..892b102 Binary files /dev/null and b/SimpleItemLock-b11.unitypackage differ diff --git a/SimpleItemLock-b9.unitypackage b/SimpleItemLock-b9.unitypackage deleted file mode 100644 index dd6d5e1..0000000 Binary files a/SimpleItemLock-b9.unitypackage and /dev/null differ diff --git a/Udon/ItemLockBasic.asset b/Udon/ItemLockBasic.asset index bac22a2..caadb1c 100644 --- a/Udon/ItemLockBasic.asset +++ b/Udon/ItemLockBasic.asset @@ -44,7 +44,7 @@ MonoBehaviour: Data: - Name: Entry: 12 - Data: 7 + Data: 6 - Name: Entry: 7 Data: @@ -233,13 +233,13 @@ MonoBehaviour: Data: 15|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - Name: Entry: 12 - Data: 10 + Data: 6 - Name: Entry: 7 Data: 16|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - Name: header Entry: 1 - Data: "Mode[0]\u30A2\u30A4\u30C6\u30E0\u304C\u6D88\u3048\u308B\u3001[1]\u30A2\u30A4\u30C6\u30E0\u304C\u89E6\u308C\u306A\u304F\u306A\u308B" + Data: "Mode\u306B\u95A2\u3059\u308B\u8A73\u3057\u3044\u8AAC\u660E\u306F\u3001Github\u304A\u3088\u3073\u5546\u54C1\u30DA\u30FC\u30B8\u306B\u3042\u308A\u307E\u3059\u3002" - Name: Entry: 8 Data: @@ -248,7 +248,7 @@ MonoBehaviour: Data: 17|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - Name: header Entry: 1 - Data: "[1]\u4E88\u3081\u30B3\u30E9\u30A4\u30C0\u30FC\u3092\u7121\u52B9\u306B\u3059\u308B\u3068\u3088\u308A\u30BB\u30AD\u30E5\u30A2\u306B\u306A\u308A\u307E\u3059" + Data: Specific Inforamtion is on the github and booth page - Name: Entry: 8 Data: @@ -257,7 +257,7 @@ MonoBehaviour: Data: 18|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - Name: header Entry: 1 - Data: "[0]\u3053\u306E\u30B9\u30AF\u30EA\u30D7\u30C8\u304C\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u306B\u30A2\u30BF\u30C3\u30C1\u3057\u305F\u307E\u307E\u7121\u52B9\u306B\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044" + Data: 'Github: https://github.com/TamakiRuri/SimpleItemLock' - Name: Entry: 8 Data: @@ -266,50 +266,13 @@ MonoBehaviour: Data: 19|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - Name: header Entry: 1 - Data: "\u30B9\u30A4\u30C3\u30C1\u3067\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8(\u30B3\u30E9\u30A4\u30C0\u30FC)\u3092\u6709\u52B9\u306B\u3059\u308B\u3068\u30ED\u30C3\u30AF\u304C\u89E3\u9664\u3055\u308C\u307E\u3059\u3002" + Data: 'Booth: https://saphir.booth.pm/items/6375850' - Name: Entry: 8 Data: - Name: Entry: 7 Data: 20|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - - Name: header - Entry: 1 - Data: Mode 0 will make the item disappear, 1 will make the item not touchable - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: 21|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - - Name: header - Entry: 1 - Data: '[1]Deactivating colliders before uploading is recommanded for better - security' - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: 22|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - - Name: header - Entry: 1 - Data: '[0]Don''t deactivate the game object if this script is attacted to it.' - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: 23|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - - Name: header - Entry: 1 - Data: The item will be unlocked if a switch enables the object(collider) directly - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: 24|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - Name: header Entry: 1 Data: ' ' @@ -318,7 +281,7 @@ MonoBehaviour: Data: - Name: Entry: 7 - Data: 25|UnityEngine.SerializeField, UnityEngine.CoreModule + Data: 21|UnityEngine.SerializeField, UnityEngine.CoreModule - Name: Entry: 8 Data: @@ -342,13 +305,13 @@ MonoBehaviour: Data: allowInstanceOwner - Name: $v Entry: 7 - Data: 26|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + Data: 22|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - Name: k__BackingField Entry: 1 Data: allowInstanceOwner - Name: k__BackingField Entry: 7 - Data: 27|System.RuntimeType, mscorlib + Data: 23|System.RuntimeType, mscorlib - Name: Entry: 1 Data: System.Boolean, mscorlib @@ -357,7 +320,7 @@ MonoBehaviour: Data: - Name: k__BackingField Entry: 9 - Data: 27 + Data: 23 - Name: k__BackingField Entry: 7 Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib @@ -372,13 +335,13 @@ MonoBehaviour: Data: true - Name: _fieldAttributes Entry: 7 - Data: 28|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib + Data: 24|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - Name: Entry: 12 Data: 1 - Name: Entry: 7 - Data: 29|UnityEngine.SerializeField, UnityEngine.CoreModule + Data: 25|UnityEngine.SerializeField, UnityEngine.CoreModule - Name: Entry: 8 Data: @@ -402,16 +365,16 @@ MonoBehaviour: Data: wallMode - Name: $v Entry: 7 - Data: 30|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + Data: 26|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - Name: k__BackingField Entry: 1 Data: wallMode - Name: k__BackingField Entry: 9 - Data: 27 + Data: 23 - Name: k__BackingField Entry: 9 - Data: 27 + Data: 23 - Name: k__BackingField Entry: 7 Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib @@ -426,41 +389,13 @@ MonoBehaviour: Data: true - Name: _fieldAttributes Entry: 7 - Data: 31|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib + Data: 27|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - Name: Entry: 12 - Data: 4 - - Name: - Entry: 7 - Data: 32|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - - Name: header - Entry: 1 - Data: "Wall Mode\u3067\u306F\u3001\u52D5\u4F5C\u304C\u9006\u306B\u306A\u308A\u307E\u3059\uFF08\u58C1\u306A\u3069\u3092\u4E00\u90E8\u306E\u4EBA\u3060\u3051\u304C\u306C\u3051\u308B\u3088\u3046\u306B\u3059\u308B\u306A\u3069\uFF09" - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: 33|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - - Name: header - Entry: 1 - Data: In Wall Mode the function of the script become reversed (for creating - walls that can only be go through by whitelisted users). - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: 34|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - - Name: header - Entry: 1 - Data: ' ' - - Name: - Entry: 8 - Data: + Data: 1 - Name: Entry: 7 - Data: 35|UnityEngine.SerializeField, UnityEngine.CoreModule + Data: 28|UnityEngine.SerializeField, UnityEngine.CoreModule - Name: Entry: 8 Data: @@ -484,70 +419,16 @@ MonoBehaviour: Data: shouldOn - Name: $v Entry: 7 - Data: 36|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + Data: 29|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - Name: k__BackingField Entry: 1 Data: shouldOn - Name: k__BackingField Entry: 9 - Data: 27 - - Name: k__BackingField - Entry: 9 - Data: 27 - - Name: k__BackingField - Entry: 7 - Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib - - Name: - Entry: 6 - Data: - - Name: - Entry: 8 - Data: - - Name: k__BackingField - Entry: 5 - Data: false - - Name: _fieldAttributes - Entry: 7 - Data: 37|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - - Name: - Entry: 12 - Data: 0 - - Name: - Entry: 13 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: - - Name: $k - Entry: 1 - Data: targetCollider - - Name: $v - Entry: 7 - Data: 38|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - - Name: k__BackingField - Entry: 1 - Data: targetCollider - - Name: k__BackingField - Entry: 7 - Data: 39|System.RuntimeType, mscorlib - - Name: - Entry: 1 - Data: UnityEngine.Collider, UnityEngine.PhysicsModule - - Name: - Entry: 8 - Data: + Data: 23 - Name: k__BackingField Entry: 9 - Data: 39 + Data: 23 - Name: k__BackingField Entry: 7 Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib @@ -562,7 +443,7 @@ MonoBehaviour: Data: false - Name: _fieldAttributes Entry: 7 - Data: 40|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib + Data: 30|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - Name: Entry: 12 Data: 0 diff --git a/Udon/ItemLockCenter.asset b/Udon/ItemLockCenter.asset index c1dc28a..9aabd9d 100644 --- a/Udon/ItemLockCenter.asset +++ b/Udon/ItemLockCenter.asset @@ -206,13 +206,13 @@ MonoBehaviour: Data: 12|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - Name: Entry: 12 - Data: 9 + Data: 6 - Name: Entry: 7 Data: 13|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - Name: header Entry: 1 - Data: "Mode[0]\u30A2\u30A4\u30C6\u30E0\u304C\u6D88\u3048\u308B\u3001[1]\u30A2\u30A4\u30C6\u30E0\u304C\u89E6\u308C\u306A\u304F\u306A\u308B" + Data: "Mode\u306B\u95A2\u3059\u308B\u8A73\u3057\u3044\u8AAC\u660E\u306F\u3001Github\u304A\u3088\u3073\u5546\u54C1\u30DA\u30FC\u30B8\u306B\u3042\u308A\u307E\u3059\u3002" - Name: Entry: 8 Data: @@ -221,7 +221,7 @@ MonoBehaviour: Data: 14|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - Name: header Entry: 1 - Data: "\u4E88\u3081[0]\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8[1]\u30B3\u30E9\u30A4\u30C0\u30FC\u3092\u7121\u52B9\u306B\u3059\u308B\u3068\u3088\u308A\u30BB\u30AD\u30E5\u30A2\u306B\u306A\u308A\u307E\u3059" + Data: Specific Inforamtion is on the github and booth page - Name: Entry: 8 Data: @@ -230,7 +230,7 @@ MonoBehaviour: Data: 15|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - Name: header Entry: 1 - Data: "\u5168\u3066\u306E\u64CD\u4F5C\u304CJoin\u6642\u306B\u7D42\u308F\u308B\u305F\u3081" + Data: 'Github: https://github.com/TamakiRuri/SimpleItemLock' - Name: Entry: 8 Data: @@ -239,42 +239,13 @@ MonoBehaviour: Data: 16|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - Name: header Entry: 1 - Data: "\u30B9\u30A4\u30C3\u30C1\u3067\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8(\u30B3\u30E9\u30A4\u30C0\u30FC)\u3092\u6709\u52B9\u306B\u3059\u308B\u3068\u30ED\u30C3\u30AF\u304C\u89E3\u9664\u3055\u308C\u307E\u3059\u3002" + Data: 'Booth: https://saphir.booth.pm/items/6375850' - Name: Entry: 8 Data: - Name: Entry: 7 Data: 17|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - - Name: header - Entry: 1 - Data: Mode 0 will make the item disappear, 1 will make the item not touchable - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: 18|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - - Name: header - Entry: 1 - Data: Deactivating[0]objects[1]colliders before uploading is recommanded for - better security - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: 19|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - - Name: header - Entry: 1 - Data: However, the item will be unlocked if a switch enables the object(collider) - directly - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: 20|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - Name: header Entry: 1 Data: ' ' @@ -283,7 +254,7 @@ MonoBehaviour: Data: - Name: Entry: 7 - Data: 21|UnityEngine.SerializeField, UnityEngine.CoreModule + Data: 18|UnityEngine.SerializeField, UnityEngine.CoreModule - Name: Entry: 8 Data: @@ -307,13 +278,13 @@ MonoBehaviour: Data: allowInstanceOwner - Name: $v Entry: 7 - Data: 22|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + Data: 19|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - Name: k__BackingField Entry: 1 Data: allowInstanceOwner - Name: k__BackingField Entry: 7 - Data: 23|System.RuntimeType, mscorlib + Data: 20|System.RuntimeType, mscorlib - Name: Entry: 1 Data: System.Boolean, mscorlib @@ -322,7 +293,7 @@ MonoBehaviour: Data: - Name: k__BackingField Entry: 9 - Data: 23 + Data: 20 - Name: k__BackingField Entry: 7 Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib @@ -337,13 +308,13 @@ MonoBehaviour: Data: true - Name: _fieldAttributes Entry: 7 - Data: 24|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib + Data: 21|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - Name: Entry: 12 Data: 1 - Name: Entry: 7 - Data: 25|UnityEngine.SerializeField, UnityEngine.CoreModule + Data: 22|UnityEngine.SerializeField, UnityEngine.CoreModule - Name: Entry: 8 Data: @@ -367,16 +338,16 @@ MonoBehaviour: Data: wallMode - Name: $v Entry: 7 - Data: 26|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + Data: 23|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - Name: k__BackingField Entry: 1 Data: wallMode - Name: k__BackingField Entry: 9 - Data: 23 + Data: 20 - Name: k__BackingField Entry: 9 - Data: 23 + Data: 20 - Name: k__BackingField Entry: 7 Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib @@ -391,41 +362,13 @@ MonoBehaviour: Data: true - Name: _fieldAttributes Entry: 7 - Data: 27|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib + Data: 24|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - Name: Entry: 12 - Data: 4 - - Name: - Entry: 7 - Data: 28|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - - Name: header - Entry: 1 - Data: "Wall Mode\u3067\u306F\u3001\u52D5\u4F5C\u304C\u9006\u306B\u306A\u308A\u307E\u3059\uFF08\u58C1\u306A\u3069\u3092\u4E00\u90E8\u306E\u4EBA\u3060\u3051\u304C\u306C\u3051\u308B\u3088\u3046\u306B\u3059\u308B\u306A\u3069\uFF09" - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: 29|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - - Name: header - Entry: 1 - Data: In Wall Mode the function of the script become reversed (for creating - walls that can only be go through by whitelisted users). - - Name: - Entry: 8 - Data: - - Name: - Entry: 7 - Data: 30|UnityEngine.HeaderAttribute, UnityEngine.CoreModule - - Name: header - Entry: 1 - Data: ' ' - - Name: - Entry: 8 - Data: + Data: 1 - Name: Entry: 7 - Data: 31|UnityEngine.SerializeField, UnityEngine.CoreModule + Data: 25|UnityEngine.SerializeField, UnityEngine.CoreModule - Name: Entry: 8 Data: @@ -449,16 +392,16 @@ MonoBehaviour: Data: shouldOn - Name: $v Entry: 7 - Data: 32|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor + Data: 26|UdonSharp.Compiler.FieldDefinition, UdonSharp.Editor - Name: k__BackingField Entry: 1 Data: shouldOn - Name: k__BackingField Entry: 9 - Data: 23 + Data: 20 - Name: k__BackingField Entry: 9 - Data: 23 + Data: 20 - Name: k__BackingField Entry: 7 Data: System.Nullable`1[[UdonSharp.UdonSyncMode, UdonSharp.Runtime]], mscorlib @@ -473,7 +416,7 @@ MonoBehaviour: Data: false - Name: _fieldAttributes Entry: 7 - Data: 33|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib + Data: 27|System.Collections.Generic.List`1[[System.Attribute, mscorlib]], mscorlib - Name: Entry: 12 Data: 0