├── pngquant-windows.cmd ├── C#-Unity ├── ProjectSettings │ ├── ProjectVersion.txt │ ├── ClusterInputManager.asset │ ├── NetworkManager.asset │ ├── EditorBuildSettings.asset │ ├── TimeManager.asset │ ├── AudioManager.asset │ ├── EditorSettings.asset │ ├── TagManager.asset │ ├── DynamicsManager.asset │ ├── UnityConnectSettings.asset │ ├── NavMeshAreas.asset │ ├── Physics2DSettings.asset │ ├── GraphicsSettings.asset │ ├── QualitySettings.asset │ ├── InputManager.asset │ └── ProjectSettings.asset └── Assets │ ├── Scene.unity.meta │ ├── Script.cs.meta │ ├── Script.cs │ └── Scene.unity ├── pngquant ├── .gitignore ├── pngquant.exe ├── AS3-AIR ├── NativeProcess.fla ├── NativeProcess-app.xml └── Main.as ├── png-to-compress └── Ducati_side_shadow.png ├── pngquant-osx └── README.md /pngquant-windows.cmd: -------------------------------------------------------------------------------- 1 | cd %~dp0 2 | pngquant -f --ext .png "%~1"/*.png -------------------------------------------------------------------------------- /C#-Unity/ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.5.0f3 2 | -------------------------------------------------------------------------------- /pngquant: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaVikingCode/PngQuantNativeProcess/HEAD/pngquant -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.swf 2 | *.csproj 3 | *.sln 4 | *.userprefs 5 | C#-Unity/Library/ 6 | C#-Unity/Temp/ -------------------------------------------------------------------------------- /pngquant.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaVikingCode/PngQuantNativeProcess/HEAD/pngquant.exe -------------------------------------------------------------------------------- /AS3-AIR/NativeProcess.fla: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaVikingCode/PngQuantNativeProcess/HEAD/AS3-AIR/NativeProcess.fla -------------------------------------------------------------------------------- /png-to-compress/Ducati_side_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaVikingCode/PngQuantNativeProcess/HEAD/png-to-compress/Ducati_side_shadow.png -------------------------------------------------------------------------------- /pngquant-osx: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | #!/usr/bin/env bash 3 | #$ -N $2 4 | 5 | DIR="$( cd "$( dirname "$0" )" && pwd )" 6 | 7 | (cd "$DIR" && ./pngquant -f --ext .png "$1"/*.png) -------------------------------------------------------------------------------- /C#-Unity/ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /C#-Unity/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 | -------------------------------------------------------------------------------- /C#-Unity/Assets/Scene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4fb5353a0d2a4b22a700d4efbe3e866 3 | timeCreated: 1485348493 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /C#-Unity/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/Scene.unity 10 | -------------------------------------------------------------------------------- /C#-Unity/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: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /C#-Unity/Assets/Script.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d3ba9cbabe4834258837a7a46743572c 3 | timeCreated: 1485348499 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /C#-Unity/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_SpatializerPlugin: 15 | m_DisableAudio: 0 16 | m_VirtualizeEffects: 1 17 | -------------------------------------------------------------------------------- /C#-Unity/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_DefaultBehaviorMode: 0 10 | m_SpritePackerMode: 2 11 | m_SpritePackerPaddingPower: 1 12 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 13 | m_ProjectGenerationRootNamespace: 14 | m_UserGeneratedProjectSuffix: 15 | -------------------------------------------------------------------------------- /C#-Unity/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 | -------------------------------------------------------------------------------- /C#-Unity/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 | serializedVersion: 3 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_EnablePCM: 1 18 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 19 | -------------------------------------------------------------------------------- /C#-Unity/ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | CrashReportingSettings: 11 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 12 | m_Enabled: 0 13 | m_CaptureEditorExceptions: 1 14 | UnityPurchasingSettings: 15 | m_Enabled: 0 16 | m_TestMode: 0 17 | UnityAnalyticsSettings: 18 | m_Enabled: 0 19 | m_InitializeOnStartup: 1 20 | m_TestMode: 0 21 | m_TestEventUrl: 22 | m_TestConfigUrl: 23 | UnityAdsSettings: 24 | m_Enabled: 0 25 | m_InitializeOnStartup: 1 26 | m_TestMode: 0 27 | m_EnabledPlatforms: 4294967295 28 | m_IosGameId: 29 | m_AndroidGameId: 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PngQuantNativeProcess 2 | 3 | [pngquant](https://pngquant.org/) is a command-line utility and a library for lossy compression of PNG images. The conversion reduces file sizes significantly (often as much as 70%) and preserves full alpha transparency. 4 | 5 | With this repository, we offer examples running pngquant as a native process from C#, Unity and Adobe AIR. 6 | 7 | This repository comes with two command lines script: 8 | - `pngquant-windows.cmd` a batch file for Windows OS executing `pngquant.exe`. 9 | - `pngquant-osx` a shell script for Mac OS X executing `pngquant`. 10 | 11 | To start pngquant process, you've to execute the correct command line script (corresponding to your OS) and give as argument the path to the folder where the current pngs will be compressed and **overwrote**. Have a look on the *examples*. 12 | 13 | Don't forget to ship pngquant and the command lines script with your application: 14 | - with Adobe AIR, put them in the *Package Contents*. 15 | - with Unity, add them inside the *StreamingAssets* folder. 16 | 17 | *Warning: Unity API Compatibility Level must be .NET 2.0 **without Subset**, otherwise Process events won't work in final build!* 18 | -------------------------------------------------------------------------------- /C#-Unity/Assets/Script.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | public class Script : MonoBehaviour { 5 | 6 | void Start () { 7 | 8 | System.Diagnostics.Process process = new System.Diagnostics.Process(); 9 | 10 | process.EnableRaisingEvents = true; 11 | process.Exited += (sender, e) => { Debug.Log("process completed"); }; 12 | 13 | string exec = ""; 14 | if (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.WindowsPlayer) 15 | exec = "pngquant-windows.cmd"; 16 | else if (Application.platform == RuntimePlatform.OSXEditor || Application.platform == RuntimePlatform.OSXPlayer) 17 | exec = "pngquant-osx"; 18 | else 19 | throw new Exception("Platform not supported"); 20 | 21 | process.StartInfo.FileName = Application.dataPath + "/../../" + exec; 22 | process.StartInfo.Arguments = Application.dataPath + "/../../png-to-compress"; 23 | 24 | // if your path have blank spaces use: 25 | //process.StartInfo.Arguments = "\"" + Application.dataPath + "/../../png compress\""; 26 | 27 | process.StartInfo.CreateNoWindow = true; 28 | process.StartInfo.UseShellExecute = false; 29 | 30 | process.Start(); 31 | } 32 | } -------------------------------------------------------------------------------- /C#-Unity/ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 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 | -------------------------------------------------------------------------------- /C#-Unity/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 | serializedVersion: 2 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_MinPenetrationForPenalty: 0.01 17 | m_BaumgarteScale: 0.2 18 | m_BaumgarteTimeOfImpactScale: 0.75 19 | m_TimeToSleep: 0.5 20 | m_LinearSleepTolerance: 0.01 21 | m_AngularSleepTolerance: 2 22 | m_QueriesHitTriggers: 1 23 | m_QueriesStartInColliders: 1 24 | m_ChangeStopsCallbacks: 0 25 | m_AlwaysShowColliders: 0 26 | m_ShowColliderSleep: 1 27 | m_ShowColliderContacts: 0 28 | m_ShowColliderAABB: 0 29 | m_ContactArrowScale: 0.2 30 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 31 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 32 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 33 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 34 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 35 | -------------------------------------------------------------------------------- /AS3-AIR/NativeProcess-app.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | NativeProcess 4 | 1.0 5 | NativeProcess 6 | 7 | 14 | NativeProcess 15 | 22 | 23 | 24 | NativeProcess.swf 25 | standard 26 | false 27 | true 28 | false 29 | false 30 | portrait 31 | auto 32 | 33 | false 34 | false 35 | 36 | extendedDesktop 37 | -------------------------------------------------------------------------------- /C#-Unity/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: 9 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 39 | m_PreloadedShaders: [] 40 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 41 | type: 0} 42 | m_TierSettings_Tier1: 43 | renderingPath: 1 44 | useCascadedShadowMaps: 1 45 | m_TierSettings_Tier2: 46 | renderingPath: 1 47 | useCascadedShadowMaps: 1 48 | m_TierSettings_Tier3: 49 | renderingPath: 1 50 | useCascadedShadowMaps: 1 51 | m_DefaultRenderingPath: 1 52 | m_DefaultMobileRenderingPath: 1 53 | m_TierSettings: [] 54 | m_LightmapStripping: 0 55 | m_FogStripping: 0 56 | m_LightmapKeepPlain: 1 57 | m_LightmapKeepDirCombined: 1 58 | m_LightmapKeepDirSeparate: 1 59 | m_LightmapKeepDynamicPlain: 1 60 | m_LightmapKeepDynamicDirCombined: 1 61 | m_LightmapKeepDynamicDirSeparate: 1 62 | m_FogKeepLinear: 1 63 | m_FogKeepExp: 1 64 | m_FogKeepExp2: 1 65 | -------------------------------------------------------------------------------- /AS3-AIR/Main.as: -------------------------------------------------------------------------------- 1 | package { 2 | 3 | import flash.desktop.NativeProcess; 4 | import flash.desktop.NativeProcessStartupInfo; 5 | import flash.display.Sprite; 6 | import flash.events.IOErrorEvent; 7 | import flash.events.NativeProcessExitEvent; 8 | import flash.events.ProgressEvent; 9 | import flash.filesystem.File; 10 | import flash.system.Capabilities; 11 | 12 | public class Main extends Sprite { 13 | 14 | private var process:NativeProcess = new NativeProcess(); 15 | 16 | public function Main() { 17 | 18 | var startupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo(); 19 | var file:File = File.applicationDirectory; 20 | 21 | var exec:String = ""; 22 | if (Capabilities.os.indexOf("Windows") >= 0) 23 | exec = "pngquant-windows.cmd"; 24 | else if (Capabilities.os.indexOf("Mac") >= 0) 25 | exec = "pngquant-osx"; 26 | else 27 | throw new Error("doesn't work on " + Capabilities.os + " operating system"); 28 | 29 | file.nativePath = file.nativePath + "/../" + exec; 30 | startupInfo.executable = file; 31 | 32 | var processArgs:Vector. = new Vector.(); 33 | processArgs[0] = File.applicationDirectory.nativePath + "/../png-to-compress"; 34 | startupInfo.arguments = processArgs; 35 | 36 | process.start(startupInfo); 37 | 38 | // if your path have blank spaces, can't success to make it working with Windows. See: 39 | // https://forums.adobe.com/thread/861303 40 | // http://stackoverflow.com/questions/6228515/adobe-air-nativeprocess-fails-with-spaces-in-arguments 41 | 42 | process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, onOutputData); 43 | process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA, onErrorData); 44 | process.addEventListener(NativeProcessExitEvent.EXIT, onExit); 45 | process.addEventListener(IOErrorEvent.STANDARD_OUTPUT_IO_ERROR, onIOError); 46 | process.addEventListener(IOErrorEvent.STANDARD_ERROR_IO_ERROR, onIOError); 47 | } 48 | 49 | private function onOutputData(event:ProgressEvent):void { 50 | trace("Got: ", process.standardOutput.readUTFBytes(process.standardOutput.bytesAvailable)); 51 | } 52 | 53 | private function onErrorData(event:ProgressEvent):void { 54 | trace("ERROR -", process.standardError.readUTFBytes(process.standardError.bytesAvailable)); 55 | } 56 | 57 | private function onExit(event:NativeProcessExitEvent):void { 58 | trace("Process exited with ", event.exitCode); 59 | } 60 | 61 | private function onIOError(event:IOErrorEvent):void { 62 | trace(event.toString()); 63 | } 64 | } 65 | } -------------------------------------------------------------------------------- /C#-Unity/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: 5 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 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | blendWeights: 1 21 | textureQuality: 1 22 | anisotropicTextures: 0 23 | antiAliasing: 0 24 | softParticles: 0 25 | softVegetation: 0 26 | realtimeReflectionProbes: 0 27 | billboardsFaceCameraPosition: 0 28 | vSyncCount: 0 29 | lodBias: 0.3 30 | maximumLODLevel: 0 31 | particleRaycastBudget: 4 32 | asyncUploadTimeSlice: 2 33 | asyncUploadBufferSize: 4 34 | excludedTargetPlatforms: [] 35 | - serializedVersion: 2 36 | name: Fast 37 | pixelLightCount: 0 38 | shadows: 0 39 | shadowResolution: 0 40 | shadowProjection: 1 41 | shadowCascades: 1 42 | shadowDistance: 20 43 | shadowNearPlaneOffset: 3 44 | shadowCascade2Split: 0.33333334 45 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 46 | blendWeights: 2 47 | textureQuality: 0 48 | anisotropicTextures: 0 49 | antiAliasing: 0 50 | softParticles: 0 51 | softVegetation: 0 52 | realtimeReflectionProbes: 0 53 | billboardsFaceCameraPosition: 0 54 | vSyncCount: 0 55 | lodBias: 0.4 56 | maximumLODLevel: 0 57 | particleRaycastBudget: 16 58 | asyncUploadTimeSlice: 2 59 | asyncUploadBufferSize: 4 60 | excludedTargetPlatforms: [] 61 | - serializedVersion: 2 62 | name: Simple 63 | pixelLightCount: 1 64 | shadows: 1 65 | shadowResolution: 0 66 | shadowProjection: 1 67 | shadowCascades: 1 68 | shadowDistance: 20 69 | shadowNearPlaneOffset: 3 70 | shadowCascade2Split: 0.33333334 71 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 72 | blendWeights: 2 73 | textureQuality: 0 74 | anisotropicTextures: 1 75 | antiAliasing: 0 76 | softParticles: 0 77 | softVegetation: 0 78 | realtimeReflectionProbes: 0 79 | billboardsFaceCameraPosition: 0 80 | vSyncCount: 1 81 | lodBias: 0.7 82 | maximumLODLevel: 0 83 | particleRaycastBudget: 64 84 | asyncUploadTimeSlice: 2 85 | asyncUploadBufferSize: 4 86 | excludedTargetPlatforms: [] 87 | - serializedVersion: 2 88 | name: Good 89 | pixelLightCount: 2 90 | shadows: 2 91 | shadowResolution: 1 92 | shadowProjection: 1 93 | shadowCascades: 2 94 | shadowDistance: 40 95 | shadowNearPlaneOffset: 3 96 | shadowCascade2Split: 0.33333334 97 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 98 | blendWeights: 2 99 | textureQuality: 0 100 | anisotropicTextures: 1 101 | antiAliasing: 0 102 | softParticles: 0 103 | softVegetation: 1 104 | realtimeReflectionProbes: 1 105 | billboardsFaceCameraPosition: 1 106 | vSyncCount: 1 107 | lodBias: 1 108 | maximumLODLevel: 0 109 | particleRaycastBudget: 256 110 | asyncUploadTimeSlice: 2 111 | asyncUploadBufferSize: 4 112 | excludedTargetPlatforms: [] 113 | - serializedVersion: 2 114 | name: Beautiful 115 | pixelLightCount: 3 116 | shadows: 2 117 | shadowResolution: 2 118 | shadowProjection: 1 119 | shadowCascades: 2 120 | shadowDistance: 70 121 | shadowNearPlaneOffset: 3 122 | shadowCascade2Split: 0.33333334 123 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 124 | blendWeights: 4 125 | textureQuality: 0 126 | anisotropicTextures: 2 127 | antiAliasing: 2 128 | softParticles: 1 129 | softVegetation: 1 130 | realtimeReflectionProbes: 1 131 | billboardsFaceCameraPosition: 1 132 | vSyncCount: 1 133 | lodBias: 1.5 134 | maximumLODLevel: 0 135 | particleRaycastBudget: 1024 136 | asyncUploadTimeSlice: 2 137 | asyncUploadBufferSize: 4 138 | excludedTargetPlatforms: [] 139 | - serializedVersion: 2 140 | name: Fantastic 141 | pixelLightCount: 4 142 | shadows: 2 143 | shadowResolution: 2 144 | shadowProjection: 1 145 | shadowCascades: 4 146 | shadowDistance: 150 147 | shadowNearPlaneOffset: 3 148 | shadowCascade2Split: 0.33333334 149 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 150 | blendWeights: 4 151 | textureQuality: 0 152 | anisotropicTextures: 2 153 | antiAliasing: 2 154 | softParticles: 1 155 | softVegetation: 1 156 | realtimeReflectionProbes: 1 157 | billboardsFaceCameraPosition: 1 158 | vSyncCount: 1 159 | lodBias: 2 160 | maximumLODLevel: 0 161 | particleRaycastBudget: 4096 162 | asyncUploadTimeSlice: 2 163 | asyncUploadBufferSize: 4 164 | excludedTargetPlatforms: [] 165 | m_PerPlatformDefaultQuality: 166 | Android: 2 167 | Nintendo 3DS: 5 168 | PS4: 5 169 | PSM: 5 170 | PSP2: 2 171 | Samsung TV: 2 172 | Standalone: 5 173 | Tizen: 2 174 | Web: 5 175 | WebGL: 3 176 | WiiU: 5 177 | Windows Store Apps: 5 178 | XboxOne: 5 179 | iPhone: 2 180 | tvOS: 5 181 | -------------------------------------------------------------------------------- /C#-Unity/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: 0.001 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: 0.001 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: 0.001 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: 0.001 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 shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 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: 0.001 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: 0.1 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: 0.1 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: 0.1 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: 0.19 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: 0.19 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: 0.001 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: 0.001 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: 0.001 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: 0.001 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: 0.001 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: 0.001 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: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /C#-Unity/Assets/Scene.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 7 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 29 | m_HaloStrength: 0.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 | m_IndirectSpecularColor: {r: 0.44657844, g: 0.49641222, b: 0.57481694, a: 1} 41 | --- !u!157 &3 42 | LightmapSettings: 43 | m_ObjectHideFlags: 0 44 | serializedVersion: 7 45 | m_GIWorkflowMode: 0 46 | m_GISettings: 47 | serializedVersion: 2 48 | m_BounceScale: 1 49 | m_IndirectOutputScale: 1 50 | m_AlbedoBoost: 1 51 | m_TemporalCoherenceThreshold: 1 52 | m_EnvironmentLightingMode: 0 53 | m_EnableBakedLightmaps: 1 54 | m_EnableRealtimeLightmaps: 1 55 | m_LightmapEditorSettings: 56 | serializedVersion: 4 57 | m_Resolution: 2 58 | m_BakeResolution: 40 59 | m_TextureWidth: 1024 60 | m_TextureHeight: 1024 61 | m_AO: 0 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_Padding: 2 66 | m_LightmapParameters: {fileID: 0} 67 | m_LightmapsBakeMode: 1 68 | m_TextureCompression: 1 69 | m_DirectLightInLightProbes: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_LightingDataAsset: {fileID: 0} 75 | m_RuntimeCPUUsage: 25 76 | --- !u!196 &4 77 | NavMeshSettings: 78 | serializedVersion: 2 79 | m_ObjectHideFlags: 0 80 | m_BuildSettings: 81 | serializedVersion: 2 82 | agentTypeID: 0 83 | agentRadius: 0.5 84 | agentHeight: 2 85 | agentSlope: 45 86 | agentClimb: 0.4 87 | ledgeDropHeight: 0 88 | maxJumpAcrossDistance: 0 89 | minRegionArea: 2 90 | manualCellSize: 0 91 | cellSize: 0.16666667 92 | accuratePlacement: 0 93 | m_NavMeshData: {fileID: 0} 94 | --- !u!1 &966259711 95 | GameObject: 96 | m_ObjectHideFlags: 0 97 | m_PrefabParentObject: {fileID: 0} 98 | m_PrefabInternal: {fileID: 0} 99 | serializedVersion: 5 100 | m_Component: 101 | - component: {fileID: 966259716} 102 | - component: {fileID: 966259715} 103 | - component: {fileID: 966259714} 104 | - component: {fileID: 966259713} 105 | - component: {fileID: 966259712} 106 | m_Layer: 0 107 | m_Name: Main Camera 108 | m_TagString: MainCamera 109 | m_Icon: {fileID: 0} 110 | m_NavMeshLayer: 0 111 | m_StaticEditorFlags: 0 112 | m_IsActive: 1 113 | --- !u!81 &966259712 114 | AudioListener: 115 | m_ObjectHideFlags: 0 116 | m_PrefabParentObject: {fileID: 0} 117 | m_PrefabInternal: {fileID: 0} 118 | m_GameObject: {fileID: 966259711} 119 | m_Enabled: 1 120 | --- !u!124 &966259713 121 | Behaviour: 122 | m_ObjectHideFlags: 0 123 | m_PrefabParentObject: {fileID: 0} 124 | m_PrefabInternal: {fileID: 0} 125 | m_GameObject: {fileID: 966259711} 126 | m_Enabled: 1 127 | --- !u!92 &966259714 128 | Behaviour: 129 | m_ObjectHideFlags: 0 130 | m_PrefabParentObject: {fileID: 0} 131 | m_PrefabInternal: {fileID: 0} 132 | m_GameObject: {fileID: 966259711} 133 | m_Enabled: 1 134 | --- !u!20 &966259715 135 | Camera: 136 | m_ObjectHideFlags: 0 137 | m_PrefabParentObject: {fileID: 0} 138 | m_PrefabInternal: {fileID: 0} 139 | m_GameObject: {fileID: 966259711} 140 | m_Enabled: 1 141 | serializedVersion: 2 142 | m_ClearFlags: 1 143 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 144 | m_NormalizedViewPortRect: 145 | serializedVersion: 2 146 | x: 0 147 | y: 0 148 | width: 1 149 | height: 1 150 | near clip plane: 0.3 151 | far clip plane: 1000 152 | field of view: 60 153 | orthographic: 0 154 | orthographic size: 5 155 | m_Depth: -1 156 | m_CullingMask: 157 | serializedVersion: 2 158 | m_Bits: 4294967295 159 | m_RenderingPath: -1 160 | m_TargetTexture: {fileID: 0} 161 | m_TargetDisplay: 0 162 | m_TargetEye: 3 163 | m_HDR: 0 164 | m_OcclusionCulling: 1 165 | m_StereoConvergence: 10 166 | m_StereoSeparation: 0.022 167 | m_StereoMirrorMode: 0 168 | --- !u!4 &966259716 169 | Transform: 170 | m_ObjectHideFlags: 0 171 | m_PrefabParentObject: {fileID: 0} 172 | m_PrefabInternal: {fileID: 0} 173 | m_GameObject: {fileID: 966259711} 174 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 175 | m_LocalPosition: {x: 0, y: 1, z: -10} 176 | m_LocalScale: {x: 1, y: 1, z: 1} 177 | m_Children: [] 178 | m_Father: {fileID: 0} 179 | m_RootOrder: 0 180 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 181 | --- !u!1 &1025341676 182 | GameObject: 183 | m_ObjectHideFlags: 0 184 | m_PrefabParentObject: {fileID: 0} 185 | m_PrefabInternal: {fileID: 0} 186 | serializedVersion: 5 187 | m_Component: 188 | - component: {fileID: 1025341678} 189 | - component: {fileID: 1025341677} 190 | m_Layer: 0 191 | m_Name: Directional Light 192 | m_TagString: Untagged 193 | m_Icon: {fileID: 0} 194 | m_NavMeshLayer: 0 195 | m_StaticEditorFlags: 0 196 | m_IsActive: 1 197 | --- !u!108 &1025341677 198 | Light: 199 | m_ObjectHideFlags: 0 200 | m_PrefabParentObject: {fileID: 0} 201 | m_PrefabInternal: {fileID: 0} 202 | m_GameObject: {fileID: 1025341676} 203 | m_Enabled: 1 204 | serializedVersion: 7 205 | m_Type: 1 206 | m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} 207 | m_Intensity: 1 208 | m_Range: 10 209 | m_SpotAngle: 30 210 | m_CookieSize: 10 211 | m_Shadows: 212 | m_Type: 2 213 | m_Resolution: -1 214 | m_CustomResolution: -1 215 | m_Strength: 1 216 | m_Bias: 0.05 217 | m_NormalBias: 0.4 218 | m_NearPlane: 0.2 219 | m_Cookie: {fileID: 0} 220 | m_DrawHalo: 0 221 | m_Flare: {fileID: 0} 222 | m_RenderMode: 0 223 | m_CullingMask: 224 | serializedVersion: 2 225 | m_Bits: 4294967295 226 | m_Lightmapping: 4 227 | m_AreaSize: {x: 1, y: 1} 228 | m_BounceIntensity: 1 229 | m_ShadowRadius: 0 230 | m_ShadowAngle: 0 231 | --- !u!4 &1025341678 232 | Transform: 233 | m_ObjectHideFlags: 0 234 | m_PrefabParentObject: {fileID: 0} 235 | m_PrefabInternal: {fileID: 0} 236 | m_GameObject: {fileID: 1025341676} 237 | m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} 238 | m_LocalPosition: {x: 0, y: 3, z: 0} 239 | m_LocalScale: {x: 1, y: 1, z: 1} 240 | m_Children: [] 241 | m_Father: {fileID: 0} 242 | m_RootOrder: 1 243 | m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} 244 | --- !u!1 &2117654014 245 | GameObject: 246 | m_ObjectHideFlags: 0 247 | m_PrefabParentObject: {fileID: 0} 248 | m_PrefabInternal: {fileID: 0} 249 | serializedVersion: 5 250 | m_Component: 251 | - component: {fileID: 2117654016} 252 | - component: {fileID: 2117654015} 253 | m_Layer: 0 254 | m_Name: Script 255 | m_TagString: Untagged 256 | m_Icon: {fileID: 0} 257 | m_NavMeshLayer: 0 258 | m_StaticEditorFlags: 0 259 | m_IsActive: 1 260 | --- !u!114 &2117654015 261 | MonoBehaviour: 262 | m_ObjectHideFlags: 0 263 | m_PrefabParentObject: {fileID: 0} 264 | m_PrefabInternal: {fileID: 0} 265 | m_GameObject: {fileID: 2117654014} 266 | m_Enabled: 1 267 | m_EditorHideFlags: 0 268 | m_Script: {fileID: 11500000, guid: d3ba9cbabe4834258837a7a46743572c, type: 3} 269 | m_Name: 270 | m_EditorClassIdentifier: 271 | --- !u!4 &2117654016 272 | Transform: 273 | m_ObjectHideFlags: 0 274 | m_PrefabParentObject: {fileID: 0} 275 | m_PrefabInternal: {fileID: 0} 276 | m_GameObject: {fileID: 2117654014} 277 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 278 | m_LocalPosition: {x: 0, y: 0, z: 0} 279 | m_LocalScale: {x: 1, y: 1, z: 1} 280 | m_Children: [] 281 | m_Father: {fileID: 0} 282 | m_RootOrder: 2 283 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 284 | -------------------------------------------------------------------------------- /C#-Unity/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: 10 7 | productGUID: b767fa82a8aba4d03a7f8db397d0b091 8 | AndroidProfiler: 0 9 | defaultScreenOrientation: 4 10 | targetDevice: 2 11 | useOnDemandResources: 0 12 | accelerometerFrequency: 60 13 | companyName: Da Viking Code 14 | productName: PngQuantNativeProcess 15 | defaultCursor: {fileID: 0} 16 | cursorHotspot: {x: 0, y: 0} 17 | m_SplashScreenBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21176471, a: 1} 18 | m_ShowUnitySplashScreen: 1 19 | m_ShowUnitySplashLogo: 1 20 | m_SplashScreenOverlayOpacity: 1 21 | m_SplashScreenAnimation: 1 22 | m_SplashScreenLogoStyle: 1 23 | m_SplashScreenDrawMode: 0 24 | m_SplashScreenBackgroundAnimationZoom: 1 25 | m_SplashScreenLogoAnimationZoom: 1 26 | m_SplashScreenBackgroundLandscapeAspect: 1 27 | m_SplashScreenBackgroundPortraitAspect: 1 28 | m_SplashScreenBackgroundLandscapeUvs: 29 | serializedVersion: 2 30 | x: 0 31 | y: 0 32 | width: 1 33 | height: 1 34 | m_SplashScreenBackgroundPortraitUvs: 35 | serializedVersion: 2 36 | x: 0 37 | y: 0 38 | width: 1 39 | height: 1 40 | m_SplashScreenLogos: [] 41 | m_SplashScreenBackgroundLandscape: {fileID: 0} 42 | m_SplashScreenBackgroundPortrait: {fileID: 0} 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | m_MobileMTRendering: 0 53 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 54 | iosShowActivityIndicatorOnLoading: -1 55 | androidShowActivityIndicatorOnLoading: -1 56 | tizenShowActivityIndicatorOnLoading: -1 57 | iosAppInBackgroundBehavior: 0 58 | displayResolutionDialog: 1 59 | iosAllowHTTPDownload: 1 60 | allowedAutorotateToPortrait: 1 61 | allowedAutorotateToPortraitUpsideDown: 1 62 | allowedAutorotateToLandscapeRight: 1 63 | allowedAutorotateToLandscapeLeft: 1 64 | useOSAutorotation: 1 65 | use32BitDisplayBuffer: 1 66 | disableDepthAndStencilBuffers: 0 67 | defaultIsFullScreen: 1 68 | defaultIsNativeResolution: 1 69 | runInBackground: 0 70 | captureSingleScreen: 0 71 | muteOtherAudioSources: 0 72 | Prepare IOS For Recording: 0 73 | submitAnalytics: 1 74 | usePlayerLog: 1 75 | bakeCollisionMeshes: 0 76 | forceSingleInstance: 0 77 | resizableWindow: 0 78 | useMacAppStoreValidation: 0 79 | gpuSkinning: 0 80 | graphicsJobs: 0 81 | xboxPIXTextureCapture: 0 82 | xboxEnableAvatar: 0 83 | xboxEnableKinect: 0 84 | xboxEnableKinectAutoTracking: 0 85 | xboxEnableFitness: 0 86 | visibleInBackground: 0 87 | allowFullscreenSwitch: 1 88 | macFullscreenMode: 2 89 | d3d9FullscreenMode: 1 90 | d3d11FullscreenMode: 1 91 | xboxSpeechDB: 0 92 | xboxEnableHeadOrientation: 0 93 | xboxEnableGuest: 0 94 | xboxEnablePIXSampling: 0 95 | n3dsDisableStereoscopicView: 0 96 | n3dsEnableSharedListOpt: 1 97 | n3dsEnableVSync: 0 98 | uiUse16BitDepthBuffer: 0 99 | ignoreAlphaClear: 0 100 | xboxOneResolution: 0 101 | xboxOneMonoLoggingLevel: 0 102 | xboxOneLoggingLevel: 1 103 | videoMemoryForVertexBuffers: 0 104 | psp2PowerMode: 0 105 | psp2AcquireBGM: 1 106 | wiiUTVResolution: 0 107 | wiiUGamePadMSAA: 1 108 | wiiUSupportsNunchuk: 0 109 | wiiUSupportsClassicController: 0 110 | wiiUSupportsBalanceBoard: 0 111 | wiiUSupportsMotionPlus: 0 112 | wiiUSupportsProController: 0 113 | wiiUAllowScreenCapture: 1 114 | wiiUControllerCount: 0 115 | m_SupportedAspectRatios: 116 | 4:3: 1 117 | 5:4: 1 118 | 16:10: 1 119 | 16:9: 1 120 | Others: 1 121 | bundleIdentifier: com.davikingcode.PngQuantNativeProcess 122 | bundleVersion: 1.0 123 | preloadedAssets: [] 124 | metroInputSource: 0 125 | m_HolographicPauseOnTrackingLoss: 1 126 | xboxOneDisableKinectGpuReservation: 0 127 | protectGraphicsMemory: 0 128 | AndroidBundleVersionCode: 1 129 | AndroidMinSdkVersion: 9 130 | AndroidPreferredInstallLocation: 1 131 | aotOptions: 132 | apiCompatibilityLevel: 2 133 | stripEngineCode: 1 134 | iPhoneStrippingLevel: 0 135 | iPhoneScriptCallOptimization: 0 136 | iPhoneBuildNumber: 0 137 | ForceInternetPermission: 0 138 | ForceSDCardPermission: 0 139 | CreateWallpaper: 0 140 | APKExpansionFiles: 0 141 | preloadShaders: 0 142 | StripUnusedMeshComponents: 0 143 | VertexChannelCompressionMask: 144 | serializedVersion: 2 145 | m_Bits: 238 146 | iPhoneSdkVersion: 988 147 | iOSTargetOSVersionString: 7.0 148 | tvOSSdkVersion: 0 149 | tvOSRequireExtendedGameController: 0 150 | tvOSTargetOSVersionString: 151 | uIPrerenderedIcon: 0 152 | uIRequiresPersistentWiFi: 0 153 | uIRequiresFullScreen: 1 154 | uIStatusBarHidden: 1 155 | uIExitOnSuspend: 0 156 | uIStatusBarStyle: 0 157 | iPhoneSplashScreen: {fileID: 0} 158 | iPhoneHighResSplashScreen: {fileID: 0} 159 | iPhoneTallHighResSplashScreen: {fileID: 0} 160 | iPhone47inSplashScreen: {fileID: 0} 161 | iPhone55inPortraitSplashScreen: {fileID: 0} 162 | iPhone55inLandscapeSplashScreen: {fileID: 0} 163 | iPadPortraitSplashScreen: {fileID: 0} 164 | iPadHighResPortraitSplashScreen: {fileID: 0} 165 | iPadLandscapeSplashScreen: {fileID: 0} 166 | iPadHighResLandscapeSplashScreen: {fileID: 0} 167 | appleTVSplashScreen: {fileID: 0} 168 | tvOSSmallIconLayers: [] 169 | tvOSLargeIconLayers: [] 170 | tvOSTopShelfImageLayers: [] 171 | tvOSTopShelfImageWideLayers: [] 172 | iOSLaunchScreenType: 0 173 | iOSLaunchScreenPortrait: {fileID: 0} 174 | iOSLaunchScreenLandscape: {fileID: 0} 175 | iOSLaunchScreenBackgroundColor: 176 | serializedVersion: 2 177 | rgba: 0 178 | iOSLaunchScreenFillPct: 100 179 | iOSLaunchScreenSize: 100 180 | iOSLaunchScreenCustomXibPath: 181 | iOSLaunchScreeniPadType: 0 182 | iOSLaunchScreeniPadImage: {fileID: 0} 183 | iOSLaunchScreeniPadBackgroundColor: 184 | serializedVersion: 2 185 | rgba: 0 186 | iOSLaunchScreeniPadFillPct: 100 187 | iOSLaunchScreeniPadSize: 100 188 | iOSLaunchScreeniPadCustomXibPath: 189 | iOSDeviceRequirements: [] 190 | iOSURLSchemes: [] 191 | iOSBackgroundModes: 0 192 | iOSMetalForceHardShadows: 0 193 | appleDeveloperTeamID: 194 | AndroidTargetDevice: 0 195 | AndroidSplashScreenScale: 0 196 | androidSplashScreen: {fileID: 0} 197 | AndroidKeystoreName: 198 | AndroidKeyaliasName: 199 | AndroidTVCompatibility: 1 200 | AndroidIsGame: 1 201 | androidEnableBanner: 1 202 | m_AndroidBanners: 203 | - width: 320 204 | height: 180 205 | banner: {fileID: 0} 206 | androidGamepadSupportLevel: 0 207 | resolutionDialogBanner: {fileID: 0} 208 | m_BuildTargetIcons: [] 209 | m_BuildTargetBatching: [] 210 | m_BuildTargetGraphicsAPIs: [] 211 | m_BuildTargetVRSettings: [] 212 | openGLRequireES31: 0 213 | openGLRequireES31AEP: 0 214 | webPlayerTemplate: APPLICATION:Default 215 | m_TemplateCustomTags: {} 216 | wiiUTitleID: 0005000011000000 217 | wiiUGroupID: 00010000 218 | wiiUCommonSaveSize: 4096 219 | wiiUAccountSaveSize: 2048 220 | wiiUOlvAccessKey: 0 221 | wiiUTinCode: 0 222 | wiiUJoinGameId: 0 223 | wiiUJoinGameModeMask: 0000000000000000 224 | wiiUCommonBossSize: 0 225 | wiiUAccountBossSize: 0 226 | wiiUAddOnUniqueIDs: [] 227 | wiiUMainThreadStackSize: 3072 228 | wiiULoaderThreadStackSize: 1024 229 | wiiUSystemHeapSize: 128 230 | wiiUTVStartupScreen: {fileID: 0} 231 | wiiUGamePadStartupScreen: {fileID: 0} 232 | wiiUDrcBufferDisabled: 0 233 | wiiUProfilerLibPath: 234 | actionOnDotNetUnhandledException: 1 235 | enableInternalProfiler: 0 236 | logObjCUncaughtExceptions: 1 237 | enableCrashReportAPI: 0 238 | cameraUsageDescription: 239 | locationUsageDescription: 240 | microphoneUsageDescription: 241 | XboxTitleId: 242 | XboxImageXexPath: 243 | XboxSpaPath: 244 | XboxGenerateSpa: 0 245 | XboxDeployKinectResources: 0 246 | XboxSplashScreen: {fileID: 0} 247 | xboxEnableSpeech: 0 248 | xboxAdditionalTitleMemorySize: 0 249 | xboxDeployKinectHeadOrientation: 0 250 | xboxDeployKinectHeadPosition: 0 251 | ps4NPAgeRating: 12 252 | ps4NPTitleSecret: 253 | ps4NPTrophyPackPath: 254 | ps4ParentalLevel: 1 255 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 256 | ps4Category: 0 257 | ps4MasterVersion: 01.00 258 | ps4AppVersion: 01.00 259 | ps4AppType: 0 260 | ps4ParamSfxPath: 261 | ps4VideoOutPixelFormat: 0 262 | ps4VideoOutInitialWidth: 1920 263 | ps4VideoOutReprojectionRate: 120 264 | ps4PronunciationXMLPath: 265 | ps4PronunciationSIGPath: 266 | ps4BackgroundImagePath: 267 | ps4StartupImagePath: 268 | ps4SaveDataImagePath: 269 | ps4SdkOverride: 270 | ps4BGMPath: 271 | ps4ShareFilePath: 272 | ps4ShareOverlayImagePath: 273 | ps4PrivacyGuardImagePath: 274 | ps4NPtitleDatPath: 275 | ps4RemotePlayKeyAssignment: -1 276 | ps4RemotePlayKeyMappingDir: 277 | ps4PlayTogetherPlayerCount: 0 278 | ps4EnterButtonAssignment: 1 279 | ps4ApplicationParam1: 0 280 | ps4ApplicationParam2: 0 281 | ps4ApplicationParam3: 0 282 | ps4ApplicationParam4: 0 283 | ps4DownloadDataSize: 0 284 | ps4GarlicHeapSize: 2048 285 | ps4Passcode: 5PN2qmWqBlQ9wQj99nsQzldVI5ZuGXbE 286 | ps4UseDebugIl2cppLibs: 0 287 | ps4pnSessions: 1 288 | ps4pnPresence: 1 289 | ps4pnFriends: 1 290 | ps4pnGameCustomData: 1 291 | playerPrefsSupport: 0 292 | restrictedAudioUsageRights: 0 293 | ps4UseResolutionFallback: 0 294 | ps4ReprojectionSupport: 0 295 | ps4UseAudio3dBackend: 0 296 | ps4SocialScreenEnabled: 0 297 | ps4ScriptOptimizationLevel: 3 298 | ps4Audio3dVirtualSpeakerCount: 14 299 | ps4attribCpuUsage: 0 300 | ps4PatchPkgPath: 301 | ps4PatchLatestPkgPath: 302 | ps4PatchChangeinfoPath: 303 | ps4PatchDayOne: 0 304 | ps4attribUserManagement: 0 305 | ps4attribMoveSupport: 0 306 | ps4attrib3DSupport: 0 307 | ps4attribShareSupport: 0 308 | ps4attribExclusiveVR: 0 309 | ps4disableAutoHideSplash: 0 310 | ps4IncludedModules: [] 311 | monoEnv: 312 | psp2Splashimage: {fileID: 0} 313 | psp2NPTrophyPackPath: 314 | psp2NPSupportGBMorGJP: 0 315 | psp2NPAgeRating: 12 316 | psp2NPTitleDatPath: 317 | psp2NPCommsID: 318 | psp2NPCommunicationsID: 319 | psp2NPCommsPassphrase: 320 | psp2NPCommsSig: 321 | psp2ParamSfxPath: 322 | psp2ManualPath: 323 | psp2LiveAreaGatePath: 324 | psp2LiveAreaBackroundPath: 325 | psp2LiveAreaPath: 326 | psp2LiveAreaTrialPath: 327 | psp2PatchChangeInfoPath: 328 | psp2PatchOriginalPackage: 329 | psp2PackagePassword: WRK5RhRXdCdG5nG5azdNMK66MuCV6GXi 330 | psp2KeystoneFile: 331 | psp2MemoryExpansionMode: 0 332 | psp2DRMType: 0 333 | psp2StorageType: 0 334 | psp2MediaCapacity: 0 335 | psp2DLCConfigPath: 336 | psp2ThumbnailPath: 337 | psp2BackgroundPath: 338 | psp2SoundPath: 339 | psp2TrophyCommId: 340 | psp2TrophyPackagePath: 341 | psp2PackagedResourcesPath: 342 | psp2SaveDataQuota: 10240 343 | psp2ParentalLevel: 1 344 | psp2ShortTitle: Not Set 345 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 346 | psp2Category: 0 347 | psp2MasterVersion: 01.00 348 | psp2AppVersion: 01.00 349 | psp2TVBootMode: 0 350 | psp2EnterButtonAssignment: 2 351 | psp2TVDisableEmu: 0 352 | psp2AllowTwitterDialog: 1 353 | psp2Upgradable: 0 354 | psp2HealthWarning: 0 355 | psp2UseLibLocation: 0 356 | psp2InfoBarOnStartup: 0 357 | psp2InfoBarColor: 0 358 | psp2UseDebugIl2cppLibs: 0 359 | psmSplashimage: {fileID: 0} 360 | splashScreenBackgroundSourceLandscape: {fileID: 0} 361 | splashScreenBackgroundSourcePortrait: {fileID: 0} 362 | spritePackerPolicy: 363 | webGLMemorySize: 256 364 | webGLExceptionSupport: 1 365 | webGLDataCaching: 0 366 | webGLDebugSymbols: 0 367 | webGLEmscriptenArgs: 368 | webGLModulesDirectory: 369 | webGLTemplate: APPLICATION:Default 370 | webGLAnalyzeBuildSize: 0 371 | webGLUseEmbeddedResources: 0 372 | webGLUseWasm: 0 373 | webGLCompressionFormat: 1 374 | scriptingDefineSymbols: {} 375 | platformArchitecture: {} 376 | scriptingBackend: {} 377 | incrementalIl2cppBuild: {} 378 | additionalIl2CppArgs: 379 | m_RenderingPath: 1 380 | m_MobileRenderingPath: 1 381 | metroPackageName: Unity 382 | metroPackageVersion: 383 | metroCertificatePath: 384 | metroCertificatePassword: 385 | metroCertificateSubject: 386 | metroCertificateIssuer: 387 | metroCertificateNotAfter: 0000000000000000 388 | metroApplicationDescription: Unity 389 | wsaImages: {} 390 | metroTileShortName: 391 | metroCommandLineArgsFile: 392 | metroTileShowName: 0 393 | metroMediumTileShowName: 0 394 | metroLargeTileShowName: 0 395 | metroWideTileShowName: 0 396 | metroDefaultTileSize: 1 397 | metroTileForegroundText: 2 398 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 399 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 400 | a: 1} 401 | metroSplashScreenUseBackgroundColor: 0 402 | platformCapabilities: {} 403 | metroFTAName: 404 | metroFTAFileTypes: [] 405 | metroProtocolName: 406 | metroCompilationOverrides: 1 407 | tizenProductDescription: 408 | tizenProductURL: 409 | tizenSigningProfileName: 410 | tizenGPSPermissions: 0 411 | tizenMicrophonePermissions: 0 412 | tizenDeploymentTarget: 413 | tizenDeploymentTargetType: 0 414 | tizenMinOSVersion: 0 415 | n3dsUseExtSaveData: 0 416 | n3dsCompressStaticMem: 1 417 | n3dsExtSaveDataNumber: 0x12345 418 | n3dsStackSize: 131072 419 | n3dsTargetPlatform: 2 420 | n3dsRegion: 7 421 | n3dsMediaSize: 0 422 | n3dsLogoStyle: 3 423 | n3dsTitle: GameName 424 | n3dsProductCode: 425 | n3dsApplicationId: 0xFF3FF 426 | stvDeviceAddress: 427 | stvProductDescription: 428 | stvProductAuthor: 429 | stvProductAuthorEmail: 430 | stvProductLink: 431 | stvProductCategory: 0 432 | XboxOneProductId: 433 | XboxOneUpdateKey: 434 | XboxOneSandboxId: 435 | XboxOneContentId: 436 | XboxOneTitleId: 437 | XboxOneSCId: 438 | XboxOneGameOsOverridePath: 439 | XboxOnePackagingOverridePath: 440 | XboxOneAppManifestOverridePath: 441 | XboxOnePackageEncryption: 0 442 | XboxOnePackageUpdateGranularity: 2 443 | XboxOneDescription: 444 | XboxOneLanguage: 445 | - enus 446 | XboxOneCapability: [] 447 | XboxOneGameRating: {} 448 | XboxOneIsContentPackage: 0 449 | XboxOneEnableGPUVariability: 0 450 | XboxOneSockets: {} 451 | XboxOneSplashScreen: {fileID: 0} 452 | XboxOneAllowedProductIds: [] 453 | XboxOnePersistentLocalStorageSize: 0 454 | vrEditorSettings: {} 455 | cloudServicesEnabled: {} 456 | cloudProjectId: 457 | projectName: 458 | organizationId: 459 | cloudEnabled: 0 460 | --------------------------------------------------------------------------------