├── .gitignore ├── Assets ├── Plugins.meta ├── Plugins │ ├── Android.meta │ ├── Android │ │ ├── AndroidManifest.xml │ │ ├── AndroidManifest.xml.meta │ │ ├── AndroidScan.jar │ │ ├── AndroidScan.jar.meta │ │ ├── res.meta │ │ └── res │ │ │ ├── drawable.meta │ │ │ ├── drawable │ │ │ ├── ic_launcher.png │ │ │ ├── ic_launcher.png.meta │ │ │ ├── nfc.png │ │ │ └── nfc.png.meta │ │ │ ├── layout.meta │ │ │ └── layout │ │ │ ├── activity_scan_nfc.xml │ │ │ └── activity_scan_nfc.xml.meta │ ├── AndroidNFCReader.cs │ └── AndroidNFCReader.cs.meta ├── Scenes.meta ├── Scenes │ ├── Main.unity │ └── Main.unity.meta ├── Scripts.meta └── Scripts │ ├── Main.cs │ └── Main.cs.meta ├── LICENSE ├── ProjectSettings ├── AudioManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NavMeshLayers.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── QualitySettings.asset ├── TagManager.asset └── TimeManager.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # =============== # 2 | # Unity generated # 3 | # =============== # 4 | Temp/ 5 | Library/ 6 | 7 | # ===================================== # 8 | # Visual Studio / MonoDevelop generated # 9 | # ===================================== # 10 | ExportedObj/ 11 | obj/ 12 | *.svd 13 | *.userprefs 14 | /*.csproj 15 | *.pidb 16 | *.suo 17 | /*.sln 18 | *.user 19 | *.unityproj 20 | *.booproj 21 | 22 | # ============ # 23 | # OS generated # 24 | # ============ # 25 | .DS_Store 26 | .DS_Store? 27 | ._* 28 | .Spotlight-V100 29 | .Trashes 30 | ehthumbs.db 31 | Thumbs.db -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e01ca52a4626748a185390f8dc31fa8f 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/Android.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 29d4c983226b04047920f870d1ebfae4 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/AndroidManifest.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a48ba3d81496f443788603b6297ff4c0 3 | TextScriptImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/AndroidScan.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twisprite-developers/unity-nfc-plugin/5d3a462452be07faaa8f459630ecaedd6d6f49f1/Assets/Plugins/Android/AndroidScan.jar -------------------------------------------------------------------------------- /Assets/Plugins/Android/AndroidScan.jar.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b575c961ad5a446eb9a16491ce10f9c1 3 | PluginImporter: 4 | serializedVersion: 1 5 | iconMap: {} 6 | executionOrder: {} 7 | isPreloaded: 0 8 | platformData: 9 | Android: 10 | enabled: 1 11 | settings: 12 | CPU: ARMv7 13 | Any: 14 | enabled: 0 15 | settings: {} 16 | Editor: 17 | enabled: 0 18 | settings: 19 | CPU: AnyCPU 20 | DefaultValueInitialized: true 21 | OS: AnyOS 22 | Linux: 23 | enabled: 0 24 | settings: 25 | CPU: x86 26 | Linux64: 27 | enabled: 0 28 | settings: 29 | CPU: x86_64 30 | OSXIntel: 31 | enabled: 0 32 | settings: 33 | CPU: AnyCPU 34 | OSXIntel64: 35 | enabled: 0 36 | settings: 37 | CPU: AnyCPU 38 | Win: 39 | enabled: 0 40 | settings: 41 | CPU: AnyCPU 42 | Win64: 43 | enabled: 0 44 | settings: 45 | CPU: AnyCPU 46 | iOS: 47 | enabled: 0 48 | settings: 49 | CompileFlags: 50 | FrameworkDependencies: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/res.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6bae11ff013a4be0a3c22c06ff73638 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/res/drawable.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4a21a3230b8c94cd598d636ec285bc59 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/res/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twisprite-developers/unity-nfc-plugin/5d3a462452be07faaa8f459630ecaedd6d6f49f1/Assets/Plugins/Android/res/drawable/ic_launcher.png -------------------------------------------------------------------------------- /Assets/Plugins/Android/res/drawable/ic_launcher.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bce193e8a73d048ee9a872a49faab047 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/res/drawable/nfc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twisprite-developers/unity-nfc-plugin/5d3a462452be07faaa8f459630ecaedd6d6f49f1/Assets/Plugins/Android/res/drawable/nfc.png -------------------------------------------------------------------------------- /Assets/Plugins/Android/res/drawable/nfc.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 754b68f12907e4b559f01e30310c04ef 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/res/layout.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da314859f9a47467f9e1b08c87898a89 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/res/layout/activity_scan_nfc.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Assets/Plugins/Android/res/layout/activity_scan_nfc.xml.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: acbe65e979cdd43dcb02882af3e932b1 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/Plugins/AndroidNFCReader.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class AndroidNFCReader : MonoBehaviour { 5 | 6 | static public readonly string ERROR = "ERROR"; 7 | static public readonly string NO_HARDWARE = "NO_HARDWARE"; 8 | static public readonly string CANCELLED = "CANCELLED"; 9 | static public readonly string NO_ALLOWED_OS = "NO_ALLOWED_OS"; 10 | 11 | public static void enableBackgroundScan() { 12 | #if UNITY_ANDROID && !UNITY_EDITOR 13 | AndroidJavaClass javaClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); 14 | AndroidJavaObject javaObject = javaClass.GetStatic("currentActivity"); 15 | javaObject.Call("enableBackgroundScan"); 16 | #endif 17 | } 18 | 19 | public static void disableBackgroundScan() { 20 | #if UNITY_ANDROID && !UNITY_EDITOR 21 | AndroidJavaClass javaClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); 22 | AndroidJavaObject javaObject = javaClass.GetStatic("currentActivity"); 23 | javaObject.Call("disableBackgroundScan"); 24 | #endif 25 | } 26 | 27 | 28 | public static void ScanNFC(string objectName, string functionName) { 29 | 30 | switch (Application.platform) { 31 | 32 | case RuntimePlatform.Android: 33 | AndroidJavaClass javaClass = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); 34 | AndroidJavaObject javaObject = javaClass.GetStatic("currentActivity"); 35 | javaObject.Call("scanNFC",objectName,functionName); 36 | break; 37 | 38 | default: 39 | GameObject.Find(objectName).SendMessage(functionName, NO_ALLOWED_OS); 40 | break; 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Assets/Plugins/AndroidNFCReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e8826395ddd34500a569911788237d2 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f1c9fc033e7948e2965b483786341ba 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Scenes/Main.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | SceneSettings: 5 | m_ObjectHideFlags: 0 6 | m_PVSData: 7 | m_PVSObjectsArray: [] 8 | m_PVSPortalsArray: [] 9 | m_OcclusionBakeSettings: 10 | smallestOccluder: 5 11 | smallestHole: .25 12 | backfaceThreshold: 100 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 6 17 | m_Fog: 0 18 | m_FogColor: {r: .5, g: .5, b: .5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: .00999999978 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: .200000003, g: .200000003, b: .200000003, a: 1} 24 | m_AmbientEquatorColor: {r: .200000003, g: .200000003, b: .200000003, a: 1} 25 | m_AmbientGroundColor: {r: .200000003, g: .200000003, b: .200000003, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 3 28 | m_SkyboxMaterial: {fileID: 0} 29 | m_HaloStrength: .5 30 | m_FlareStrength: 1 31 | m_FlareFadeSpeed: 3 32 | m_HaloTexture: {fileID: 0} 33 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 34 | m_DefaultReflectionMode: 0 35 | m_DefaultReflectionResolution: 128 36 | m_ReflectionBounces: 1 37 | m_ReflectionIntensity: 1 38 | m_CustomReflection: {fileID: 0} 39 | m_Sun: {fileID: 0} 40 | --- !u!127 &3 41 | LevelGameManager: 42 | m_ObjectHideFlags: 0 43 | --- !u!157 &4 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 5 47 | m_GIWorkflowMode: 1 48 | m_LightmapsMode: 1 49 | m_GISettings: 50 | serializedVersion: 2 51 | m_BounceScale: 1 52 | m_IndirectOutputScale: 1 53 | m_AlbedoBoost: 1 54 | m_TemporalCoherenceThreshold: 1 55 | m_EnvironmentLightingMode: 0 56 | m_EnableBakedLightmaps: 1 57 | m_EnableRealtimeLightmaps: 0 58 | m_LightmapEditorSettings: 59 | serializedVersion: 3 60 | m_Resolution: 1 61 | m_BakeResolution: 50 62 | m_TextureWidth: 1024 63 | m_TextureHeight: 1024 64 | m_AOMaxDistance: 1 65 | m_Padding: 2 66 | m_CompAOExponent: 0 67 | m_LightmapParameters: {fileID: 0} 68 | m_TextureCompression: 0 69 | m_FinalGather: 0 70 | m_FinalGatherRayCount: 1024 71 | m_LightmapSnapshot: {fileID: 0} 72 | m_RuntimeCPUUsage: 25 73 | --- !u!196 &5 74 | NavMeshSettings: 75 | serializedVersion: 2 76 | m_ObjectHideFlags: 0 77 | m_BuildSettings: 78 | serializedVersion: 2 79 | agentRadius: .5 80 | agentHeight: 2 81 | agentSlope: 45 82 | agentClimb: .400000006 83 | ledgeDropHeight: 0 84 | maxJumpAcrossDistance: 0 85 | accuratePlacement: 0 86 | minRegionArea: 2 87 | cellSize: .166666657 88 | manualCellSize: 0 89 | m_NavMeshData: {fileID: 0} 90 | --- !u!1 &449958814 91 | GameObject: 92 | m_ObjectHideFlags: 0 93 | m_PrefabParentObject: {fileID: 0} 94 | m_PrefabInternal: {fileID: 0} 95 | serializedVersion: 4 96 | m_Component: 97 | - 4: {fileID: 449958820} 98 | - 20: {fileID: 449958819} 99 | - 92: {fileID: 449958818} 100 | - 124: {fileID: 449958817} 101 | - 81: {fileID: 449958816} 102 | - 114: {fileID: 449958815} 103 | m_Layer: 0 104 | m_Name: Main Camera 105 | m_TagString: MainCamera 106 | m_Icon: {fileID: 0} 107 | m_NavMeshLayer: 0 108 | m_StaticEditorFlags: 0 109 | m_IsActive: 1 110 | --- !u!114 &449958815 111 | MonoBehaviour: 112 | m_ObjectHideFlags: 0 113 | m_PrefabParentObject: {fileID: 0} 114 | m_PrefabInternal: {fileID: 0} 115 | m_GameObject: {fileID: 449958814} 116 | m_Enabled: 1 117 | m_EditorHideFlags: 0 118 | m_Script: {fileID: 11500000, guid: f1e770b16dc5546a8b8d973e1ea6063f, type: 3} 119 | m_Name: 120 | m_EditorClassIdentifier: 121 | --- !u!81 &449958816 122 | AudioListener: 123 | m_ObjectHideFlags: 0 124 | m_PrefabParentObject: {fileID: 0} 125 | m_PrefabInternal: {fileID: 0} 126 | m_GameObject: {fileID: 449958814} 127 | m_Enabled: 1 128 | --- !u!124 &449958817 129 | Behaviour: 130 | m_ObjectHideFlags: 0 131 | m_PrefabParentObject: {fileID: 0} 132 | m_PrefabInternal: {fileID: 0} 133 | m_GameObject: {fileID: 449958814} 134 | m_Enabled: 1 135 | --- !u!92 &449958818 136 | Behaviour: 137 | m_ObjectHideFlags: 0 138 | m_PrefabParentObject: {fileID: 0} 139 | m_PrefabInternal: {fileID: 0} 140 | m_GameObject: {fileID: 449958814} 141 | m_Enabled: 1 142 | --- !u!20 &449958819 143 | Camera: 144 | m_ObjectHideFlags: 0 145 | m_PrefabParentObject: {fileID: 0} 146 | m_PrefabInternal: {fileID: 0} 147 | m_GameObject: {fileID: 449958814} 148 | m_Enabled: 1 149 | serializedVersion: 2 150 | m_ClearFlags: 1 151 | m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438} 152 | m_NormalizedViewPortRect: 153 | serializedVersion: 2 154 | x: 0 155 | y: 0 156 | width: 1 157 | height: 1 158 | near clip plane: .300000012 159 | far clip plane: 1000 160 | field of view: 60 161 | orthographic: 0 162 | orthographic size: 5 163 | m_Depth: -1 164 | m_CullingMask: 165 | serializedVersion: 2 166 | m_Bits: 4294967295 167 | m_RenderingPath: -1 168 | m_TargetTexture: {fileID: 0} 169 | m_TargetDisplay: 0 170 | m_HDR: 0 171 | m_OcclusionCulling: 1 172 | m_StereoConvergence: 10 173 | m_StereoSeparation: .0219999999 174 | --- !u!4 &449958820 175 | Transform: 176 | m_ObjectHideFlags: 0 177 | m_PrefabParentObject: {fileID: 0} 178 | m_PrefabInternal: {fileID: 0} 179 | m_GameObject: {fileID: 449958814} 180 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 181 | m_LocalPosition: {x: 0, y: 1, z: -10} 182 | m_LocalScale: {x: 1, y: 1, z: 1} 183 | m_Children: [] 184 | m_Father: {fileID: 0} 185 | m_RootOrder: 0 186 | -------------------------------------------------------------------------------- /Assets/Scenes/Main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62d51d55ab03e41ca953b5a641c3429f 3 | DefaultImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25caf0eb233af4528b5a8ab3b5e45c7e 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /Assets/Scripts/Main.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class Main : MonoBehaviour 5 | { 6 | 7 | string qrString = ""; 8 | bool background = true; 9 | 10 | void Start(){ 11 | AndroidNFCReader.enableBackgroundScan (); 12 | AndroidNFCReader.ScanNFC (gameObject.name, "OnFinishScan"); 13 | } 14 | 15 | void OnGUI () 16 | { 17 | if (!background) { 18 | // Scan NFC button 19 | if (GUI.Button (new Rect (0, Screen.height - 50, Screen.width, 50), "Scan NFC")) { 20 | AndroidNFCReader.ScanNFC (gameObject.name, "OnFinishScan"); 21 | } 22 | if (GUI.Button (new Rect (0, Screen.height - 100, Screen.width, 50), "Enable Backgraound Mode")) { 23 | AndroidNFCReader.enableBackgroundScan (); 24 | background = true; 25 | } 26 | }else{ 27 | if (GUI.Button (new Rect (0, Screen.height - 50, Screen.width, 50), "Disable Backgraound Mode")) { 28 | AndroidNFCReader.disableBackgroundScan (); 29 | background = false; 30 | } 31 | } 32 | GUI.Label (new Rect (0, 0, Screen.width, 50), "Result: " + qrString); 33 | } 34 | 35 | // NFC callback 36 | void OnFinishScan (string result) 37 | { 38 | 39 | // Cancelled 40 | if (result == AndroidNFCReader.CANCELLED) { 41 | 42 | // Error 43 | } else if (result == AndroidNFCReader.ERROR) { 44 | 45 | 46 | // No hardware 47 | } else if (result == AndroidNFCReader.NO_HARDWARE) { 48 | } 49 | 50 | 51 | qrString = getToyxFromUrl (result); 52 | } 53 | 54 | // Extract toyxId from url 55 | string getToyxFromUrl (string url) 56 | { 57 | int index = url.LastIndexOf ('/') + 1; 58 | 59 | if (url.Length > index) { 60 | return url.Substring (index); 61 | } 62 | 63 | return url; 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /Assets/Scripts/Main.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f1e770b16dc5546a8b8d973e1ea6063f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Twinsprite, Inc. http://twinsprite.com/ 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_DisableAudio: 0 15 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042, z: 0} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_BounceThreshold: 2 9 | m_SleepThreshold: .00499999989 10 | m_DefaultContactOffset: .00999999978 11 | m_SolverIterationCount: 6 12 | m_RaycastsHitTriggers: 1 13 | m_EnableAdaptiveForce: 0 14 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 15 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Scenes/Main.unity 10 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 0 12 | m_SpritePackerMode: 2 13 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_LegacyDeferred: 11 | m_Mode: 1 12 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 13 | m_AlwaysIncludedShaders: 14 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 15 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 16 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 17 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 18 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 19 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 20 | m_PreloadedShaders: [] 21 | m_LightmapStripping: 0 22 | m_LightmapKeepPlain: 1 23 | m_LightmapKeepDirCombined: 1 24 | m_LightmapKeepDirSeparate: 1 25 | m_LightmapKeepDynamic: 1 26 | m_FogStripping: 0 27 | m_FogKeepLinear: 1 28 | m_FogKeepExp: 1 29 | m_FogKeepExp2: 1 30 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: .00100000005 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: .00100000005 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: .00100000005 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: .00100000005 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left cmd 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: .00100000005 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: .00100000005 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: .100000001 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: .100000001 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: .100000001 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: .189999998 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: .189999998 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: .00100000005 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: .00100000005 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: .00100000005 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: .00100000005 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: .00100000005 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: .00100000005 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: .00100000005 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshAreas: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshLayers.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/twisprite-developers/unity-nfc-plugin/5d3a462452be07faaa8f459630ecaedd6d6f49f1/ProjectSettings/NavMeshLayers.asset -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | m_Gravity: {x: 0, y: -9.81000042} 7 | m_DefaultMaterial: {fileID: 0} 8 | m_VelocityIterations: 8 9 | m_PositionIterations: 3 10 | m_VelocityThreshold: 1 11 | m_MaxLinearCorrection: .200000003 12 | m_MaxAngularCorrection: 8 13 | m_MaxTranslationSpeed: 100 14 | m_MaxRotationSpeed: 360 15 | m_MinPenetrationForPenalty: .00999999978 16 | m_BaumgarteScale: .200000003 17 | m_BaumgarteTimeOfImpactScale: .75 18 | m_TimeToSleep: .5 19 | m_LinearSleepTolerance: .00999999978 20 | m_AngularSleepTolerance: 2 21 | m_RaycastsHitTriggers: 1 22 | m_RaycastsStartInColliders: 1 23 | m_ChangeStopsCallbacks: 1 24 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 25 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 6 7 | AndroidProfiler: 0 8 | defaultScreenOrientation: 4 9 | targetDevice: 2 10 | targetGlesGraphics: -1 11 | targetIOSGraphics: -1 12 | targetResolution: 0 13 | accelerometerFrequency: 60 14 | companyName: DefaultCompany 15 | productName: UnityProject 16 | cloudProjectId: 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | defaultScreenWidth: 1024 20 | defaultScreenHeight: 768 21 | defaultScreenWidthWeb: 960 22 | defaultScreenHeightWeb: 600 23 | m_RenderingPath: 1 24 | m_MobileRenderingPath: 1 25 | m_ActiveColorSpace: 0 26 | m_MTRendering: 1 27 | m_MobileMTRendering: 0 28 | m_UseDX11: 1 29 | m_Stereoscopic3D: 0 30 | iosShowActivityIndicatorOnLoading: -1 31 | androidShowActivityIndicatorOnLoading: -1 32 | iosAppInBackgroundBehavior: 0 33 | displayResolutionDialog: 1 34 | allowedAutorotateToPortrait: 1 35 | allowedAutorotateToPortraitUpsideDown: 1 36 | allowedAutorotateToLandscapeRight: 1 37 | allowedAutorotateToLandscapeLeft: 1 38 | useOSAutorotation: 1 39 | use32BitDisplayBuffer: 1 40 | disableDepthAndStencilBuffers: 0 41 | defaultIsFullScreen: 1 42 | defaultIsNativeResolution: 1 43 | runInBackground: 0 44 | captureSingleScreen: 0 45 | Override IPod Music: 0 46 | Prepare IOS For Recording: 0 47 | submitAnalytics: 1 48 | usePlayerLog: 1 49 | bakeCollisionMeshes: 0 50 | forceSingleInstance: 0 51 | resizableWindow: 0 52 | useMacAppStoreValidation: 0 53 | gpuSkinning: 0 54 | xboxPIXTextureCapture: 0 55 | xboxEnableAvatar: 0 56 | xboxEnableKinect: 0 57 | xboxEnableKinectAutoTracking: 0 58 | xboxEnableFitness: 0 59 | visibleInBackground: 0 60 | macFullscreenMode: 2 61 | d3d9FullscreenMode: 1 62 | d3d11FullscreenMode: 1 63 | xboxSpeechDB: 0 64 | xboxEnableHeadOrientation: 0 65 | xboxEnableGuest: 0 66 | xboxOneResolution: 0 67 | ps3SplashScreen: {fileID: 0} 68 | videoMemoryForVertexBuffers: 0 69 | psp2PowerMode: 0 70 | psp2AcquireBGM: 1 71 | m_SupportedAspectRatios: 72 | 4:3: 1 73 | 5:4: 1 74 | 16:10: 1 75 | 16:9: 1 76 | Others: 1 77 | bundleIdentifier: com.Company.ProductName 78 | bundleVersion: 1.0 79 | preloadedAssets: [] 80 | metroEnableIndependentInputSource: 0 81 | metroEnableLowLatencyPresentationAPI: 0 82 | xboxOneDisableKinectGpuReservation: 0 83 | productGUID: 9c1780ba973bf47e990f0bbfb9ada61b 84 | AndroidBundleVersionCode: 1 85 | AndroidMinSdkVersion: 9 86 | AndroidPreferredInstallLocation: 1 87 | aotOptions: 88 | apiCompatibilityLevel: 2 89 | iPhoneStrippingLevel: 0 90 | iPhoneScriptCallOptimization: 0 91 | ForceInternetPermission: 0 92 | ForceSDCardPermission: 0 93 | CreateWallpaper: 0 94 | APKExpansionFiles: 0 95 | preloadShaders: 0 96 | StripUnusedMeshComponents: 0 97 | iPhoneSdkVersion: 988 98 | iPhoneTargetOSVersion: 22 99 | uIPrerenderedIcon: 0 100 | uIRequiresPersistentWiFi: 0 101 | uIStatusBarHidden: 1 102 | uIExitOnSuspend: 0 103 | uIStatusBarStyle: 0 104 | iPhoneSplashScreen: {fileID: 0} 105 | iPhoneHighResSplashScreen: {fileID: 0} 106 | iPhoneTallHighResSplashScreen: {fileID: 0} 107 | iPhone47inSplashScreen: {fileID: 0} 108 | iPhone55inPortraitSplashScreen: {fileID: 0} 109 | iPhone55inLandscapeSplashScreen: {fileID: 0} 110 | iPadPortraitSplashScreen: {fileID: 0} 111 | iPadHighResPortraitSplashScreen: {fileID: 0} 112 | iPadLandscapeSplashScreen: {fileID: 0} 113 | iPadHighResLandscapeSplashScreen: {fileID: 0} 114 | iOSLaunchScreenType: 0 115 | iOSLaunchScreenPortrait: {fileID: 0} 116 | iOSLaunchScreenLandscape: {fileID: 0} 117 | iOSLaunchScreenBackgroundColor: 118 | serializedVersion: 2 119 | rgba: 0 120 | iOSLaunchScreenFillPct: 1 121 | iOSLaunchScreenCustomXibPath: 122 | AndroidTargetDevice: 0 123 | AndroidSplashScreenScale: 0 124 | AndroidKeystoreName: 125 | AndroidKeyaliasName: 126 | AndroidTVCompatibility: 1 127 | AndroidIsGame: 1 128 | androidEnableBanner: 1 129 | m_AndroidBanners: 130 | - width: 320 131 | height: 180 132 | banner: {fileID: 0} 133 | resolutionDialogBanner: {fileID: 0} 134 | m_BuildTargetIcons: 135 | - m_BuildTarget: 136 | m_Icons: 137 | - m_Icon: {fileID: 0} 138 | m_Size: 128 139 | m_BuildTargetBatching: [] 140 | webPlayerTemplate: APPLICATION:Default 141 | m_TemplateCustomTags: {} 142 | actionOnDotNetUnhandledException: 1 143 | enableInternalProfiler: 0 144 | logObjCUncaughtExceptions: 1 145 | enableCrashReportAPI: 0 146 | locationUsageDescription: 147 | XboxTitleId: 148 | XboxImageXexPath: 149 | XboxSpaPath: 150 | XboxGenerateSpa: 0 151 | XboxDeployKinectResources: 0 152 | XboxSplashScreen: {fileID: 0} 153 | xboxEnableSpeech: 0 154 | xboxAdditionalTitleMemorySize: 0 155 | xboxDeployKinectHeadOrientation: 0 156 | xboxDeployKinectHeadPosition: 0 157 | ps3TitleConfigPath: 158 | ps3DLCConfigPath: 159 | ps3ThumbnailPath: 160 | ps3BackgroundPath: 161 | ps3SoundPath: 162 | ps3NPAgeRating: 12 163 | ps3TrophyCommId: 164 | ps3NpCommunicationPassphrase: 165 | ps3TrophyPackagePath: 166 | ps3BootCheckMaxSaveGameSizeKB: 128 167 | ps3TrophyCommSig: 168 | ps3SaveGameSlots: 1 169 | ps3TrialMode: 0 170 | ps3VideoMemoryForAudio: 0 171 | ps3EnableVerboseMemoryStats: 0 172 | ps3UseSPUForUmbra: 0 173 | ps3EnableMoveSupport: 1 174 | ps3DisableDolbyEncoding: 0 175 | ps4NPAgeRating: 12 176 | ps4NPTitleSecret: 177 | ps4NPTrophyPackPath: 178 | ps4ParentalLevel: 1 179 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 180 | ps4Category: 0 181 | ps4MasterVersion: 01.00 182 | ps4AppVersion: 01.00 183 | ps4AppType: 0 184 | ps4ParamSfxPath: 185 | ps4VideoOutPixelFormat: 0 186 | ps4VideoOutResolution: 4 187 | ps4PronunciationXMLPath: 188 | ps4PronunciationSIGPath: 189 | ps4BackgroundImagePath: 190 | ps4StartupImagePath: 191 | ps4SaveDataImagePath: 192 | ps4BGMPath: 193 | ps4ShareFilePath: 194 | ps4NPtitleDatPath: 195 | ps4RemotePlayKeyAssignment: -1 196 | ps4EnterButtonAssignment: 1 197 | ps4ApplicationParam1: 0 198 | ps4ApplicationParam2: 0 199 | ps4ApplicationParam3: 0 200 | ps4ApplicationParam4: 0 201 | ps4Passcode: ZQxVPP4cDf1OJq3Zk6mMN262PJBFFMbO 202 | ps4pnSessions: 1 203 | ps4pnPresence: 1 204 | ps4pnFriends: 1 205 | ps4pnGameCustomData: 1 206 | playerPrefsSupport: 0 207 | monoEnv: 208 | psp2Splashimage: {fileID: 0} 209 | psp2NPTrophyPackPath: 210 | psp2NPSupportGBMorGJP: 0 211 | psp2NPAgeRating: 12 212 | psp2NPCommsID: 213 | psp2NPCommunicationsID: 214 | psp2NPCommsPassphrase: 215 | psp2NPCommsSig: 216 | psp2ParamSfxPath: 217 | psp2ManualPath: 218 | psp2LiveAreaGatePath: 219 | psp2LiveAreaBackroundPath: 220 | psp2LiveAreaPath: 221 | psp2LiveAreaTrialPath: 222 | psp2PatchChangeInfoPath: 223 | psp2PatchOriginalPackage: 224 | psp2PackagePassword: UkpbtV6L5vFsYpb8YMm7BhLm8w05eiCk 225 | psp2KeystoneFile: 226 | psp2DRMType: 0 227 | psp2StorageType: 0 228 | psp2MediaCapacity: 0 229 | psp2DLCConfigPath: 230 | psp2ThumbnailPath: 231 | psp2BackgroundPath: 232 | psp2SoundPath: 233 | psp2TrophyCommId: 234 | psp2TrophyPackagePath: 235 | psp2PackagedResourcesPath: 236 | psp2SaveDataQuota: 10240 237 | psp2ParentalLevel: 1 238 | psp2ShortTitle: Not Set 239 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 240 | psp2Category: 0 241 | psp2MasterVersion: 01.00 242 | psp2AppVersion: 01.00 243 | psp2TVBootMode: 0 244 | psp2EnterButtonAssignment: 2 245 | psp2TVDisableEmu: 0 246 | psp2AllowTwitterDialog: 1 247 | psp2Upgradable: 0 248 | psp2HealthWarning: 0 249 | psp2UseLibLocation: 0 250 | psp2InfoBarOnStartup: 0 251 | psp2InfoBarColor: 0 252 | psmSplashimage: {fileID: 0} 253 | spritePackerPolicy: 254 | scriptingDefineSymbols: {} 255 | metroPackageName: UnityProject 256 | metroPackageLogo: 257 | metroPackageLogo140: 258 | metroPackageLogo180: 259 | metroPackageLogo240: 260 | metroPackageVersion: 261 | metroCertificatePath: 262 | metroCertificatePassword: 263 | metroCertificateSubject: 264 | metroCertificateIssuer: 265 | metroCertificateNotAfter: 0000000000000000 266 | metroApplicationDescription: UnityProject 267 | metroStoreTileLogo80: 268 | metroStoreTileLogo: 269 | metroStoreTileLogo140: 270 | metroStoreTileLogo180: 271 | metroStoreTileWideLogo80: 272 | metroStoreTileWideLogo: 273 | metroStoreTileWideLogo140: 274 | metroStoreTileWideLogo180: 275 | metroStoreTileSmallLogo80: 276 | metroStoreTileSmallLogo: 277 | metroStoreTileSmallLogo140: 278 | metroStoreTileSmallLogo180: 279 | metroStoreSmallTile80: 280 | metroStoreSmallTile: 281 | metroStoreSmallTile140: 282 | metroStoreSmallTile180: 283 | metroStoreLargeTile80: 284 | metroStoreLargeTile: 285 | metroStoreLargeTile140: 286 | metroStoreLargeTile180: 287 | metroStoreSplashScreenImage: 288 | metroStoreSplashScreenImage140: 289 | metroStoreSplashScreenImage180: 290 | metroPhoneAppIcon: 291 | metroPhoneAppIcon140: 292 | metroPhoneAppIcon240: 293 | metroPhoneSmallTile: 294 | metroPhoneSmallTile140: 295 | metroPhoneSmallTile240: 296 | metroPhoneMediumTile: 297 | metroPhoneMediumTile140: 298 | metroPhoneMediumTile240: 299 | metroPhoneWideTile: 300 | metroPhoneWideTile140: 301 | metroPhoneWideTile240: 302 | metroPhoneSplashScreenImage: 303 | metroPhoneSplashScreenImage140: 304 | metroPhoneSplashScreenImage240: 305 | metroTileShortName: 306 | metroCommandLineArgsFile: 307 | metroTileShowName: 0 308 | metroMediumTileShowName: 0 309 | metroLargeTileShowName: 0 310 | metroWideTileShowName: 0 311 | metroDefaultTileSize: 1 312 | metroTileForegroundText: 1 313 | metroTileBackgroundColor: {r: 0, g: 0, b: 0, a: 1} 314 | metroSplashScreenBackgroundColor: {r: 0, g: 0, b: 0, a: 1} 315 | metroSplashScreenUseBackgroundColor: 0 316 | platformCapabilities: {} 317 | metroFTAName: 318 | metroFTAFileTypes: [] 319 | metroProtocolName: 320 | metroCompilationOverrides: 1 321 | blackberryDeviceAddress: 322 | blackberryDevicePassword: 323 | blackberryTokenPath: 324 | blackberryTokenExires: 325 | blackberryTokenAuthor: 326 | blackberryTokenAuthorId: 327 | blackberryCskPassword: 328 | blackberrySaveLogPath: 329 | blackberrySharedPermissions: 0 330 | blackberryCameraPermissions: 0 331 | blackberryGPSPermissions: 0 332 | blackberryDeviceIDPermissions: 0 333 | blackberryMicrophonePermissions: 0 334 | blackberryGamepadSupport: 0 335 | blackberryBuildId: 0 336 | blackberryLandscapeSplashScreen: {fileID: 0} 337 | blackberryPortraitSplashScreen: {fileID: 0} 338 | blackberrySquareSplashScreen: {fileID: 0} 339 | tizenProductDescription: 340 | tizenProductURL: 341 | tizenCertificatePath: 342 | tizenCertificatePassword: 343 | tizenGPSPermissions: 0 344 | tizenMicrophonePermissions: 0 345 | stvDeviceAddress: 346 | stvProductDescription: 347 | stvProductAuthor: 348 | stvProductAuthorEmail: 349 | stvProductLink: 350 | stvProductCategory: 0 351 | XboxOneProductId: 352 | XboxOneUpdateKey: 353 | XboxOneSandboxId: 354 | XboxOneContentId: 355 | XboxOneTitleId: 356 | XboxOneSCId: 357 | XboxOneGameOsOverridePath: 358 | XboxOnePackagingOverridePath: 359 | XboxOneAppManifestOverridePath: 360 | XboxOnePackageEncryption: 0 361 | XboxOneDescription: 362 | XboxOneIsContentPackage: 0 363 | XboxOneEnableGPUVariability: 0 364 | XboxOneSockets: {} 365 | XboxOneSplashScreen: {fileID: 0} 366 | XboxOneAllowedProductIds: [] 367 | XboxOnePersistentLocalStorageSize: 0 368 | intPropertyNames: 369 | - WebGL::ScriptingBackend 370 | - WebGL::audioCompressionFormat 371 | - WebGL::exceptionSupport 372 | - WebGL::memorySize 373 | - iOS::Architecture 374 | - iOS::ScriptingBackend 375 | WebGL::ScriptingBackend: 1 376 | WebGL::audioCompressionFormat: 4 377 | WebGL::exceptionSupport: 0 378 | WebGL::memorySize: 256 379 | iOS::Architecture: 2 380 | iOS::ScriptingBackend: 0 381 | boolPropertyNames: 382 | - WebGL::dataCaching 383 | - XboxOne::enus 384 | WebGL::dataCaching: 0 385 | XboxOne::enus: 1 386 | stringPropertyNames: 387 | - WebGL::emscriptenArgs 388 | - WebGL::template 389 | WebGL::emscriptenArgs: 390 | WebGL::template: APPLICATION:Default 391 | firstStreamedLevelWithResources: 0 392 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 3 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Fastest 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowCascade2Split: .333333343 18 | shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} 19 | blendWeights: 1 20 | textureQuality: 1 21 | anisotropicTextures: 0 22 | antiAliasing: 0 23 | softParticles: 0 24 | softVegetation: 0 25 | realtimeReflectionProbes: 0 26 | billboardsFaceCameraPosition: 0 27 | vSyncCount: 0 28 | lodBias: .300000012 29 | maximumLODLevel: 0 30 | particleRaycastBudget: 4 31 | excludedTargetPlatforms: [] 32 | - serializedVersion: 2 33 | name: Fast 34 | pixelLightCount: 0 35 | shadows: 0 36 | shadowResolution: 0 37 | shadowProjection: 1 38 | shadowCascades: 1 39 | shadowDistance: 20 40 | shadowCascade2Split: .333333343 41 | shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} 42 | blendWeights: 2 43 | textureQuality: 0 44 | anisotropicTextures: 0 45 | antiAliasing: 0 46 | softParticles: 0 47 | softVegetation: 0 48 | realtimeReflectionProbes: 0 49 | billboardsFaceCameraPosition: 0 50 | vSyncCount: 0 51 | lodBias: .400000006 52 | maximumLODLevel: 0 53 | particleRaycastBudget: 16 54 | excludedTargetPlatforms: [] 55 | - serializedVersion: 2 56 | name: Simple 57 | pixelLightCount: 1 58 | shadows: 1 59 | shadowResolution: 0 60 | shadowProjection: 1 61 | shadowCascades: 1 62 | shadowDistance: 20 63 | shadowCascade2Split: .333333343 64 | shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} 65 | blendWeights: 2 66 | textureQuality: 0 67 | anisotropicTextures: 1 68 | antiAliasing: 0 69 | softParticles: 0 70 | softVegetation: 0 71 | realtimeReflectionProbes: 0 72 | billboardsFaceCameraPosition: 0 73 | vSyncCount: 0 74 | lodBias: .699999988 75 | maximumLODLevel: 0 76 | particleRaycastBudget: 64 77 | excludedTargetPlatforms: [] 78 | - serializedVersion: 2 79 | name: Good 80 | pixelLightCount: 2 81 | shadows: 2 82 | shadowResolution: 1 83 | shadowProjection: 1 84 | shadowCascades: 2 85 | shadowDistance: 40 86 | shadowCascade2Split: .333333343 87 | shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} 88 | blendWeights: 2 89 | textureQuality: 0 90 | anisotropicTextures: 1 91 | antiAliasing: 0 92 | softParticles: 0 93 | softVegetation: 1 94 | realtimeReflectionProbes: 1 95 | billboardsFaceCameraPosition: 1 96 | vSyncCount: 1 97 | lodBias: 1 98 | maximumLODLevel: 0 99 | particleRaycastBudget: 256 100 | excludedTargetPlatforms: [] 101 | - serializedVersion: 2 102 | name: Beautiful 103 | pixelLightCount: 3 104 | shadows: 2 105 | shadowResolution: 2 106 | shadowProjection: 1 107 | shadowCascades: 2 108 | shadowDistance: 70 109 | shadowCascade2Split: .333333343 110 | shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} 111 | blendWeights: 4 112 | textureQuality: 0 113 | anisotropicTextures: 2 114 | antiAliasing: 2 115 | softParticles: 1 116 | softVegetation: 1 117 | realtimeReflectionProbes: 1 118 | billboardsFaceCameraPosition: 1 119 | vSyncCount: 1 120 | lodBias: 1.5 121 | maximumLODLevel: 0 122 | particleRaycastBudget: 1024 123 | excludedTargetPlatforms: [] 124 | - serializedVersion: 2 125 | name: Fantastic 126 | pixelLightCount: 4 127 | shadows: 2 128 | shadowResolution: 2 129 | shadowProjection: 1 130 | shadowCascades: 4 131 | shadowDistance: 150 132 | shadowCascade2Split: .333333343 133 | shadowCascade4Split: {x: .0666666701, y: .200000003, z: .466666669} 134 | blendWeights: 4 135 | textureQuality: 0 136 | anisotropicTextures: 2 137 | antiAliasing: 2 138 | softParticles: 1 139 | softVegetation: 1 140 | realtimeReflectionProbes: 1 141 | billboardsFaceCameraPosition: 1 142 | vSyncCount: 1 143 | lodBias: 2 144 | maximumLODLevel: 0 145 | particleRaycastBudget: 4096 146 | excludedTargetPlatforms: [] 147 | m_PerPlatformDefaultQuality: 148 | Android: 2 149 | BlackBerry: 2 150 | FlashPlayer: 3 151 | GLES Emulation: 3 152 | PS3: 3 153 | PS4: 3 154 | PSM: 3 155 | PSP2: 3 156 | Samsung TV: 2 157 | Standalone: 3 158 | Tizen: 2 159 | WP8: 3 160 | Web: 3 161 | Windows Store Apps: 3 162 | XBOX360: 3 163 | XboxOne: 3 164 | iPhone: 2 165 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: .0199999996 7 | Maximum Allowed Timestep: .333333343 8 | m_TimeScale: 1 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # Unity 3D Android NFC Plugin `Unsupported Project :(` 3 | 4 | This project illustrates how to read a NFC tag from Unity 3D using an Android native plugin. 5 | 6 | ## Usage 7 | 8 | The plugin provides two different usage modes. A background scan mode, that catches any NFC tag (NDEF formatted) event fired during the scene execution, and an external reader mode (default mode) that opens a new screen to read the NFC tag. 9 | 10 | The plugin functionality is exposed via the /Assets/Plugins/AndroidNFCReader.cs methods: 11 | 12 | `void enableBackgroundScan()` configures the plugin to be used in background scan mode. 13 | 14 | `void disableBackgroundScan()` disables the background scan mode, enabling the external reader mode. 15 | 16 | `void ScanNFC(string objectName, string functionName)` configures the method to be fired after a NFC tag scan and fires the NFC scanning view if the background scan mode is disabled. These are the method params: 17 | 18 | `objectName` name of the Game Object that includes the `functionName` declaration. 19 | 20 | `functionName` method executed after a NFC event. 21 | 22 | This snippet illustrates the main logic included required to setup the plugin: 23 | 24 | ### Background Mode Example 25 | 26 | 27 | ```java 28 | 29 | public class Main : MonoBehaviour 30 | { 31 | void Start(){ 32 | AndroidNFCReader.enableBackgroundScan (); 33 | AndroidNFCReader.ScanNFC (gameObject.name, "OnFinishScan"); 34 | } 35 | 36 | ... 37 | 38 | // NFC callback 39 | void OnFinishScan(string result) { 40 | if (result == AndroidNFCReader.CANCELLED) { 41 | // The user has canceled the scan (back button) 42 | } else if (result == AndroidNFCReader.ERROR) { 43 | // There was an error reading the NFC tag 44 | } else if (result == AndroidNFCReader.NO_HARDWARE) { 45 | // No NFC hardware available 46 | } 47 | // result contains the NFC tag text content 48 | } 49 | ... 50 | } 51 | 52 | ``` 53 | 54 | ### External Reader Mode Example 55 | 56 | 57 | ```java 58 | 59 | public class Main : MonoBehaviour 60 | { 61 | 62 | void Foo () 63 | { 64 | AndroidNFCReader.ScanNFC (gameObject.name, "OnFinishScan"); 65 | } 66 | 67 | ... 68 | 69 | // NFC callback 70 | void OnFinishScan(string result) { 71 | if (result == AndroidNFCReader.CANCELLED) { 72 | // The user has canceled the scan (back button) 73 | } else if (result == AndroidNFCReader.ERROR) { 74 | // There was an error reading the NFC tag 75 | } else if (result == AndroidNFCReader.NO_HARDWARE) { 76 | // No NFC hardware available 77 | } 78 | // result contains the NFC tag text content 79 | } 80 | ... 81 | } 82 | ``` 83 | 84 | Please check the /Assets/Scripts/Main.cs script, it provides a full example of the plugin usage. 85 | 86 | 87 | ## Integrate the NFC Plugin in your projects 88 | 89 | 1. To use the NFC Plugin you have to copy the content under the /Assets/Plugins folder to your project /Assets/Plugins folder. 90 | 91 | 2. Then select the /Assets/Plugins/Android/AndroidScan(.jar) file and in the Plugin Inspector view check the Android platform. 92 | 93 | 3. Configure the scan model and call the `AndroidNFCReader.ScanNFC (gameObject.name, "OnFinishScan")` as described on the "Usage" section. 94 | 95 | ## Code Overview 96 | 97 | [/Assets/Scripts/Main.cs](https://github.com/twisprite-developers/unity-nfc-plugin/blob/master/Assets/Scripts/Main.cs) illustrates the usage of the plugin in both background and external reader mode. 98 | 99 | [/Assets/Plugins/AndroidNFCReader.cs](https://github.com/twisprite-developers/unity-nfc-plugin/blob/master/Assets/Plugins/AndroidNFCReader.cs) fires the native event to scan the NFC tag and retrieve the result. 100 | 101 | [/Assets/Pugings/Android](https://github.com/twisprite-developers/unity-nfc-plugin/tree/master/Assets/Plugins/Android) includes the /Assets/Plugins/Android/AndroidScan(.jar) native Java code and the Android manifest file required by the project. 102 | 103 | 104 | ## Customize the NFC Plugin 105 | 106 | If you want to generate your own native plugin, the [anroid-nfc-plugin](https://github.com/twisprite-developers/anroid-nfc-plugin) repository includes the Android Studio project to generate the AdroidScan.jar file inside the Plugins folder. 107 | 108 | ## License 109 | 110 | The source code of this project is available under the [MIT](https://opensource.org/licenses/MIT) license. 111 | 112 | The NFC image included in /Assets/Plugins/Android/res/drawable/nfc is available for free on the [Icons8 site](https://icons8.com/web-app/2305/nfc-sign). 113 | 114 | 115 | 116 | 117 | --------------------------------------------------------------------------------