commit a3b19da5510766eefc9bc16b2286258a30c2adc1 Author: Kayne Ruse Date: Sat Apr 18 18:14:51 2020 +1000 Working on it diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..63f345d --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +[Ll]ibrary/ +[Tt]emp/ +[Oo]bj/ +[Bb]uild/ +[Bb]uilds/ +Assets/AssetStoreTools* + +# Visual Studio 2015 cache directory +/.vs/ + +# Autogenerated VS/MD/Consulo solution and project files +ExportedObj/ +.consulo/ +*.csproj +*.unityproj +*.sln +*.suo +*.tmp +*.user +*.userprefs +*.pidb +*.booproj +*.svd +*.pdb + +# Unity3D generated meta files +*.pidb.meta +*.pdb.meta + +# Unity3D Generated File On Crash Reports +sysinfo.txt + +# Builds +*.apk +*.unitypackage + +#steam +steam_sdk/ \ No newline at end of file diff --git a/Assets/Animations.meta b/Assets/Animations.meta new file mode 100644 index 0000000..2a7fd07 --- /dev/null +++ b/Assets/Animations.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d4ce3cad17a9964c49377393fba59765 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Animations/Fire.controller b/Assets/Animations/Fire.controller new file mode 100644 index 0000000..61ec1d7 --- /dev/null +++ b/Assets/Animations/Fire.controller @@ -0,0 +1,240 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1102 &-7242123668434255461 +AnimatorState: + serializedVersion: 5 + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Fire_Large + m_Speed: 1 + m_CycleOffset: 0 + m_Transitions: + - {fileID: 2377654247485305871} + m_StateMachineBehaviours: [] + m_Position: {x: 50, y: 50, z: 0} + m_IKOnFeet: 0 + m_WriteDefaultValues: 1 + m_Mirror: 0 + m_SpeedParameterActive: 0 + m_MirrorParameterActive: 0 + m_CycleOffsetParameterActive: 0 + m_TimeParameterActive: 0 + m_Motion: {fileID: 7400000, guid: 3aa04e06793b7986f8d330ab7e140d7a, type: 2} + m_Tag: + m_SpeedParameter: + m_MirrorParameter: + m_CycleOffsetParameter: + m_TimeParameter: +--- !u!1102 &-3967938475098992837 +AnimatorState: + serializedVersion: 5 + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Fire_Small + m_Speed: 1 + m_CycleOffset: 0 + m_Transitions: + - {fileID: 5203014014945431137} + m_StateMachineBehaviours: [] + m_Position: {x: 50, y: 50, z: 0} + m_IKOnFeet: 0 + m_WriteDefaultValues: 1 + m_Mirror: 0 + m_SpeedParameterActive: 0 + m_MirrorParameterActive: 0 + m_CycleOffsetParameterActive: 0 + m_TimeParameterActive: 0 + m_Motion: {fileID: 7400000, guid: 1af92b179d4126b8cbc72dd2b3decc9a, type: 2} + m_Tag: + m_SpeedParameter: + m_MirrorParameter: + m_CycleOffsetParameter: + m_TimeParameter: +--- !u!91 &9100000 +AnimatorController: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Fire + serializedVersion: 5 + m_AnimatorParameters: + - m_Name: size + m_Type: 3 + m_DefaultFloat: 0 + m_DefaultInt: 0 + m_DefaultBool: 0 + m_Controller: {fileID: 0} + m_AnimatorLayers: + - serializedVersion: 5 + m_Name: Base Layer + m_StateMachine: {fileID: 3947884304617259984} + m_Mask: {fileID: 0} + m_Motions: [] + m_Behaviours: [] + m_BlendingMode: 0 + m_SyncedLayerIndex: -1 + m_DefaultWeight: 0 + m_IKPass: 0 + m_SyncedLayerAffectsTiming: 0 + m_Controller: {fileID: 9100000} +--- !u!1101 &2377654247485305871 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 4 + m_ConditionEvent: size + m_EventTreshold: 3 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: 9076948865318807003} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0 + m_TransitionOffset: 0 + m_ExitTime: 0 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1107 &3947884304617259984 +AnimatorStateMachine: + serializedVersion: 5 + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Base Layer + m_ChildStates: + - serializedVersion: 1 + m_State: {fileID: -3967938475098992837} + m_Position: {x: 330, y: -40, z: 0} + - serializedVersion: 1 + m_State: {fileID: 9076948865318807003} + m_Position: {x: 330, y: 50, z: 0} + - serializedVersion: 1 + m_State: {fileID: -7242123668434255461} + m_Position: {x: 330, y: 140, z: 0} + m_ChildStateMachines: [] + m_AnyStateTransitions: [] + m_EntryTransitions: [] + m_StateMachineTransitions: {} + m_StateMachineBehaviours: [] + m_AnyStatePosition: {x: 50, y: 20, z: 0} + m_EntryPosition: {x: 50, y: 120, z: 0} + m_ExitPosition: {x: 800, y: 120, z: 0} + m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} + m_DefaultState: {fileID: -3967938475098992837} +--- !u!1101 &4487856842708553727 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 3 + m_ConditionEvent: size + m_EventTreshold: 2 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -7242123668434255461} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0 + m_TransitionOffset: 0 + m_ExitTime: 0 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1101 &5203014014945431137 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 3 + m_ConditionEvent: size + m_EventTreshold: 1 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: 9076948865318807003} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0 + m_TransitionOffset: 0 + m_ExitTime: 0 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1101 &8055767767851202117 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 4 + m_ConditionEvent: size + m_EventTreshold: 2 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: -3967938475098992837} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0 + m_TransitionOffset: 0 + m_ExitTime: 0 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1102 &9076948865318807003 +AnimatorState: + serializedVersion: 5 + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Fire_Medium + m_Speed: 1 + m_CycleOffset: 0 + m_Transitions: + - {fileID: 4487856842708553727} + - {fileID: 8055767767851202117} + m_StateMachineBehaviours: [] + m_Position: {x: 50, y: 50, z: 0} + m_IKOnFeet: 0 + m_WriteDefaultValues: 1 + m_Mirror: 0 + m_SpeedParameterActive: 0 + m_MirrorParameterActive: 0 + m_CycleOffsetParameterActive: 0 + m_TimeParameterActive: 0 + m_Motion: {fileID: 7400000, guid: 78f828aafcab99b57b64058d6a260ea9, type: 2} + m_Tag: + m_SpeedParameter: + m_MirrorParameter: + m_CycleOffsetParameter: + m_TimeParameter: diff --git a/Assets/Animations/Fire.controller.meta b/Assets/Animations/Fire.controller.meta new file mode 100644 index 0000000..e7afb9a --- /dev/null +++ b/Assets/Animations/Fire.controller.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ddf225d2c3ffdc783b59df4d81fc8038 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Animations/Fire_Large.anim b/Assets/Animations/Fire_Large.anim new file mode 100644 index 0000000..109a10c --- /dev/null +++ b/Assets/Animations/Fire_Large.anim @@ -0,0 +1,74 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!74 &7400000 +AnimationClip: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Fire_Large + serializedVersion: 6 + m_Legacy: 0 + m_Compressed: 0 + m_UseHighQualityCurve: 1 + m_RotationCurves: [] + m_CompressedRotationCurves: [] + m_EulerCurves: [] + m_PositionCurves: [] + m_ScaleCurves: [] + m_FloatCurves: [] + m_PPtrCurves: + - curve: + - time: 0 + value: {fileID: 21300000, guid: df99cd1ef8b819c79bd6883e133ddd00, type: 3} + - time: 0.016666668 + value: {fileID: 21300000, guid: 6a1bbc5036f86f5f185d7b55d90cd1bb, type: 3} + - time: 0.033333335 + value: {fileID: 21300000, guid: 9d01303ed461fc2a882c9394a1af57c1, type: 3} + attribute: m_Sprite + path: + classID: 212 + script: {fileID: 0} + m_SampleRate: 60 + m_WrapMode: 0 + m_Bounds: + m_Center: {x: 0, y: 0, z: 0} + m_Extent: {x: 0, y: 0, z: 0} + m_ClipBindingConstant: + genericBindings: + - serializedVersion: 2 + path: 0 + attribute: 0 + script: {fileID: 0} + typeID: 212 + customType: 23 + isPPtrCurve: 1 + pptrCurveMapping: + - {fileID: 21300000, guid: df99cd1ef8b819c79bd6883e133ddd00, type: 3} + - {fileID: 21300000, guid: 6a1bbc5036f86f5f185d7b55d90cd1bb, type: 3} + - {fileID: 21300000, guid: 9d01303ed461fc2a882c9394a1af57c1, type: 3} + m_AnimationClipSettings: + serializedVersion: 2 + m_AdditiveReferencePoseClip: {fileID: 0} + m_AdditiveReferencePoseTime: 0 + m_StartTime: 0 + m_StopTime: 0.050000004 + m_OrientationOffsetY: 0 + m_Level: 0 + m_CycleOffset: 0 + m_HasAdditiveReferencePose: 0 + m_LoopTime: 1 + m_LoopBlend: 0 + m_LoopBlendOrientation: 0 + m_LoopBlendPositionY: 0 + m_LoopBlendPositionXZ: 0 + m_KeepOriginalOrientation: 0 + m_KeepOriginalPositionY: 1 + m_KeepOriginalPositionXZ: 0 + m_HeightFromFeet: 0 + m_Mirror: 0 + m_EditorCurves: [] + m_EulerEditorCurves: [] + m_HasGenericRootTransform: 0 + m_HasMotionFloatCurves: 0 + m_Events: [] diff --git a/Assets/Animations/Fire_Large.anim.meta b/Assets/Animations/Fire_Large.anim.meta new file mode 100644 index 0000000..ca49dca --- /dev/null +++ b/Assets/Animations/Fire_Large.anim.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3aa04e06793b7986f8d330ab7e140d7a +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Animations/Fire_Medium.anim b/Assets/Animations/Fire_Medium.anim new file mode 100644 index 0000000..ba6756f --- /dev/null +++ b/Assets/Animations/Fire_Medium.anim @@ -0,0 +1,74 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!74 &7400000 +AnimationClip: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Fire_Medium + serializedVersion: 6 + m_Legacy: 0 + m_Compressed: 0 + m_UseHighQualityCurve: 1 + m_RotationCurves: [] + m_CompressedRotationCurves: [] + m_EulerCurves: [] + m_PositionCurves: [] + m_ScaleCurves: [] + m_FloatCurves: [] + m_PPtrCurves: + - curve: + - time: 0 + value: {fileID: 21300000, guid: 594ab07e74bbcad38b3160ab88b80190, type: 3} + - time: 0.016666668 + value: {fileID: 21300000, guid: 339a583b78a4babe99d18b16da6997ce, type: 3} + - time: 0.033333335 + value: {fileID: 21300000, guid: 0267b227095f563c0be629261f05e724, type: 3} + attribute: m_Sprite + path: + classID: 212 + script: {fileID: 0} + m_SampleRate: 60 + m_WrapMode: 0 + m_Bounds: + m_Center: {x: 0, y: 0, z: 0} + m_Extent: {x: 0, y: 0, z: 0} + m_ClipBindingConstant: + genericBindings: + - serializedVersion: 2 + path: 0 + attribute: 0 + script: {fileID: 0} + typeID: 212 + customType: 23 + isPPtrCurve: 1 + pptrCurveMapping: + - {fileID: 21300000, guid: 594ab07e74bbcad38b3160ab88b80190, type: 3} + - {fileID: 21300000, guid: 339a583b78a4babe99d18b16da6997ce, type: 3} + - {fileID: 21300000, guid: 0267b227095f563c0be629261f05e724, type: 3} + m_AnimationClipSettings: + serializedVersion: 2 + m_AdditiveReferencePoseClip: {fileID: 0} + m_AdditiveReferencePoseTime: 0 + m_StartTime: 0 + m_StopTime: 0.050000004 + m_OrientationOffsetY: 0 + m_Level: 0 + m_CycleOffset: 0 + m_HasAdditiveReferencePose: 0 + m_LoopTime: 1 + m_LoopBlend: 0 + m_LoopBlendOrientation: 0 + m_LoopBlendPositionY: 0 + m_LoopBlendPositionXZ: 0 + m_KeepOriginalOrientation: 0 + m_KeepOriginalPositionY: 1 + m_KeepOriginalPositionXZ: 0 + m_HeightFromFeet: 0 + m_Mirror: 0 + m_EditorCurves: [] + m_EulerEditorCurves: [] + m_HasGenericRootTransform: 0 + m_HasMotionFloatCurves: 0 + m_Events: [] diff --git a/Assets/Animations/Fire_Medium.anim.meta b/Assets/Animations/Fire_Medium.anim.meta new file mode 100644 index 0000000..aa179b4 --- /dev/null +++ b/Assets/Animations/Fire_Medium.anim.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 78f828aafcab99b57b64058d6a260ea9 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Animations/Fire_Small.anim b/Assets/Animations/Fire_Small.anim new file mode 100644 index 0000000..2452c54 --- /dev/null +++ b/Assets/Animations/Fire_Small.anim @@ -0,0 +1,74 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!74 &7400000 +AnimationClip: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Fire_Small + serializedVersion: 6 + m_Legacy: 0 + m_Compressed: 0 + m_UseHighQualityCurve: 1 + m_RotationCurves: [] + m_CompressedRotationCurves: [] + m_EulerCurves: [] + m_PositionCurves: [] + m_ScaleCurves: [] + m_FloatCurves: [] + m_PPtrCurves: + - curve: + - time: 0 + value: {fileID: 21300000, guid: 8e4bdcb647508e7879e1cf6716135b6c, type: 3} + - time: 0.016666668 + value: {fileID: 21300000, guid: ba7b9d0c169cdd70ba763419bd2721ef, type: 3} + - time: 0.033333335 + value: {fileID: 21300000, guid: d56eb73f29fa40a168de0f09921d91df, type: 3} + attribute: m_Sprite + path: + classID: 212 + script: {fileID: 0} + m_SampleRate: 60 + m_WrapMode: 0 + m_Bounds: + m_Center: {x: 0, y: 0, z: 0} + m_Extent: {x: 0, y: 0, z: 0} + m_ClipBindingConstant: + genericBindings: + - serializedVersion: 2 + path: 0 + attribute: 0 + script: {fileID: 0} + typeID: 212 + customType: 23 + isPPtrCurve: 1 + pptrCurveMapping: + - {fileID: 21300000, guid: 8e4bdcb647508e7879e1cf6716135b6c, type: 3} + - {fileID: 21300000, guid: ba7b9d0c169cdd70ba763419bd2721ef, type: 3} + - {fileID: 21300000, guid: d56eb73f29fa40a168de0f09921d91df, type: 3} + m_AnimationClipSettings: + serializedVersion: 2 + m_AdditiveReferencePoseClip: {fileID: 0} + m_AdditiveReferencePoseTime: 0 + m_StartTime: 0 + m_StopTime: 0.050000004 + m_OrientationOffsetY: 0 + m_Level: 0 + m_CycleOffset: 0 + m_HasAdditiveReferencePose: 0 + m_LoopTime: 1 + m_LoopBlend: 0 + m_LoopBlendOrientation: 0 + m_LoopBlendPositionY: 0 + m_LoopBlendPositionXZ: 0 + m_KeepOriginalOrientation: 0 + m_KeepOriginalPositionY: 1 + m_KeepOriginalPositionXZ: 0 + m_HeightFromFeet: 0 + m_Mirror: 0 + m_EditorCurves: [] + m_EulerEditorCurves: [] + m_HasGenericRootTransform: 0 + m_HasMotionFloatCurves: 0 + m_Events: [] diff --git a/Assets/Animations/Fire_Small.anim.meta b/Assets/Animations/Fire_Small.anim.meta new file mode 100644 index 0000000..ac435a5 --- /dev/null +++ b/Assets/Animations/Fire_Small.anim.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1af92b179d4126b8cbc72dd2b3decc9a +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput.meta b/Assets/CarbonInput.meta new file mode 100644 index 0000000..22f0006 --- /dev/null +++ b/Assets/CarbonInput.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1e66b3f397778b0c28bcbf583e9f3df2 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/CheatSheet.pdf b/Assets/CarbonInput/CheatSheet.pdf new file mode 100644 index 0000000..9965696 Binary files /dev/null and b/Assets/CarbonInput/CheatSheet.pdf differ diff --git a/Assets/CarbonInput/CheatSheet.pdf.meta b/Assets/CarbonInput/CheatSheet.pdf.meta new file mode 100644 index 0000000..52944e4 --- /dev/null +++ b/Assets/CarbonInput/CheatSheet.pdf.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b015f5ba7c284f847908c6f18732e638 +timeCreated: 1456526015 +licenseType: Store +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Documentation.pdf b/Assets/CarbonInput/Documentation.pdf new file mode 100644 index 0000000..575152c Binary files /dev/null and b/Assets/CarbonInput/Documentation.pdf differ diff --git a/Assets/CarbonInput/Documentation.pdf.meta b/Assets/CarbonInput/Documentation.pdf.meta new file mode 100644 index 0000000..03edbfb --- /dev/null +++ b/Assets/CarbonInput/Documentation.pdf.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0f3ffe60b798db34383cb7f52f70c7d0 +timeCreated: 1456526015 +licenseType: Store +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Editor.meta b/Assets/CarbonInput/Editor.meta new file mode 100644 index 0000000..10955da --- /dev/null +++ b/Assets/CarbonInput/Editor.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 43e9f14bcaeca494786c9c6cc3269b16 +folderAsset: yes +timeCreated: 1455632735 +licenseType: Store +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Editor/CarbonInputEditor.asmdef b/Assets/CarbonInput/Editor/CarbonInputEditor.asmdef new file mode 100644 index 0000000..0db3c4f --- /dev/null +++ b/Assets/CarbonInput/Editor/CarbonInputEditor.asmdef @@ -0,0 +1,10 @@ +{ + "name": "CarbonInputEditor", + "references": [ + "CarbonInputRuntime" + ], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [] +} \ No newline at end of file diff --git a/Assets/CarbonInput/Editor/CarbonInputEditor.asmdef.meta b/Assets/CarbonInput/Editor/CarbonInputEditor.asmdef.meta new file mode 100644 index 0000000..55385f6 --- /dev/null +++ b/Assets/CarbonInput/Editor/CarbonInputEditor.asmdef.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: ab534325c08e0cc448eb1dbec063ebf2 +timeCreated: 1565201685 +licenseType: Store +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Editor/CarbonInputMapper.cs b/Assets/CarbonInput/Editor/CarbonInputMapper.cs new file mode 100644 index 0000000..98ab420 --- /dev/null +++ b/Assets/CarbonInput/Editor/CarbonInputMapper.cs @@ -0,0 +1,155 @@ +using UnityEngine; +using System.Collections; +using UnityEditor; +using System.IO; + +namespace CarbonInput { + /// + /// Editor extension used to initialize the Unity Input axes. + /// + public static class CarbonInputMapper { + /// + /// Deadzone for Unity axis. + /// + private const float Dead = 0.1f; + /// + /// Sensitivity for Unity axis. + /// + private const float Sensitivity = 1.0f; + + /// + /// Helper class, used to manage the settings for a single axis + /// + public class JoystickAxis { + public string Name; + public int Axis; + public int JoyNum; + public JoystickAxis(string name, int axis, int joyNum) { + this.Name = name; + this.Axis = axis; + this.JoyNum = joyNum; + } + } + +#if UNITY_2018_3_OR_NEWER + /// + /// Provides the project settings entry for CarbonInput + /// + [SettingsProvider] + static SettingsProvider CreateSettingsProvider() { + var provider = new SettingsProvider("Project/CarbonInputSettings", SettingsScope.Project, new []{"Carbon", "Input", "CarbonInput", "Axis", "Axes"}) { + label = "CarbonInput", + guiHandler = searchContext => { + if(GUILayout.Button("Create Carbon Input Axes") && EditorUtility.DisplayDialog("Init CarbonInput", "This will modify the InputManager settings by adding a bunch of axes.", "OK", "Cancel")) + AddCarbonAxes(); + if(GUILayout.Button("Remove Carbon Input Axes") && EditorUtility.DisplayDialog("Remove CarbonInput", "This will modify the InputManager settings by removing all axes named \"cin_Axis*\".", "OK", "Cancel")) + RemoveCarbonAxes(); + } + }; + return provider; + } +#else + /// + /// Initializes CarbonInput by setting up all unity axes. + /// + [MenuItem("Edit/Project Settings/Carbon Input/Create Carbon Input Axes")] + static void Init() { + if(EditorUtility.DisplayDialog("Init CarbonInput", "This will modify the InputManager settings by adding a bunch of axes.", "OK", "Cancel")) + AddCarbonAxes(); + } + + /// + /// Removes all generated unity axes. + /// + [MenuItem("Edit/Project Settings/Carbon Input/Remove Carbon Input Axes")] + static void Clear() { + if(EditorUtility.DisplayDialog("Remove CarbonInput", "This will modify the InputManager settings by removing all axes named \"cin_Axis*\".", "OK", "Cancel")) + RemoveCarbonAxes(); + } +#endif + + /// + /// Creates a new mapping used for keyboards. + /// + [MenuItem("Assets/Create/Carbon Input/Keyboard Mapping", false, 1)] + static void NewFallbackMapping() { + SaveInNewFile(CarbonController.CreateFallback(), "Keyboard"); + } + + /// + /// Helper method, used to store the given asset in a new file + /// + /// + private static void SaveInNewFile(ScriptableObject asset, string name) { + string dir = "Assets"; + if(Selection.activeObject != null) + dir = AssetDatabase.GetAssetPath(Selection.activeObject); + + int id = 0; + string file; + do { + file = Path.Combine(dir, name + id++ + ".asset"); + } while(File.Exists(file)); + AssetDatabase.CreateAsset(asset, file); + Selection.activeObject = asset; + EditorUtility.FocusProjectWindow(); + } + + /// + /// Removes all generated axes + /// + private static void RemoveCarbonAxes() { + SerializedObject serializedObject = new SerializedObject(AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/InputManager.asset")[0]); + SerializedProperty axesProperty = serializedObject.FindProperty("m_Axes"); + for(int i = axesProperty.arraySize - 1; i >= 0; i--) { + SerializedProperty prop = axesProperty.GetArrayElementAtIndex(i); + prop.Next(true); + if(prop.stringValue.StartsWith(CarbonController.Tag)) axesProperty.DeleteArrayElementAtIndex(i); + } + serializedObject.ApplyModifiedProperties(); + } + /// + /// Generates all axes. + /// + private static void AddCarbonAxes() { + RemoveCarbonAxes(); // clean up first + // Any, Player One, ..., Player Eight + for(int id = 0; id < CarbonController.PlayerIndices; id++) { + for(int i = 0; i < CarbonController.InputAxisCount; i++) + //cin_AxisID_I example: cin_Axis0_00 => axis 0 for any joystick + AddAxis(new JoystickAxis(CarbonController.CreateName(id, i), i, id)); + } + } + /// + /// Adds a single unity axis to the InputManager. + /// + /// + private static void AddAxis(JoystickAxis axis) { + SerializedObject serializedObject = new SerializedObject(AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/InputManager.asset")[0]); + SerializedProperty axesProperty = serializedObject.FindProperty("m_Axes"); + axesProperty.arraySize++; + serializedObject.ApplyModifiedProperties(); + SerializedProperty axisProperty = axesProperty.GetArrayElementAtIndex(axesProperty.arraySize - 1); + SetAxis(axisProperty, axis); + serializedObject.ApplyModifiedProperties(); + } + /// + /// Sets the values of a single axis. + /// + /// + /// + private static void SetAxis(SerializedProperty axisProperty, JoystickAxis axis) { + axisProperty.Next(true); + axisProperty.stringValue = axis.Name; + do { + switch(axisProperty.name) { + case "dead": axisProperty.floatValue = Dead; break; + case "sensitivity": axisProperty.floatValue = Sensitivity; break; + case "type": axisProperty.intValue = 2; break; // 2 = Joystick Axis + case "axis": axisProperty.intValue = axis.Axis; break; + case "joyNum": axisProperty.intValue = axis.JoyNum; break; + } + } while(axisProperty.Next(false)); + } + } +} diff --git a/Assets/CarbonInput/Editor/CarbonInputMapper.cs.meta b/Assets/CarbonInput/Editor/CarbonInputMapper.cs.meta new file mode 100644 index 0000000..337917f --- /dev/null +++ b/Assets/CarbonInput/Editor/CarbonInputMapper.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 634cb37e51c70014eb137d98ce2e7150 +timeCreated: 1455632895 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Editor/CarbonMappingEditor.cs b/Assets/CarbonInput/Editor/CarbonMappingEditor.cs new file mode 100644 index 0000000..ececd3b --- /dev/null +++ b/Assets/CarbonInput/Editor/CarbonMappingEditor.cs @@ -0,0 +1,159 @@ +using UnityEngine; +using UnityEditor; + +namespace CarbonInput { + /// + /// Editor for . + /// + [CustomEditor(typeof(CarbonController))] + public class CarbonMappingEditor : Editor { + /// + /// Foldout buttons + /// + private bool showButtons = true; + /// + /// Foldout axes. + /// + private bool showAxes = true; + + public override void OnInspectorGUI() { + GUI.changed = false; + CarbonController mapping = (CarbonController)target; + + EditorGUI.BeginChangeCheck(); + string regex = EditorGUILayout.TextField(new GUIContent("RegEx", "Regular expression used to match joystick names."), mapping.RegEx); + if(EditorGUI.EndChangeCheck()) { + Undo.RecordObject(mapping, "Changed Gamepad RegEx"); + mapping.RegEx = regex; + } + + EditorGUI.BeginChangeCheck(); + int priority = EditorGUILayout.IntField(new GUIContent("Priority", "Lower values are checked earlier."), mapping.Priority); + if(EditorGUI.EndChangeCheck()) { + Undo.RecordObject(mapping, "Changed Gamepad Priority"); + mapping.Priority = priority; + } + + EditorGUILayout.BeginHorizontal(); + EditorGUILayout.PrefixLabel("Platform"); + EditorGUI.BeginChangeCheck(); +#if UNITY_2017_3_OR_NEWER + CPlatform platform = (CPlatform)EditorGUILayout.EnumFlagsField(mapping.Platform); +#else + CPlatform platform = (CPlatform)EditorGUILayout.EnumMaskField(mapping.Platform); +#endif + if(EditorGUI.EndChangeCheck()) { + Undo.RecordObject(mapping, "Changed Gamepad Platform"); + mapping.Platform = platform; + } + EditorGUILayout.EndHorizontal(); + + EditorGUI.BeginChangeCheck(); + bool useOnce = EditorGUILayout.Toggle(new GUIContent("Use Once", "Whether this mapping should only be used for one joystick."), mapping.UseOnce); + if(EditorGUI.EndChangeCheck()) { + Undo.RecordObject(mapping, "Changed Gamepad Use Once"); + mapping.UseOnce = useOnce; + } + + showButtons = EditorGUILayout.Foldout(showButtons, "Buttons"); + if(showButtons) { + EditorGUILayout.BeginVertical(); + for(int i = 0; i < CarbonController.ButtonCount; i++) { + ButtonMapping btn = mapping.Buttons[i]; + ButtonMapping tmp = new ButtonMapping(btn); + EditorGUI.BeginChangeCheck(); + EditorGUILayout.BeginHorizontal(); + EditorGUILayout.LabelField(((CButton)i).ToString(), GUILayout.MaxWidth(50f)); + tmp.Type = (ButtonMapping.ButtonType)EditorGUILayout.EnumPopup(btn.Type, GUILayout.MaxWidth(100f)); + if(btn.Type == ButtonMapping.ButtonType.Wrapper) { + tmp.Key = (KeyCode)EditorGUILayout.EnumPopup(btn.Key, GUILayout.MaxWidth(100f)); + } else { + tmp.Button = Mathf.Clamp(EditorGUILayout.IntField(btn.Button, GUILayout.MaxWidth(100f)), 0, 19); + } + EditorGUILayout.EndHorizontal(); + if(EditorGUI.EndChangeCheck()) { + Undo.RecordObject(mapping, "Changed Button Mapping"); + btn.CopyFrom(tmp); // copy back + } + } + EditorGUILayout.EndVertical(); + } + + showAxes = EditorGUILayout.Foldout(showAxes, "Axes"); + if(showAxes) { + EditorGUILayout.BeginVertical(); + EditorGUILayout.BeginHorizontal(); + EditorGUILayout.LabelField("Name", GUILayout.MaxWidth(50f)); + EditorGUILayout.LabelField("Axis", GUILayout.MaxWidth(70f)); + EditorGUILayout.LabelField("Invert", GUILayout.MaxWidth(40f)); + EditorGUILayout.LabelField("Type", GUILayout.MaxWidth(80f)); + EditorGUILayout.EndHorizontal(); + for(int i = 0; i < CarbonController.AxisCount; i++) { + AxisMapping axis = mapping.Axes[i]; + AxisMapping tmp = new AxisMapping(axis); + EditorGUI.BeginChangeCheck(); + EditorGUILayout.BeginHorizontal(); + EditorGUILayout.LabelField(((CAxis)i).ToString(), GUILayout.MaxWidth(50f)); + if(axis.Type == AxisMapping.AxisType.KeyWrapper || axis.Type == AxisMapping.AxisType.ButtonWrapper2) { + EditorGUILayout.LabelField("", GUILayout.MaxWidth(80f)); + } else if(axis.Type == AxisMapping.AxisType.ButtonWrapper) { + tmp.Axis = Mathf.Clamp(EditorGUILayout.IntField(axis.Axis, GUILayout.MaxWidth(80f)), 0, CarbonController.JoystickButtonCount - 1); + } else { + tmp.Axis = Mathf.Clamp(EditorGUILayout.IntField(axis.Axis, GUILayout.MaxWidth(80f)), 0, CarbonController.InputAxisCount - 1); + } + tmp.Invert = EditorGUILayout.Toggle(axis.Invert, GUILayout.MaxWidth(20f)); + tmp.Type = (AxisMapping.AxisType)EditorGUILayout.EnumPopup(axis.Type, GUILayout.MaxWidth(100f)); + EditorGUILayout.EndHorizontal(); + + switch(axis.Type) { + case AxisMapping.AxisType.KeyWrapper: + EditorGUILayout.BeginHorizontal(); + EditorGUILayout.Space(); + EditorGUILayout.LabelField("Negative", GUILayout.MaxWidth(60f)); + tmp.Key1 = (KeyCode)EditorGUILayout.EnumPopup(axis.Key1, GUILayout.MaxWidth(80f)); + EditorGUILayout.LabelField("Positive", GUILayout.MaxWidth(60f)); + tmp.Key2 = (KeyCode)EditorGUILayout.EnumPopup(axis.Key2, GUILayout.MaxWidth(80f)); + EditorGUILayout.EndHorizontal(); + break; + case AxisMapping.AxisType.ButtonWrapper: + EditorGUILayout.BeginHorizontal(); + EditorGUILayout.Space(); + EditorGUILayout.LabelField("Released", GUILayout.MaxWidth(60f)); + tmp.Min = EditorGUILayout.FloatField(axis.Min, GUILayout.MaxWidth(40f)); + EditorGUILayout.LabelField("Pressed", GUILayout.MaxWidth(60f)); + tmp.Max = EditorGUILayout.FloatField(axis.Max, GUILayout.MaxWidth(40f)); + EditorGUILayout.EndHorizontal(); + break; + case AxisMapping.AxisType.ButtonWrapper2: + EditorGUILayout.BeginHorizontal(); + EditorGUILayout.Space(); + EditorGUILayout.LabelField("Negative", GUILayout.MaxWidth(60f)); + tmp.Axis = Mathf.Clamp(EditorGUILayout.IntField(axis.Axis, GUILayout.MaxWidth(40f)), 0, CarbonController.JoystickButtonCount - 1); + EditorGUILayout.LabelField("Positive", GUILayout.MaxWidth(60f)); + tmp.Alternative = Mathf.Clamp(EditorGUILayout.IntField(axis.Alternative, GUILayout.MaxWidth(40f)), 0, CarbonController.JoystickButtonCount - 1); + EditorGUILayout.EndHorizontal(); + break; + case AxisMapping.AxisType.Clamped: + EditorGUILayout.BeginHorizontal(); + EditorGUILayout.Space(); + EditorGUILayout.LabelField("Min", GUILayout.MaxWidth(40f)); + tmp.Min = EditorGUILayout.FloatField(axis.Min, GUILayout.MaxWidth(40f)); + EditorGUILayout.LabelField("Max", GUILayout.MaxWidth(40f)); + tmp.Max = EditorGUILayout.FloatField(axis.Max, GUILayout.MaxWidth(40f)); + EditorGUILayout.EndHorizontal(); + break; + } + if(EditorGUI.EndChangeCheck()) { + Undo.RecordObject(mapping, "Changed Axis Mapping"); + axis.CopyFrom(tmp); // copy back + } + } + EditorGUILayout.EndVertical(); + } + + if(GUI.changed) { + EditorUtility.SetDirty(target); + } + } + } +} diff --git a/Assets/CarbonInput/Editor/CarbonMappingEditor.cs.meta b/Assets/CarbonInput/Editor/CarbonMappingEditor.cs.meta new file mode 100644 index 0000000..3312ce3 --- /dev/null +++ b/Assets/CarbonInput/Editor/CarbonMappingEditor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eff2d4adbe77113479dbc708ac7a63a0 +timeCreated: 1455638714 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Editor/CarbonSettingsEditor.cs b/Assets/CarbonInput/Editor/CarbonSettingsEditor.cs new file mode 100644 index 0000000..034eec5 --- /dev/null +++ b/Assets/CarbonInput/Editor/CarbonSettingsEditor.cs @@ -0,0 +1,63 @@ +using UnityEngine; +using UnityEditor; + +namespace CarbonInput { + /// + /// Editor for . + /// + [CustomEditor(typeof(CarbonSettings))] + public class CarbonSettingsEditor : Editor { + /// + /// Short info text for + /// + private static string[] BehaviourHelp = { + "UseMappingOne:\nUse the same mapping PlayerIndex.One uses, but listen on any gamepad for that mapping.", + "UseControllerOne:\nAlways use PlayerIndex.One whenever PlayerIndex.Any is used.", + "CheckAll:\nGo over all players and use first match. Slightly slower than the other two behaviours, but it is the most accurate." + }; + + private CarbonSettings Settings { get { return (CarbonSettings)target; } } + + public override void OnInspectorGUI() { + GUI.changed = false; + EditorGUILayout.HelpBox(BehaviourHelp[(int)Settings.Behaviour], MessageType.Info); + EditorGUILayout.BeginHorizontal(); + EditorGUILayout.LabelField(new GUIContent("Behaviour", "Defines the behaviour of PlayerIndex.Any"), GUILayout.Width(100)); + EditorGUI.BeginChangeCheck(); + AnyBehaviour value = (AnyBehaviour)EditorGUILayout.EnumPopup(Settings.Behaviour); + if(EditorGUI.EndChangeCheck()) { + Undo.RecordObject(Settings, "Changed Behaviour to " + value.ToString()); + Settings.Behaviour = value; + } + EditorGUILayout.EndHorizontal(); + EditorGUILayout.Separator(); + + EditorGUILayout.HelpBox( + "The default behaviour of any axis is as follows:\n" + + "X axis goes from -1 (left) to +1(right)\n" + + "Y axis goes from -1 (up) to +1 (down)", MessageType.Info); + EditorGUILayout.LabelField("Inverted Axis"); + EditorGUILayout.BeginHorizontal(); + AxisToggle(CAxis.LX); AxisToggle(CAxis.RX); AxisToggle(CAxis.DX); + EditorGUILayout.EndHorizontal(); + EditorGUILayout.BeginHorizontal(); + AxisToggle(CAxis.LY); AxisToggle(CAxis.RY); AxisToggle(CAxis.DY); + EditorGUILayout.EndHorizontal(); + + if(GUI.changed) EditorUtility.SetDirty(target); + } + + /// + /// Helper method used to invert an axis, providing an undo action. + /// + /// + private void AxisToggle(CAxis axis) { + EditorGUI.BeginChangeCheck(); + bool value = EditorGUILayout.ToggleLeft(axis.ToString(), Settings[axis], GUILayout.Width(40)); + if(EditorGUI.EndChangeCheck()) { + Undo.RecordObject(Settings, "Inverted Axis " + axis.ToString()); + Settings[axis] = value; + } + } + } +} diff --git a/Assets/CarbonInput/Editor/CarbonSettingsEditor.cs.meta b/Assets/CarbonInput/Editor/CarbonSettingsEditor.cs.meta new file mode 100644 index 0000000..ee1419a --- /dev/null +++ b/Assets/CarbonInput/Editor/CarbonSettingsEditor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d75853247afc34d4bbf918cbcd251c95 +timeCreated: 1455907842 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Editor/ReInitEditor.cs b/Assets/CarbonInput/Editor/ReInitEditor.cs new file mode 100644 index 0000000..99b6054 --- /dev/null +++ b/Assets/CarbonInput/Editor/ReInitEditor.cs @@ -0,0 +1,11 @@ +using UnityEditor; + +namespace CarbonInput { + [CustomEditor(typeof(ReInit))] + public class ReInitEditor : Editor { + public override void OnInspectorGUI() { + EditorGUILayout.HelpBox("The automatically generated \"GamePad ReInit\" gameobject " + + "and this script are used to detect if a gamepad has (dis)connected.", MessageType.Info); + } + } +} \ No newline at end of file diff --git a/Assets/CarbonInput/Editor/ReInitEditor.cs.meta b/Assets/CarbonInput/Editor/ReInitEditor.cs.meta new file mode 100644 index 0000000..1346ef7 --- /dev/null +++ b/Assets/CarbonInput/Editor/ReInitEditor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5154737445f00d24f98525a4ac20dcfd +timeCreated: 1483359505 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Gizmos.meta b/Assets/CarbonInput/Gizmos.meta new file mode 100644 index 0000000..7974e95 --- /dev/null +++ b/Assets/CarbonInput/Gizmos.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: ea45dcadf3b669f4a83e128277dde6d7 +folderAsset: yes +timeCreated: 1456526605 +licenseType: Store +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Gizmos/CarbonController Icon.png b/Assets/CarbonInput/Gizmos/CarbonController Icon.png new file mode 100644 index 0000000..513b63a Binary files /dev/null and b/Assets/CarbonInput/Gizmos/CarbonController Icon.png differ diff --git a/Assets/CarbonInput/Gizmos/CarbonController Icon.png.meta b/Assets/CarbonInput/Gizmos/CarbonController Icon.png.meta new file mode 100644 index 0000000..5212615 --- /dev/null +++ b/Assets/CarbonInput/Gizmos/CarbonController Icon.png.meta @@ -0,0 +1,57 @@ +fileFormatVersion: 2 +guid: 06d57916e2cee5c4aa72f7fdd36ed624 +timeCreated: 1456526767 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 2 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + linearTexture: 0 + correctGamma: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 0 + cubemapConvolution: 0 + cubemapConvolutionSteps: 7 + cubemapConvolutionExponent: 1.5 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: -1 + mipBias: -1 + wrapMode: -1 + nPOTScale: 1 + lightmap: 0 + rGBM: 0 + compressionQuality: 50 + allowsAlphaSplitting: 0 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaIsTransparency: 0 + textureType: -1 + buildTargetSettings: [] + spriteSheet: + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Gizmos/CarbonSettings Icon.png b/Assets/CarbonInput/Gizmos/CarbonSettings Icon.png new file mode 100644 index 0000000..b698eeb Binary files /dev/null and b/Assets/CarbonInput/Gizmos/CarbonSettings Icon.png differ diff --git a/Assets/CarbonInput/Gizmos/CarbonSettings Icon.png.meta b/Assets/CarbonInput/Gizmos/CarbonSettings Icon.png.meta new file mode 100644 index 0000000..519fb8b --- /dev/null +++ b/Assets/CarbonInput/Gizmos/CarbonSettings Icon.png.meta @@ -0,0 +1,57 @@ +fileFormatVersion: 2 +guid: 105225cc106288b4594c77a287e2ac52 +timeCreated: 1456526767 +licenseType: Store +TextureImporter: + fileIDToRecycleName: {} + serializedVersion: 2 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + linearTexture: 0 + correctGamma: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + grayScaleToAlpha: 0 + generateCubemap: 0 + cubemapConvolution: 0 + cubemapConvolutionSteps: 7 + cubemapConvolutionExponent: 1.5 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + filterMode: -1 + aniso: -1 + mipBias: -1 + wrapMode: -1 + nPOTScale: 1 + lightmap: 0 + rGBM: 0 + compressionQuality: 50 + allowsAlphaSplitting: 0 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spritePixelsToUnits: 100 + alphaIsTransparency: 0 + textureType: -1 + buildTargetSettings: [] + spriteSheet: + sprites: [] + outline: [] + spritePackingTag: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Gizmos/readme.txt b/Assets/CarbonInput/Gizmos/readme.txt new file mode 100644 index 0000000..2b55e85 --- /dev/null +++ b/Assets/CarbonInput/Gizmos/readme.txt @@ -0,0 +1 @@ +If you would like to have icons for the CarbonInput assets, move the content of this directory to the Gizmos folder in your assets root directory. diff --git a/Assets/CarbonInput/Gizmos/readme.txt.meta b/Assets/CarbonInput/Gizmos/readme.txt.meta new file mode 100644 index 0000000..f77837c --- /dev/null +++ b/Assets/CarbonInput/Gizmos/readme.txt.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a73076f24118aa24cabba9a718f60cd8 +timeCreated: 1456526849 +licenseType: Store +TextScriptImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Graphics.meta b/Assets/CarbonInput/Graphics.meta new file mode 100644 index 0000000..edf6a3c --- /dev/null +++ b/Assets/CarbonInput/Graphics.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 4dc3a9232175e6a4dbe9bc424ef6258b +folderAsset: yes +timeCreated: 1455826671 +licenseType: Store +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Graphics/Dark.png b/Assets/CarbonInput/Graphics/Dark.png new file mode 100644 index 0000000..2102dc4 Binary files /dev/null and b/Assets/CarbonInput/Graphics/Dark.png differ diff --git a/Assets/CarbonInput/Graphics/Dark.png.meta b/Assets/CarbonInput/Graphics/Dark.png.meta new file mode 100644 index 0000000..1ad984e --- /dev/null +++ b/Assets/CarbonInput/Graphics/Dark.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: a3b21943e4105164a81ac28614e7182b +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Graphics/DarkA.png b/Assets/CarbonInput/Graphics/DarkA.png new file mode 100644 index 0000000..aa37f47 Binary files /dev/null and b/Assets/CarbonInput/Graphics/DarkA.png differ diff --git a/Assets/CarbonInput/Graphics/DarkA.png.meta b/Assets/CarbonInput/Graphics/DarkA.png.meta new file mode 100644 index 0000000..6b5b779 --- /dev/null +++ b/Assets/CarbonInput/Graphics/DarkA.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 66f5f15b28bc24e489c3060f225b784e +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Graphics/DarkArrow.png b/Assets/CarbonInput/Graphics/DarkArrow.png new file mode 100644 index 0000000..54988a6 Binary files /dev/null and b/Assets/CarbonInput/Graphics/DarkArrow.png differ diff --git a/Assets/CarbonInput/Graphics/DarkArrow.png.meta b/Assets/CarbonInput/Graphics/DarkArrow.png.meta new file mode 100644 index 0000000..51f4f0a --- /dev/null +++ b/Assets/CarbonInput/Graphics/DarkArrow.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 0e521ba865a1a79469e23bf7868b8639 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Graphics/DarkB.png b/Assets/CarbonInput/Graphics/DarkB.png new file mode 100644 index 0000000..3237237 Binary files /dev/null and b/Assets/CarbonInput/Graphics/DarkB.png differ diff --git a/Assets/CarbonInput/Graphics/DarkB.png.meta b/Assets/CarbonInput/Graphics/DarkB.png.meta new file mode 100644 index 0000000..578f85e --- /dev/null +++ b/Assets/CarbonInput/Graphics/DarkB.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 98d7f118bcca34946a995c52bc40dea5 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Graphics/DarkBase.png b/Assets/CarbonInput/Graphics/DarkBase.png new file mode 100644 index 0000000..4621d0e Binary files /dev/null and b/Assets/CarbonInput/Graphics/DarkBase.png differ diff --git a/Assets/CarbonInput/Graphics/DarkBase.png.meta b/Assets/CarbonInput/Graphics/DarkBase.png.meta new file mode 100644 index 0000000..609e913 --- /dev/null +++ b/Assets/CarbonInput/Graphics/DarkBase.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 74ee184c93bf323408525923cd72c7ff +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Graphics/DarkStick.png b/Assets/CarbonInput/Graphics/DarkStick.png new file mode 100644 index 0000000..1fc09b7 Binary files /dev/null and b/Assets/CarbonInput/Graphics/DarkStick.png differ diff --git a/Assets/CarbonInput/Graphics/DarkStick.png.meta b/Assets/CarbonInput/Graphics/DarkStick.png.meta new file mode 100644 index 0000000..eb97c92 --- /dev/null +++ b/Assets/CarbonInput/Graphics/DarkStick.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: f21ba0f3526cf6542a7c0e99a06294c3 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Graphics/DarkX.png b/Assets/CarbonInput/Graphics/DarkX.png new file mode 100644 index 0000000..3baf7db Binary files /dev/null and b/Assets/CarbonInput/Graphics/DarkX.png differ diff --git a/Assets/CarbonInput/Graphics/DarkX.png.meta b/Assets/CarbonInput/Graphics/DarkX.png.meta new file mode 100644 index 0000000..02c572a --- /dev/null +++ b/Assets/CarbonInput/Graphics/DarkX.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: d32f506bf4ef4e34d9cf8a98345229eb +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Graphics/DarkY.png b/Assets/CarbonInput/Graphics/DarkY.png new file mode 100644 index 0000000..ac4a5cc Binary files /dev/null and b/Assets/CarbonInput/Graphics/DarkY.png differ diff --git a/Assets/CarbonInput/Graphics/DarkY.png.meta b/Assets/CarbonInput/Graphics/DarkY.png.meta new file mode 100644 index 0000000..91cb4c8 --- /dev/null +++ b/Assets/CarbonInput/Graphics/DarkY.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 7f8465207205f3c4caa4b59f187a4142 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Graphics/Light.png b/Assets/CarbonInput/Graphics/Light.png new file mode 100644 index 0000000..015044d Binary files /dev/null and b/Assets/CarbonInput/Graphics/Light.png differ diff --git a/Assets/CarbonInput/Graphics/Light.png.meta b/Assets/CarbonInput/Graphics/Light.png.meta new file mode 100644 index 0000000..7825466 --- /dev/null +++ b/Assets/CarbonInput/Graphics/Light.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 35631bde8041e964db919ce6a28f44cb +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Graphics/LightArrow.png b/Assets/CarbonInput/Graphics/LightArrow.png new file mode 100644 index 0000000..cdae273 Binary files /dev/null and b/Assets/CarbonInput/Graphics/LightArrow.png differ diff --git a/Assets/CarbonInput/Graphics/LightArrow.png.meta b/Assets/CarbonInput/Graphics/LightArrow.png.meta new file mode 100644 index 0000000..aac02ab --- /dev/null +++ b/Assets/CarbonInput/Graphics/LightArrow.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: 71b71d723bf58cc4b8ccf2a73c9ff969 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Graphics/LightBase.png b/Assets/CarbonInput/Graphics/LightBase.png new file mode 100644 index 0000000..921bb1a Binary files /dev/null and b/Assets/CarbonInput/Graphics/LightBase.png differ diff --git a/Assets/CarbonInput/Graphics/LightBase.png.meta b/Assets/CarbonInput/Graphics/LightBase.png.meta new file mode 100644 index 0000000..ea208c7 --- /dev/null +++ b/Assets/CarbonInput/Graphics/LightBase.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: add56e014af900b4c9ed27006168622d +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Graphics/LightStick.png b/Assets/CarbonInput/Graphics/LightStick.png new file mode 100644 index 0000000..837f8ba Binary files /dev/null and b/Assets/CarbonInput/Graphics/LightStick.png differ diff --git a/Assets/CarbonInput/Graphics/LightStick.png.meta b/Assets/CarbonInput/Graphics/LightStick.png.meta new file mode 100644 index 0000000..2ecad7a --- /dev/null +++ b/Assets/CarbonInput/Graphics/LightStick.png.meta @@ -0,0 +1,92 @@ +fileFormatVersion: 2 +guid: c25ba2b89072b5948a010d348ad1f4e6 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: -1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 1 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs.meta b/Assets/CarbonInput/Prefabs.meta new file mode 100644 index 0000000..b2dffd4 --- /dev/null +++ b/Assets/CarbonInput/Prefabs.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 2720664b48fbb1f45a8daf9f4c33bf79 +folderAsset: yes +timeCreated: 1455830008 +licenseType: Store +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/ABXY.prefab b/Assets/CarbonInput/Prefabs/ABXY.prefab new file mode 100644 index 0000000..87e9281 --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ABXY.prefab @@ -0,0 +1,381 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &152608 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22420652} + m_Layer: 5 + m_Name: ABXY + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &164034 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22401852} + - 222: {fileID: 22283278} + - 114: {fileID: 11421036} + - 114: {fileID: 11458340} + m_Layer: 5 + m_Name: ButtonX + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &177352 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22471342} + - 222: {fileID: 22213998} + - 114: {fileID: 11430152} + - 114: {fileID: 11427700} + m_Layer: 5 + m_Name: ButtonB + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &180374 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22469846} + - 222: {fileID: 22291678} + - 114: {fileID: 11408624} + - 114: {fileID: 11452014} + m_Layer: 5 + m_Name: ButtonY + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &196822 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22472176} + - 222: {fileID: 22258662} + - 114: {fileID: 11475148} + - 114: {fileID: 11435774} + m_Layer: 5 + m_Name: ButtonA + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11408624 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 180374} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 7f8465207205f3c4caa4b59f187a4142, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11421036 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 164034} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: d32f506bf4ef4e34d9cf8a98345229eb, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11427700 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 177352} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 1 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11430152 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 177352} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 98d7f118bcca34946a995c52bc40dea5, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11435774 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 196822} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 0 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11452014 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 180374} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 3 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11458340 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 164034} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 2 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11475148 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 196822} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 66f5f15b28bc24e489c3060f225b784e, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &22213998 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 177352} +--- !u!222 &22258662 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 196822} +--- !u!222 &22283278 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 164034} +--- !u!222 &22291678 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 180374} +--- !u!224 &22401852 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 164034} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 22420652} + m_RootOrder: 2 + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: -80, y: 0} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22420652 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 152608} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 22472176} + - {fileID: 22471342} + - {fileID: 22401852} + - {fileID: 22469846} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: -160, y: 160} + m_SizeDelta: {x: 240, y: 240} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22469846 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 180374} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 22420652} + m_RootOrder: 3 + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 80} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22471342 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 177352} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 22420652} + m_RootOrder: 1 + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 80, y: 0} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22472176 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 196822} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 22420652} + m_RootOrder: 0 + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: -80} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 152608} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/ABXY.prefab.meta b/Assets/CarbonInput/Prefabs/ABXY.prefab.meta new file mode 100644 index 0000000..8e2e995 --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ABXY.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ec6f70a5c6c810349bcf470e51ce5494 +timeCreated: 1455971368 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/ButtonA.prefab b/Assets/CarbonInput/Prefabs/ButtonA.prefab new file mode 100644 index 0000000..36f888a --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ButtonA.prefab @@ -0,0 +1,96 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &136336 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22458676} + - 222: {fileID: 22264398} + - 114: {fileID: 11406614} + - 114: {fileID: 11476600} + m_Layer: 5 + m_Name: ButtonA + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11406614 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 136336} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 66f5f15b28bc24e489c3060f225b784e, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11476600 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 136336} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 0 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!222 &22264398 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 136336} +--- !u!224 &22458676 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 136336} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: -100, y: 100} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 136336} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/ButtonA.prefab.meta b/Assets/CarbonInput/Prefabs/ButtonA.prefab.meta new file mode 100644 index 0000000..c572305 --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ButtonA.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c29b4a3ca19e3c146893f62a9b0a09b7 +timeCreated: 1455970982 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/ButtonB.prefab b/Assets/CarbonInput/Prefabs/ButtonB.prefab new file mode 100644 index 0000000..b6c31b1 --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ButtonB.prefab @@ -0,0 +1,96 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &145778 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22455710} + - 222: {fileID: 22238092} + - 114: {fileID: 11459902} + - 114: {fileID: 11433940} + m_Layer: 5 + m_Name: ButtonB + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11433940 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 145778} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 1 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11459902 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 145778} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 98d7f118bcca34946a995c52bc40dea5, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &22238092 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 145778} +--- !u!224 &22455710 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 145778} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: -100, y: 100} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 145778} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/ButtonB.prefab.meta b/Assets/CarbonInput/Prefabs/ButtonB.prefab.meta new file mode 100644 index 0000000..69c7b6d --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ButtonB.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 48798f42fd94748478e6d7489d2c497b +timeCreated: 1455971011 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/ButtonDark.prefab b/Assets/CarbonInput/Prefabs/ButtonDark.prefab new file mode 100644 index 0000000..0425b2f --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ButtonDark.prefab @@ -0,0 +1,96 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &124854 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22454138} + - 222: {fileID: 22228082} + - 114: {fileID: 11468662} + - 114: {fileID: 11462080} + m_Layer: 5 + m_Name: ButtonDark + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11462080 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 124854} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 0 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11468662 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 124854} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: a3b21943e4105164a81ac28614e7182b, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &22228082 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 124854} +--- !u!224 &22454138 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 124854} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: -100, y: 100} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 124854} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/ButtonDark.prefab.meta b/Assets/CarbonInput/Prefabs/ButtonDark.prefab.meta new file mode 100644 index 0000000..503389d --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ButtonDark.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1bce07889844b9a43be8674faff78daf +timeCreated: 1455970942 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/ButtonLight.prefab b/Assets/CarbonInput/Prefabs/ButtonLight.prefab new file mode 100644 index 0000000..24c5394 --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ButtonLight.prefab @@ -0,0 +1,96 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &195956 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22467676} + - 222: {fileID: 22235094} + - 114: {fileID: 11430224} + - 114: {fileID: 11452864} + m_Layer: 5 + m_Name: ButtonLight + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11430224 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 195956} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 35631bde8041e964db919ce6a28f44cb, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11452864 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 195956} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 0 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!222 &22235094 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 195956} +--- !u!224 &22467676 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 195956} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: -100, y: 100} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 195956} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/ButtonLight.prefab.meta b/Assets/CarbonInput/Prefabs/ButtonLight.prefab.meta new file mode 100644 index 0000000..06db9be --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ButtonLight.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 57034498e4c4f694090517ba46d5959b +timeCreated: 1455970961 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/ButtonX.prefab b/Assets/CarbonInput/Prefabs/ButtonX.prefab new file mode 100644 index 0000000..c8e7a9e --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ButtonX.prefab @@ -0,0 +1,96 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &117720 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22481748} + - 222: {fileID: 22272984} + - 114: {fileID: 11434498} + - 114: {fileID: 11404176} + m_Layer: 5 + m_Name: ButtonX + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11404176 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 117720} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 2 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11434498 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 117720} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: d32f506bf4ef4e34d9cf8a98345229eb, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &22272984 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 117720} +--- !u!224 &22481748 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 117720} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: -100, y: 100} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 117720} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/ButtonX.prefab.meta b/Assets/CarbonInput/Prefabs/ButtonX.prefab.meta new file mode 100644 index 0000000..be7750b --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ButtonX.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ca012f9a107be2047b3e0073c3dde4e5 +timeCreated: 1455971031 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/ButtonY.prefab b/Assets/CarbonInput/Prefabs/ButtonY.prefab new file mode 100644 index 0000000..84e31d8 --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ButtonY.prefab @@ -0,0 +1,96 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &117048 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22458876} + - 222: {fileID: 22289170} + - 114: {fileID: 11426404} + - 114: {fileID: 11400350} + m_Layer: 5 + m_Name: ButtonY + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11400350 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 117048} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 3 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11426404 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 117048} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 7f8465207205f3c4caa4b59f187a4142, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &22289170 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 117048} +--- !u!224 &22458876 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 117048} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: -100, y: 100} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 117048} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/ButtonY.prefab.meta b/Assets/CarbonInput/Prefabs/ButtonY.prefab.meta new file mode 100644 index 0000000..2464ab9 --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ButtonY.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3c02d6265ff8c2d48a4058190f10700e +timeCreated: 1455971045 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/DarkLeft.prefab b/Assets/CarbonInput/Prefabs/DarkLeft.prefab new file mode 100644 index 0000000..2d382ea --- /dev/null +++ b/Assets/CarbonInput/Prefabs/DarkLeft.prefab @@ -0,0 +1,112 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &189644 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22466770} + - 222: {fileID: 22212336} + - 114: {fileID: 11458888} + - 114: {fileID: 11491304} + m_Layer: 5 + m_Name: DarkLeft + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11458888 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 189644} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 0e521ba865a1a79469e23bf7868b8639, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11491304 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 189644} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 4 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!222 &22212336 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 189644} +--- !u!224 &22466770 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 189644} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: -80, y: 100} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: m_AnchoredPosition.x + value: -80 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_AnchoredPosition.y + value: 100 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 189644} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/DarkLeft.prefab.meta b/Assets/CarbonInput/Prefabs/DarkLeft.prefab.meta new file mode 100644 index 0000000..911d333 --- /dev/null +++ b/Assets/CarbonInput/Prefabs/DarkLeft.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4d9912fdfbb64444d8c73e47408e0eb5 +timeCreated: 1455971489 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/DarkRight.prefab b/Assets/CarbonInput/Prefabs/DarkRight.prefab new file mode 100644 index 0000000..13b14d1 --- /dev/null +++ b/Assets/CarbonInput/Prefabs/DarkRight.prefab @@ -0,0 +1,112 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &156660 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22482544} + - 222: {fileID: 22241634} + - 114: {fileID: 11488650} + - 114: {fileID: 11439980} + m_Layer: 5 + m_Name: DarkRight + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11439980 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 156660} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 5 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11488650 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 156660} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 0e521ba865a1a79469e23bf7868b8639, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &22241634 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 156660} +--- !u!224 &22482544 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 156660} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: -1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 80, y: 100} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: m_AnchoredPosition.x + value: 80 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_AnchoredPosition.y + value: 100 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 156660} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/DarkRight.prefab.meta b/Assets/CarbonInput/Prefabs/DarkRight.prefab.meta new file mode 100644 index 0000000..7c54b8c --- /dev/null +++ b/Assets/CarbonInput/Prefabs/DarkRight.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2fb5bf796ed55314a9f3141c51028729 +timeCreated: 1455971539 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/JoystickDark.prefab b/Assets/CarbonInput/Prefabs/JoystickDark.prefab new file mode 100644 index 0000000..b6a813a --- /dev/null +++ b/Assets/CarbonInput/Prefabs/JoystickDark.prefab @@ -0,0 +1,267 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &152846 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22489616} + - 222: {fileID: 22281626} + - 114: {fileID: 11458286} + m_Layer: 5 + m_Name: Base + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &176728 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22432750} + - 114: {fileID: 11418214} + - 222: {fileID: 22279256} + - 114: {fileID: 11483716} + m_Layer: 5 + m_Name: JoystickDark + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &188610 +GameObject: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22428180} + - 222: {fileID: 22296606} + - 114: {fileID: 11453276} + m_Layer: 5 + m_Name: Stick + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11418214 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 176728} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d08a4cd93a9455549863e3be1bc004f2, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + X: 0 + Y: 1 + TouchArea: {fileID: 22432750} + Base: {fileID: 22489616} + Stick: {fileID: 22428180} + Range: 60 + HideOnRelease: 0 + FadeoutDelay: 0 + FadeoutTime: 1 + Movable: 0 +--- !u!114 &11453276 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 188610} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: f21ba0f3526cf6542a7c0e99a06294c3, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11458286 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 152846} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 74ee184c93bf323408525923cd72c7ff, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11483716 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 176728} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &22279256 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 176728} +--- !u!222 &22281626 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 152846} +--- !u!222 &22296606 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 188610} +--- !u!224 &22428180 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 188610} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 22489616} + m_RootOrder: 0 + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22432750 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 176728} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 22489616} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 125, y: 125} + m_SizeDelta: {x: 250, y: 250} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22489616 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 152846} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 22428180} + m_Father: {fileID: 22432750} + m_RootOrder: 0 + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 128, y: 128} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: m_Delegates.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_Delegates.Array.data[0].callback.m_PersistentCalls.m_Calls.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_Delegates.Array.data[0].callback.m_PersistentCalls.m_Calls.Array.data[0].m_Target + value: + objectReference: {fileID: 11418214} + - target: {fileID: 0} + propertyPath: m_Delegates.Array.data[0].callback.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName + value: OnPointerDown + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_Delegates.Array.data[0].callback.m_PersistentCalls.m_Calls.Array.data[0].m_Mode + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_Delegates.Array.data[0].callback.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName + value: UnityEngine.Object, UnityEngine + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_Color.a + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 176728} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/JoystickDark.prefab.meta b/Assets/CarbonInput/Prefabs/JoystickDark.prefab.meta new file mode 100644 index 0000000..779fb44 --- /dev/null +++ b/Assets/CarbonInput/Prefabs/JoystickDark.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 116dc250b8127a341a39b9dcdd097ea0 +timeCreated: 1455970819 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/JoystickLight.prefab b/Assets/CarbonInput/Prefabs/JoystickLight.prefab new file mode 100644 index 0000000..829975e --- /dev/null +++ b/Assets/CarbonInput/Prefabs/JoystickLight.prefab @@ -0,0 +1,243 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &132496 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22452962} + - 222: {fileID: 22221562} + - 114: {fileID: 11407130} + m_Layer: 5 + m_Name: Base + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &140614 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22444744} + - 114: {fileID: 11420816} + - 222: {fileID: 22269278} + - 114: {fileID: 11451056} + m_Layer: 5 + m_Name: JoystickLight + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &194822 +GameObject: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22476684} + - 222: {fileID: 22284140} + - 114: {fileID: 11454240} + m_Layer: 5 + m_Name: Stick + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11407130 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 132496} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: add56e014af900b4c9ed27006168622d, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11420816 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 140614} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d08a4cd93a9455549863e3be1bc004f2, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + X: 0 + Y: 1 + TouchArea: {fileID: 22444744} + Base: {fileID: 22452962} + Stick: {fileID: 22476684} + Range: 60 + HideOnRelease: 0 + FadeoutDelay: 0 + FadeoutTime: 1 + Movable: 0 +--- !u!114 &11451056 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 140614} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11454240 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 194822} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: c25ba2b89072b5948a010d348ad1f4e6, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &22221562 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 132496} +--- !u!222 &22269278 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 140614} +--- !u!222 &22284140 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 194822} +--- !u!224 &22444744 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 140614} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 22452962} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 125, y: 125} + m_SizeDelta: {x: 250, y: 250} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22452962 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 132496} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 22476684} + m_Father: {fileID: 22444744} + m_RootOrder: 0 + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 128, y: 128} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22476684 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 194822} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 22452962} + m_RootOrder: 0 + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: m_Color.a + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 140614} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/JoystickLight.prefab.meta b/Assets/CarbonInput/Prefabs/JoystickLight.prefab.meta new file mode 100644 index 0000000..b5ce4cd --- /dev/null +++ b/Assets/CarbonInput/Prefabs/JoystickLight.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 847eab0d11e753b4ebaa1d89692a37c8 +timeCreated: 1455970909 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/LightLeft.prefab b/Assets/CarbonInput/Prefabs/LightLeft.prefab new file mode 100644 index 0000000..a3cb3e9 --- /dev/null +++ b/Assets/CarbonInput/Prefabs/LightLeft.prefab @@ -0,0 +1,112 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &198378 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22480398} + - 222: {fileID: 22284644} + - 114: {fileID: 11402132} + - 114: {fileID: 11421964} + m_Layer: 5 + m_Name: LightLeft + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11402132 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 198378} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 71b71d723bf58cc4b8ccf2a73c9ff969, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11421964 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 198378} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 4 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!222 &22284644 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 198378} +--- !u!224 &22480398 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 198378} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: -80, y: 100} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: m_AnchoredPosition.x + value: -80 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_AnchoredPosition.y + value: 100 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 198378} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/LightLeft.prefab.meta b/Assets/CarbonInput/Prefabs/LightLeft.prefab.meta new file mode 100644 index 0000000..ee45fdb --- /dev/null +++ b/Assets/CarbonInput/Prefabs/LightLeft.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: c456c46520e9421468f3b8147a10f752 +timeCreated: 1455971617 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/LightRight.prefab b/Assets/CarbonInput/Prefabs/LightRight.prefab new file mode 100644 index 0000000..6e06fbd --- /dev/null +++ b/Assets/CarbonInput/Prefabs/LightRight.prefab @@ -0,0 +1,120 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &137462 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22451656} + - 222: {fileID: 22277690} + - 114: {fileID: 11487216} + - 114: {fileID: 11401806} + m_Layer: 5 + m_Name: LightRight + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11401806 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 137462} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 5 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11487216 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 137462} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 71b71d723bf58cc4b8ccf2a73c9ff969, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!222 &22277690 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 137462} +--- !u!224 &22451656 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 137462} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: -1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 80, y: 100} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 0} + propertyPath: m_Name + value: LightRight + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_LocalScale.x + value: -1 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_AnchoredPosition.x + value: 80 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_AnchoredPosition.y + value: 100 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 137462} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/LightRight.prefab.meta b/Assets/CarbonInput/Prefabs/LightRight.prefab.meta new file mode 100644 index 0000000..722ef78 --- /dev/null +++ b/Assets/CarbonInput/Prefabs/LightRight.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 86bf568fb7006db428e59ff2cb9796a7 +timeCreated: 1455971559 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Prefabs/ScalableTouchControls.prefab b/Assets/CarbonInput/Prefabs/ScalableTouchControls.prefab new file mode 100644 index 0000000..0843b02 --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ScalableTouchControls.prefab @@ -0,0 +1,900 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &110668 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22450910} + m_Layer: 5 + m_Name: CenterButtons + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &111914 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22406342} + m_Layer: 5 + m_Name: ABXY + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &123712 +GameObject: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22479246} + - 222: {fileID: 22239272} + - 114: {fileID: 11427462} + m_Layer: 5 + m_Name: Stick + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &143790 +GameObject: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22488580} + - 222: {fileID: 22274110} + - 114: {fileID: 11477690} + m_Layer: 5 + m_Name: Base + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &148706 +GameObject: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22490950} + - 222: {fileID: 22251104} + - 114: {fileID: 11461050} + - 114: {fileID: 11453626} + m_Layer: 5 + m_Name: DarkLeft + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &162274 +GameObject: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22430694} + - 222: {fileID: 22227894} + - 114: {fileID: 11491506} + - 114: {fileID: 11470206} + m_Layer: 5 + m_Name: ButtonX + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &169700 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22452092} + - 114: {fileID: 11469692} + - 222: {fileID: 22228308} + - 114: {fileID: 11495884} + m_Layer: 5 + m_Name: JoystickDark + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &186134 +GameObject: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22477480} + - 222: {fileID: 22219872} + - 114: {fileID: 11464166} + - 114: {fileID: 11409156} + m_Layer: 5 + m_Name: ButtonB + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &187620 +GameObject: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22457654} + - 222: {fileID: 22243594} + - 114: {fileID: 11463626} + - 114: {fileID: 11493538} + m_Layer: 5 + m_Name: ButtonA + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &195544 +GameObject: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22443250} + - 223: {fileID: 22345542} + - 114: {fileID: 11496582} + - 114: {fileID: 11448644} + m_Layer: 5 + m_Name: ScalableTouchControls + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &197820 +GameObject: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22417428} + - 222: {fileID: 22227840} + - 114: {fileID: 11429134} + - 114: {fileID: 11486036} + m_Layer: 5 + m_Name: ButtonY + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1 &198038 +GameObject: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 4 + m_Component: + - 224: {fileID: 22467190} + - 222: {fileID: 22241688} + - 114: {fileID: 11458652} + - 114: {fileID: 11480536} + m_Layer: 5 + m_Name: DarkRight + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &11409156 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 186134} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 1 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11427462 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 123712} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: f21ba0f3526cf6542a7c0e99a06294c3, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11429134 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 197820} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 7f8465207205f3c4caa4b59f187a4142, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11448644 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 195544} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_IgnoreReversedGraphics: 1 + m_BlockingObjects: 0 + m_BlockingMask: + serializedVersion: 2 + m_Bits: 4294967295 +--- !u!114 &11453626 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 148706} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 4 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11458652 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 198038} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 0e521ba865a1a79469e23bf7868b8639, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11461050 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 148706} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 0e521ba865a1a79469e23bf7868b8639, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11463626 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 187620} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 66f5f15b28bc24e489c3060f225b784e, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11464166 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 186134} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 98d7f118bcca34946a995c52bc40dea5, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11469692 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 169700} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d08a4cd93a9455549863e3be1bc004f2, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + X: 0 + Y: 1 + TouchArea: {fileID: 22452092} + Base: {fileID: 22488580} + Stick: {fileID: 22479246} + Range: 60 + HideOnRelease: 0 + FadeoutDelay: 0 + FadeoutTime: 1 + Movable: 0 +--- !u!114 &11470206 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 162274} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 2 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11477690 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 143790} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: 74ee184c93bf323408525923cd72c7ff, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11480536 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 198038} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 5 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11486036 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 197820} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 3 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11491506 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 162274} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 21300000, guid: d32f506bf4ef4e34d9cf8a98345229eb, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11493538 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 187620} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d698f325b18cad948af4abeae474734d, type: 3} + m_Name: + m_EditorClassIdentifier: + Index: 0 + Button: 0 + OpacityPressed: 0.5 + OpacityReleased: 1 +--- !u!114 &11495884 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 169700} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 0} + m_RaycastTarget: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + m_Sprite: {fileID: 0} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 +--- !u!114 &11496582 +MonoBehaviour: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 195544} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} + m_Name: + m_EditorClassIdentifier: + m_UiScaleMode: 2 + m_ReferencePixelsPerUnit: 100 + m_ScaleFactor: 1 + m_ReferenceResolution: {x: 800, y: 600} + m_ScreenMatchMode: 0 + m_MatchWidthOrHeight: 0 + m_PhysicalUnit: 3 + m_FallbackScreenDPI: 96 + m_DefaultSpriteDPI: 96 + m_DynamicPixelsPerUnit: 1 +--- !u!222 &22219872 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 186134} +--- !u!222 &22227840 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 197820} +--- !u!222 &22227894 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 162274} +--- !u!222 &22228308 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 169700} +--- !u!222 &22239272 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 123712} +--- !u!222 &22241688 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 198038} +--- !u!222 &22243594 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 187620} +--- !u!222 &22251104 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 148706} +--- !u!222 &22274110 +CanvasRenderer: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 143790} +--- !u!223 &22345542 +Canvas: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 195544} + m_Enabled: 1 + serializedVersion: 2 + m_RenderMode: 0 + m_Camera: {fileID: 0} + m_PlaneDistance: 100 + m_PixelPerfect: 0 + m_ReceivesEvents: 1 + m_OverrideSorting: 0 + m_OverridePixelPerfect: 0 + m_SortingLayerID: 0 + m_SortingOrder: 0 + m_TargetDisplay: 0 +--- !u!224 &22406342 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 111914} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.3, y: 0.3, z: 0.3} + m_Children: + - {fileID: 22457654} + - {fileID: 22477480} + - {fileID: 22430694} + - {fileID: 22417428} + m_Father: {fileID: 22443250} + m_RootOrder: 1 + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: -45, y: 45} + m_SizeDelta: {x: 240, y: 240} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22417428 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 197820} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 22406342} + m_RootOrder: 3 + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 80} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22430694 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 162274} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 22406342} + m_RootOrder: 2 + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: -80, y: 0} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22443250 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 195544} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0, y: 0, z: 0} + m_Children: + - {fileID: 22452092} + - {fileID: 22406342} + - {fileID: 22450910} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0} +--- !u!224 &22450910 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 110668} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.3, y: 0.3, z: 0.3} + m_Children: + - {fileID: 22490950} + - {fileID: 22467190} + m_Father: {fileID: 22443250} + m_RootOrder: 2 + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 0, y: 20} + m_SizeDelta: {x: 240, y: 120} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22452092 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 169700} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 22488580} + m_Father: {fileID: 22443250} + m_RootOrder: 0 + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 125, y: 125} + m_SizeDelta: {x: 250, y: 250} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22457654 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 187620} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 22406342} + m_RootOrder: 0 + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: -80} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22467190 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 198038} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: -1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 22450910} + m_RootOrder: 1 + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: 80, y: 60} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22477480 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 186134} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 22406342} + m_RootOrder: 1 + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 80, y: 0} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22479246 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 123712} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 22488580} + m_RootOrder: 0 + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22488580 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 143790} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.3, y: 0.3, z: 0.3} + m_Children: + - {fileID: 22479246} + m_Father: {fileID: 22452092} + m_RootOrder: 0 + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 40, y: 40} + m_SizeDelta: {x: 128, y: 128} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!224 &22490950 +RectTransform: + m_ObjectHideFlags: 1 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 148706} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 22450910} + m_RootOrder: 0 + m_AnchorMin: {x: 0.5, y: 0} + m_AnchorMax: {x: 0.5, y: 0} + m_AnchoredPosition: {x: -80, y: 60} + m_SizeDelta: {x: 80, y: 80} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_ParentPrefab: {fileID: 0} + m_RootGameObject: {fileID: 195544} + m_IsPrefabParent: 1 diff --git a/Assets/CarbonInput/Prefabs/ScalableTouchControls.prefab.meta b/Assets/CarbonInput/Prefabs/ScalableTouchControls.prefab.meta new file mode 100644 index 0000000..274c48d --- /dev/null +++ b/Assets/CarbonInput/Prefabs/ScalableTouchControls.prefab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3d3633230af167e499c3b86fa512c473 +timeCreated: 1456499897 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources.meta b/Assets/CarbonInput/Resources.meta new file mode 100644 index 0000000..40e6fa7 --- /dev/null +++ b/Assets/CarbonInput/Resources.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: e07d00a3ed671f64d9351b2c8ed744aa +folderAsset: yes +timeCreated: 1455650047 +licenseType: Store +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/CarbonInput.asset b/Assets/CarbonInput/Resources/CarbonInput.asset new file mode 100644 index 0000000..a2606c5 --- /dev/null +++ b/Assets/CarbonInput/Resources/CarbonInput.asset @@ -0,0 +1,15 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4cd6a205b4f3e8440b49c91f90e95ea2, type: 3} + m_Name: CarbonInput + m_EditorClassIdentifier: + Behaviour: 2 + InvertedAxis: 0000000000000000 diff --git a/Assets/CarbonInput/Resources/CarbonInput.asset.meta b/Assets/CarbonInput/Resources/CarbonInput.asset.meta new file mode 100644 index 0000000..96b43cf --- /dev/null +++ b/Assets/CarbonInput/Resources/CarbonInput.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1eb106d74d83cf14bb6c504bfdbfb38c +timeCreated: 1455987453 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings.meta b/Assets/CarbonInput/Resources/Mappings.meta new file mode 100644 index 0000000..3f9aa58 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: fb1bc7cf9bb22d246bb9e5a943b045bf +folderAsset: yes +timeCreated: 1455647431 +licenseType: Store +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/IpegaAndroid.asset b/Assets/CarbonInput/Resources/Mappings/IpegaAndroid.asset new file mode 100644 index 0000000..5033ac0 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/IpegaAndroid.asset @@ -0,0 +1,112 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: IpegaAndroid + m_EditorClassIdentifier: + RegEx: ipega + Platform: 16 + Priority: 1000 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 1 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 2 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 3 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 1 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 1 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + Buttons: + - Button: 0 + Key: 0 + Type: 0 + - Button: 1 + Key: 0 + Type: 0 + - Button: 2 + Key: 0 + Type: 0 + - Button: 3 + Key: 0 + Type: 0 + - Button: 11 + Key: 0 + Type: 0 + - Button: 10 + Key: 0 + Type: 0 + - Button: 6 + Key: 0 + Type: 0 + - Button: 7 + Key: 0 + Type: 0 + - Button: 8 + Key: 0 + Type: 0 + - Button: 9 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/IpegaAndroid.asset.meta b/Assets/CarbonInput/Resources/Mappings/IpegaAndroid.asset.meta new file mode 100644 index 0000000..71c958a --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/IpegaAndroid.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 034df4ce79808e149a9255cc78260482 +timeCreated: 1455653394 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/IpegaPC.asset b/Assets/CarbonInput/Resources/Mappings/IpegaPC.asset new file mode 100644 index 0000000..c3aa300 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/IpegaPC.asset @@ -0,0 +1,112 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: IpegaPC + m_EditorClassIdentifier: + RegEx: ipega + Platform: 9 + Priority: 1000 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 1 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 2 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 3 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 6 + Alternative: 0 + Invert: 0 + Type: 1 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 7 + Alternative: 0 + Invert: 0 + Type: 1 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + Buttons: + - Button: 0 + Key: 0 + Type: 0 + - Button: 1 + Key: 0 + Type: 0 + - Button: 3 + Key: 0 + Type: 0 + - Button: 4 + Key: 0 + Type: 0 + - Button: 10 + Key: 0 + Type: 0 + - Button: 11 + Key: 0 + Type: 0 + - Button: 8 + Key: 0 + Type: 0 + - Button: 9 + Key: 0 + Type: 0 + - Button: 13 + Key: 0 + Type: 0 + - Button: 14 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/IpegaPC.asset.meta b/Assets/CarbonInput/Resources/Mappings/IpegaPC.asset.meta new file mode 100644 index 0000000..ade8e24 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/IpegaPC.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6f9480673e100654aaff98a08203d205 +timeCreated: 1455651120 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/Keyboard.asset b/Assets/CarbonInput/Resources/Mappings/Keyboard.asset new file mode 100644 index 0000000..793f21d --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/Keyboard.asset @@ -0,0 +1,114 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: Keyboard + m_EditorClassIdentifier: + RegEx: + Platform: -1 + Priority: 10000 + UseOnce: 1 + Replacable: 0 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: -1 + Max: 1 + Key1: 97 + Key2: 100 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: -1 + Max: 1 + Key1: 119 + Key2: 115 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + Buttons: + - Button: 0 + Key: 303 + Type: 1 + - Button: 0 + Key: 305 + Type: 1 + - Button: 0 + Key: 304 + Type: 1 + - Button: 0 + Key: 32 + Type: 1 + - Button: 0 + Key: 27 + Type: 1 + - Button: 0 + Key: 13 + Type: 1 + - Button: 0 + Key: 113 + Type: 1 + - Button: 0 + Key: 101 + Type: 1 + - Button: 0 + Key: 0 + Type: 1 + - Button: 0 + Key: 0 + Type: 1 diff --git a/Assets/CarbonInput/Resources/Mappings/Keyboard.asset.meta b/Assets/CarbonInput/Resources/Mappings/Keyboard.asset.meta new file mode 100644 index 0000000..ba20061 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/Keyboard.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: aee9744dc5605f84c8e05df8ef19e03d +timeCreated: 1455657308 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/Keyboard1.asset b/Assets/CarbonInput/Resources/Mappings/Keyboard1.asset new file mode 100644 index 0000000..f99955f --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/Keyboard1.asset @@ -0,0 +1,114 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: Keyboard1 + m_EditorClassIdentifier: + RegEx: + Platform: -1 + Priority: 10001 + UseOnce: 1 + Replacable: 0 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: -1 + Max: 1 + Key1: 276 + Key2: 275 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: -1 + Max: 1 + Key1: 273 + Key2: 274 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 2 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + Buttons: + - Button: 0 + Key: 257 + Type: 1 + - Button: 0 + Key: 258 + Type: 1 + - Button: 0 + Key: 260 + Type: 1 + - Button: 0 + Key: 261 + Type: 1 + - Button: 0 + Key: 270 + Type: 1 + - Button: 0 + Key: 271 + Type: 1 + - Button: 0 + Key: 0 + Type: 1 + - Button: 0 + Key: 0 + Type: 1 + - Button: 0 + Key: 0 + Type: 1 + - Button: 0 + Key: 0 + Type: 1 diff --git a/Assets/CarbonInput/Resources/Mappings/Keyboard1.asset.meta b/Assets/CarbonInput/Resources/Mappings/Keyboard1.asset.meta new file mode 100644 index 0000000..9926260 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/Keyboard1.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 49c407035cea807428ed9fcd895f61fd +timeCreated: 1506502733 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/PS3.asset b/Assets/CarbonInput/Resources/Mappings/PS3.asset new file mode 100644 index 0000000..b284d4a --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/PS3.asset @@ -0,0 +1,112 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: PS3 + m_EditorClassIdentifier: + RegEx: ps3 + Platform: 9 + Priority: 1000 + Axes: + - Axis: 1 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 2 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 1 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 1 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 6 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + Buttons: + - Button: 2 + Key: 0 + Type: 0 + - Button: 1 + Key: 0 + Type: 0 + - Button: 3 + Key: 0 + Type: 0 + - Button: 0 + Key: 0 + Type: 0 + - Button: 8 + Key: 0 + Type: 0 + - Button: 9 + Key: 0 + Type: 0 + - Button: 6 + Key: 0 + Type: 0 + - Button: 7 + Key: 0 + Type: 0 + - Button: 10 + Key: 0 + Type: 0 + - Button: 11 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/PS3.asset.meta b/Assets/CarbonInput/Resources/Mappings/PS3.asset.meta new file mode 100644 index 0000000..3506ac5 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/PS3.asset.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 9aa47509ceb629443976f61c00afca8f +labels: +- Playstation +- Gamepad +- Input +- Joystick +timeCreated: 1456003139 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/PS4.asset b/Assets/CarbonInput/Resources/Mappings/PS4.asset new file mode 100644 index 0000000..4fd933f --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/PS4.asset @@ -0,0 +1,114 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: PS4 + m_EditorClassIdentifier: + RegEx: wireless + Platform: 9 + Priority: 5000 + UseOnce: 0 + Replacable: 0 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 1 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 2 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 3 + Alternative: 0 + Invert: 0 + Type: 5 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 5 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 6 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 7 + Alternative: 0 + Invert: 1 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + Buttons: + - Button: 1 + Key: 0 + Type: 0 + - Button: 2 + Key: 0 + Type: 0 + - Button: 0 + Key: 0 + Type: 0 + - Button: 3 + Key: 0 + Type: 0 + - Button: 13 + Key: 0 + Type: 0 + - Button: 9 + Key: 0 + Type: 0 + - Button: 4 + Key: 0 + Type: 0 + - Button: 5 + Key: 0 + Type: 0 + - Button: 10 + Key: 0 + Type: 0 + - Button: 11 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/PS4.asset.meta b/Assets/CarbonInput/Resources/Mappings/PS4.asset.meta new file mode 100644 index 0000000..2197e08 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/PS4.asset.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: dd8789a5f4fbd9848880be7482e0eb21 +labels: +- Playstation +- Gamepad +- Input +- Joystick +timeCreated: 1463816518 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/PS4Linux.asset b/Assets/CarbonInput/Resources/Mappings/PS4Linux.asset new file mode 100644 index 0000000..c6da4d5 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/PS4Linux.asset @@ -0,0 +1,114 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: PS4Linux + m_EditorClassIdentifier: + RegEx: ps4 + Platform: 2 + Priority: 1000 + UseOnce: 0 + Replacable: 0 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 1 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 3 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 2 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 6 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 7 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + Buttons: + - Button: 0 + Key: 0 + Type: 0 + - Button: 1 + Key: 0 + Type: 0 + - Button: 2 + Key: 0 + Type: 0 + - Button: 3 + Key: 0 + Type: 0 + - Button: 6 + Key: 0 + Type: 0 + - Button: 7 + Key: 0 + Type: 0 + - Button: 4 + Key: 0 + Type: 0 + - Button: 5 + Key: 0 + Type: 0 + - Button: 9 + Key: 0 + Type: 0 + - Button: 10 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/PS4Linux.asset.meta b/Assets/CarbonInput/Resources/Mappings/PS4Linux.asset.meta new file mode 100644 index 0000000..e46525b --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/PS4Linux.asset.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 51e7a2a258dc73b40a4daf2a4b08b7a3 +labels: +- Playstation +- Gamepad +- Input +- Joystick +timeCreated: 1552659302 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/PS4_Android.asset b/Assets/CarbonInput/Resources/Mappings/PS4_Android.asset new file mode 100644 index 0000000..77342ad --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/PS4_Android.asset @@ -0,0 +1,112 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: PS4_Android + m_EditorClassIdentifier: + RegEx: Wireless + Platform: 16 + Priority: 5000 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 1 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 13 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 14 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 2 + Alternative: 0 + Invert: 0 + Type: 5 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 3 + Alternative: 0 + Invert: 0 + Type: 5 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + Buttons: + - Button: 1 + Key: 0 + Type: 0 + - Button: 13 + Key: 0 + Type: 0 + - Button: 0 + Key: 0 + Type: 0 + - Button: 2 + Key: 0 + Type: 0 + - Button: 8 + Key: 0 + Type: 0 + - Button: 7 + Key: 0 + Type: 0 + - Button: 3 + Key: 0 + Type: 0 + - Button: 14 + Key: 0 + Type: 0 + - Button: 11 + Key: 0 + Type: 0 + - Button: 10 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/PS4_Android.asset.meta b/Assets/CarbonInput/Resources/Mappings/PS4_Android.asset.meta new file mode 100644 index 0000000..344d28a --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/PS4_Android.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e75502fcb82fb764f9c0b69778b0c622 +timeCreated: 1487851622 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/PS4_Mac.asset b/Assets/CarbonInput/Resources/Mappings/PS4_Mac.asset new file mode 100644 index 0000000..8ef1259 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/PS4_Mac.asset @@ -0,0 +1,114 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: PS4_Mac + m_EditorClassIdentifier: + RegEx: wireless + Platform: 4 + Priority: 5000 + UseOnce: 0 + Replacable: 0 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 1 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 2 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 3 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 5 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 5 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 6 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 7 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + Buttons: + - Button: 1 + Key: 0 + Type: 0 + - Button: 2 + Key: 0 + Type: 0 + - Button: 0 + Key: 0 + Type: 0 + - Button: 3 + Key: 0 + Type: 0 + - Button: 8 + Key: 0 + Type: 0 + - Button: 9 + Key: 0 + Type: 0 + - Button: 4 + Key: 0 + Type: 0 + - Button: 5 + Key: 0 + Type: 0 + - Button: 10 + Key: 0 + Type: 0 + - Button: 11 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/PS4_Mac.asset.meta b/Assets/CarbonInput/Resources/Mappings/PS4_Mac.asset.meta new file mode 100644 index 0000000..366f9c5 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/PS4_Mac.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: fb276e9600faa4444b3cf4e04fd9e547 +timeCreated: 1524938762 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/PS4_bluetooth.asset b/Assets/CarbonInput/Resources/Mappings/PS4_bluetooth.asset new file mode 100644 index 0000000..2fe091f --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/PS4_bluetooth.asset @@ -0,0 +1,114 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: PS4_bluetooth + m_EditorClassIdentifier: + RegEx: wireless + Platform: 3 + Priority: 5001 + UseOnce: 0 + Replacable: 0 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 2 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 3 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 6 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 5 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 5 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 7 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 8 + Alternative: 0 + Invert: 1 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + Buttons: + - Button: 1 + Key: 0 + Type: 0 + - Button: 2 + Key: 0 + Type: 0 + - Button: 0 + Key: 0 + Type: 0 + - Button: 3 + Key: 0 + Type: 0 + - Button: 13 + Key: 0 + Type: 0 + - Button: 9 + Key: 0 + Type: 0 + - Button: 4 + Key: 0 + Type: 0 + - Button: 5 + Key: 0 + Type: 0 + - Button: 10 + Key: 0 + Type: 0 + - Button: 11 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/PS4_bluetooth.asset.meta b/Assets/CarbonInput/Resources/Mappings/PS4_bluetooth.asset.meta new file mode 100644 index 0000000..fab1543 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/PS4_bluetooth.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7166d2c27fe573241b8e66b80a7d4732 +timeCreated: 1489773363 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/WebGL.asset b/Assets/CarbonInput/Resources/Mappings/WebGL.asset new file mode 100644 index 0000000..61efb7a --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/WebGL.asset @@ -0,0 +1,114 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: WebGL + m_EditorClassIdentifier: + RegEx: .+ + Platform: 8192 + Priority: 1000 + UseOnce: 0 + Replacable: 0 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 1 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 2 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 3 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 6 + Alternative: 0 + Invert: 0 + Type: 1 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 7 + Alternative: 0 + Invert: 0 + Type: 1 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 14 + Alternative: 15 + Invert: 0 + Type: 4 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 12 + Alternative: 13 + Invert: 0 + Type: 4 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + Buttons: + - Button: 0 + Key: 0 + Type: 0 + - Button: 1 + Key: 0 + Type: 0 + - Button: 2 + Key: 0 + Type: 0 + - Button: 3 + Key: 0 + Type: 0 + - Button: 8 + Key: 0 + Type: 0 + - Button: 9 + Key: 0 + Type: 0 + - Button: 4 + Key: 0 + Type: 0 + - Button: 5 + Key: 0 + Type: 0 + - Button: 10 + Key: 0 + Type: 0 + - Button: 11 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/WebGL.asset.meta b/Assets/CarbonInput/Resources/Mappings/WebGL.asset.meta new file mode 100644 index 0000000..62f893a --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/WebGL.asset.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 5aeb14dfd92cb0f479005f32f78ac028 +labels: +- XBox +- Input +- Joystick +- Gamepad +timeCreated: 1537287510 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/XBox360.asset b/Assets/CarbonInput/Resources/Mappings/XBox360.asset new file mode 100644 index 0000000..4263998 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/XBox360.asset @@ -0,0 +1,112 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: XBox360 + m_EditorClassIdentifier: + RegEx: xbox + Platform: 777 + Priority: 1000 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 1 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 3 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 8 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 9 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 6 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + Buttons: + - Button: 0 + Key: 0 + Type: 0 + - Button: 1 + Key: 0 + Type: 0 + - Button: 2 + Key: 0 + Type: 0 + - Button: 3 + Key: 0 + Type: 0 + - Button: 6 + Key: 0 + Type: 0 + - Button: 7 + Key: 0 + Type: 0 + - Button: 4 + Key: 0 + Type: 0 + - Button: 5 + Key: 0 + Type: 0 + - Button: 8 + Key: 0 + Type: 0 + - Button: 9 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/XBox360.asset.meta b/Assets/CarbonInput/Resources/Mappings/XBox360.asset.meta new file mode 100644 index 0000000..e893339 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/XBox360.asset.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 05366f449e4db8b46acff3b727024c3c +labels: +- XBox +- Input +- Joystick +- Gamepad +timeCreated: 1455650990 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/XBox360Linux.asset b/Assets/CarbonInput/Resources/Mappings/XBox360Linux.asset new file mode 100644 index 0000000..5c42910 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/XBox360Linux.asset @@ -0,0 +1,114 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: XBox360Linux + m_EditorClassIdentifier: + RegEx: xbox|xinput + Platform: 2 + Priority: 1000 + UseOnce: 0 + Replacable: 0 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 1 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 3 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 2 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 6 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 7 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + Buttons: + - Button: 0 + Key: 0 + Type: 0 + - Button: 1 + Key: 0 + Type: 0 + - Button: 2 + Key: 0 + Type: 0 + - Button: 3 + Key: 0 + Type: 0 + - Button: 6 + Key: 0 + Type: 0 + - Button: 7 + Key: 0 + Type: 0 + - Button: 4 + Key: 0 + Type: 0 + - Button: 5 + Key: 0 + Type: 0 + - Button: 9 + Key: 0 + Type: 0 + - Button: 10 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/XBox360Linux.asset.meta b/Assets/CarbonInput/Resources/Mappings/XBox360Linux.asset.meta new file mode 100644 index 0000000..b0121cb --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/XBox360Linux.asset.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 4cfb560a52b967c419887967d0173ed4 +labels: +- XBox +- Input +- Joystick +- Gamepad +timeCreated: 1455658961 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/XBox360Mac.asset b/Assets/CarbonInput/Resources/Mappings/XBox360Mac.asset new file mode 100644 index 0000000..89fb1de --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/XBox360Mac.asset @@ -0,0 +1,112 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: XBox360Mac + m_EditorClassIdentifier: + RegEx: xbox + Platform: 4 + Priority: 1000 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 1 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 2 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 3 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 7 + Alternative: 8 + Invert: 0 + Type: 4 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + - Axis: 6 + Alternative: 5 + Invert: 0 + Type: 4 + Min: 0 + Max: 0 + Key1: 0 + Key2: 0 + Buttons: + - Button: 16 + Key: 0 + Type: 0 + - Button: 17 + Key: 0 + Type: 0 + - Button: 18 + Key: 0 + Type: 0 + - Button: 19 + Key: 0 + Type: 0 + - Button: 10 + Key: 0 + Type: 0 + - Button: 9 + Key: 0 + Type: 0 + - Button: 13 + Key: 0 + Type: 0 + - Button: 14 + Key: 0 + Type: 0 + - Button: 11 + Key: 0 + Type: 0 + - Button: 12 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/XBox360Mac.asset.meta b/Assets/CarbonInput/Resources/Mappings/XBox360Mac.asset.meta new file mode 100644 index 0000000..63f4eef --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/XBox360Mac.asset.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 807f5f87df86f7241b0d220b44bb66fa +labels: +- XBox +- Input +- Joystick +- Gamepad +timeCreated: 1455658834 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/XBox360Wired.asset b/Assets/CarbonInput/Resources/Mappings/XBox360Wired.asset new file mode 100644 index 0000000..bb85715 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/XBox360Wired.asset @@ -0,0 +1,112 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: XBox360Wired + m_EditorClassIdentifier: + RegEx: gamepad + Platform: 777 + Priority: 5000 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 1 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 3 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 8 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 9 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 6 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + Buttons: + - Button: 0 + Key: 34 + Type: 0 + - Button: 1 + Key: 0 + Type: 0 + - Button: 2 + Key: 0 + Type: 0 + - Button: 3 + Key: 0 + Type: 0 + - Button: 6 + Key: 0 + Type: 0 + - Button: 7 + Key: 0 + Type: 0 + - Button: 4 + Key: 0 + Type: 0 + - Button: 5 + Key: 0 + Type: 0 + - Button: 8 + Key: 0 + Type: 0 + - Button: 9 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/XBox360Wired.asset.meta b/Assets/CarbonInput/Resources/Mappings/XBox360Wired.asset.meta new file mode 100644 index 0000000..bac17d2 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/XBox360Wired.asset.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 2ce22171acdf274448914aec6dbe4fe5 +labels: +- XBox +- Input +- Joystick +- Gamepad +timeCreated: 1463836712 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Resources/Mappings/XboxOne.asset b/Assets/CarbonInput/Resources/Mappings/XboxOne.asset new file mode 100644 index 0000000..a18e026 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/XboxOne.asset @@ -0,0 +1,112 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_PrefabParentObject: {fileID: 0} + m_PrefabInternal: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c038c960b0ce7624993fdb8e9953dba8, type: 3} + m_Name: XboxOne + m_EditorClassIdentifier: + RegEx: Xbox One + Platform: 777 + Priority: 999 + Axes: + - Axis: 0 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 1 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 3 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 4 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 8 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 9 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 5 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + - Axis: 6 + Alternative: 0 + Invert: 0 + Type: 0 + Min: 0 + Max: 1 + Key1: 0 + Key2: 0 + Buttons: + - Button: 0 + Key: 0 + Type: 0 + - Button: 1 + Key: 0 + Type: 0 + - Button: 2 + Key: 0 + Type: 0 + - Button: 3 + Key: 0 + Type: 0 + - Button: 6 + Key: 0 + Type: 0 + - Button: 7 + Key: 0 + Type: 0 + - Button: 4 + Key: 0 + Type: 0 + - Button: 5 + Key: 0 + Type: 0 + - Button: 8 + Key: 0 + Type: 0 + - Button: 9 + Key: 0 + Type: 0 diff --git a/Assets/CarbonInput/Resources/Mappings/XboxOne.asset.meta b/Assets/CarbonInput/Resources/Mappings/XboxOne.asset.meta new file mode 100644 index 0000000..f819e76 --- /dev/null +++ b/Assets/CarbonInput/Resources/Mappings/XboxOne.asset.meta @@ -0,0 +1,13 @@ +fileFormatVersion: 2 +guid: 0d6f41ac97e54fb4095ef14175d950e7 +labels: +- XBox +- Input +- Joystick +- Gamepad +timeCreated: 1463937137 +licenseType: Store +NativeFormatImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts.meta b/Assets/CarbonInput/Scripts.meta new file mode 100644 index 0000000..9d843a8 --- /dev/null +++ b/Assets/CarbonInput/Scripts.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 9b21b4e5284aeb04da576c4b6a56a435 +folderAsset: yes +timeCreated: 1455659158 +licenseType: Store +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/CarbonController.cs b/Assets/CarbonInput/Scripts/CarbonController.cs new file mode 100644 index 0000000..e870cb5 --- /dev/null +++ b/Assets/CarbonInput/Scripts/CarbonController.cs @@ -0,0 +1,268 @@ +using UnityEngine; + +// Users don't have to use this directly, so there is no need to have this in global namespace +namespace CarbonInput { + /// + /// Describes a mapping for a specific controller. This mapping is independend of the PlayerIndex. + /// Each CarbonController defines how buttons and axes are mapped correctly to the Unity Input. + /// + [CreateAssetMenu(fileName = "NewCarbonMapping", menuName = "Carbon Input/GamePad Mapping")] + public class CarbonController : ScriptableObject { + /// + /// Number of buttons defined in the enumeration. + /// + public const int ButtonCount = 10; // Must match the CButton enum! + /// + /// Number of axes defined in the enumeration. + /// + public const int AxisCount = 8; // Must match the CAxis enum! + /// + /// Number of generated axes, + /// + public const int InputAxisCount = 16; // Must match the number of generated Input axes! + /// + /// Number of joystick buttons supported by unity. + /// + public const int JoystickButtonCount = 20; // Number of joystick buttons supported by Unity + /// + /// Number of entries in enumeration. + /// + public const int PlayerIndices = 9; // Any, One, ..., Eight + /// + /// Prefix of all generated axes. + /// + public const string Tag = "cin_Axis"; + + /// + /// Mapping of [, JoystickAxis] to its name. + /// + private static readonly string[,] AxisNames; + static CarbonController() { + // construct all strings beforehand + AxisNames = new string[PlayerIndices, InputAxisCount]; + for(int id = 0; id < PlayerIndices; id++) { + for(int axis = 0; axis < InputAxisCount; axis++) { + AxisNames[id, axis] = CreateName(id, axis); + } + } + } + /// + /// Create the input axis name for and axis. + /// + /// + /// + /// + public static string CreateName(int id, int axis) { + return Tag + id + "_" + axis.ToString("D2"); + } + + /// + /// Regular expression used to check if this mapping can be used for a controller. + /// + public string RegEx; + /// + /// Platforms supported by this mapping. + /// + public CPlatform Platform; + /// + /// Priority of this mapping. On startup the system will try to find a correct mapping for all controller. Lower priority mappings will be tester earlier. + /// + public int Priority = 1000; + /// + /// If true, this mapping will only be used once, even if it could be used multiple times. + /// + public bool UseOnce; + /// + /// If true, this mapping can be replaced by touch mappings. + /// + public bool Replacable; + /// + /// All mappings for all possible . This array must have exactly many entries. + /// + public AxisMapping[] Axes = new AxisMapping[AxisCount]; + /// + /// All mappings for all possible s. This array must have exactly many entries. + /// + public ButtonMapping[] Buttons = new ButtonMapping[ButtonCount]; + + /// + /// Returns true if this mapping is a fallback mapping. + /// A mapping is considered a fallback, if it doesn't have a proper . + /// By default, the keyboard is considered a fallback mapping. + /// + /// + public bool IsFallback() { + return string.IsNullOrEmpty(RegEx); + } + + public CarbonController() { + for(int i = 0; i < Buttons.Length; i++) Buttons[i] = new ButtonMapping(); + for(int i = 0; i < Axes.Length; i++) Axes[i] = new AxisMapping(); + } + + /// + /// Checks if controller button btn of player id is pressed. + /// + /// GamePad button + /// Index of player + /// + public virtual bool GetButton(CButton btn, int id) { + ButtonMapping key = Buttons[(int)btn]; + if(key.Type == ButtonMapping.ButtonType.Wrapper) { + if(key.Key != KeyCode.None) return Input.GetKey(key.Key); + } else { + //JoystickButton0 = 330 ... JoystickButton19 = 349 + //Joystick1Button0 = 350 ... Joystick1Button19 = 369 + // ... + //Joystick8Button0 = 490 ... Joystick8Button19 = 509 + return Input.GetKey(KeyCode.JoystickButton0 + id * JoystickButtonCount + key.Button); + } + return false; + } + + /// + /// Returns the value of the virtual axis of player identified by the parameter; + /// + /// + /// + /// + public virtual float GetAxis(CAxis axis, int id) { + AxisMapping mapping = Axes[(int)axis]; + float result = 0; + switch(mapping.Type) { + case AxisMapping.AxisType.Default: + result = Input.GetAxis(AxisNames[id, mapping.Axis]); + break; + case AxisMapping.AxisType.ButtonWrapper: + result = Input.GetKey(KeyCode.JoystickButton0 + id * JoystickButtonCount + mapping.Axis) ? mapping.Max : mapping.Min; + break; + case AxisMapping.AxisType.KeyWrapper: + bool key1 = Input.GetKey(mapping.Key1); + bool key2 = Input.GetKey(mapping.Key2); + if(key1 && !key2) result = -1; + else if(!key1 && key2) result = 1; + else result = 0; + break; + case AxisMapping.AxisType.Clamped: + result = Mathf.Clamp(Input.GetAxis(AxisNames[id, mapping.Axis]), mapping.Min, mapping.Max); + break; + case AxisMapping.AxisType.ButtonWrapper2: + key1 = Input.GetKey(KeyCode.JoystickButton0 + id * JoystickButtonCount + mapping.Axis); + key2 = Input.GetKey(KeyCode.JoystickButton0 + id * JoystickButtonCount + mapping.Alternative); + if(key1 && !key2) result = -1; + else if(!key1 && key2) result = 1; + else result = 0; + break; + case AxisMapping.AxisType.TriggerLimiter: + result = (Input.GetAxis(AxisNames[id, mapping.Axis]) + 1f) / 2f; + break; + } + if(mapping.Invert) return -result; + return result; + } + + /// + /// Returns true if this mapping is supported on the execution platform. + /// + /// + public bool SupportedOnThisPlatform() { + switch(Application.platform) { + case RuntimePlatform.WebGLPlayer: return Has(CPlatform.WebGL); + case RuntimePlatform.Android: return Has(CPlatform.Android); + case RuntimePlatform.IPhonePlayer: return Has(CPlatform.IOS); + case RuntimePlatform.LinuxEditor: + case RuntimePlatform.LinuxPlayer: return Has(CPlatform.Linux); + case RuntimePlatform.OSXEditor: + case RuntimePlatform.OSXPlayer: + return Has(CPlatform.OSX); + case RuntimePlatform.PS4: return Has(CPlatform.PS4); +#if !UNITY_2018_3_OR_NEWER + case RuntimePlatform.PSP2: return Has(CPlatform.PSP2); +#endif +#if !UNITY_2018_1_OR_NEWER + case RuntimePlatform.WiiU: return Has(CPlatform.Wii); +#endif + case RuntimePlatform.WindowsEditor: + case RuntimePlatform.WindowsPlayer: return Has(CPlatform.Windows); + case RuntimePlatform.WSAPlayerARM: + case RuntimePlatform.WSAPlayerX64: + case RuntimePlatform.WSAPlayerX86: return Has(CPlatform.WSA); + case RuntimePlatform.XboxOne: return Has(CPlatform.XBoxOne); + } + return false; + } + + + /// + /// Checks if the given is set in . + /// + /// + /// + private bool Has(CPlatform flag) { + return (Platform & flag) == flag; + } + + /// + /// This will return a fallback instance, using the keyboard. + /// + /// + public static CarbonController CreateFallback() { + CarbonController cc = CreateInstance(); + cc.Platform = (CPlatform)(-1); + MakeKeyWrapper(cc.Buttons[0], KeyCode.RightShift); + MakeKeyWrapper(cc.Buttons[1], KeyCode.RightControl); + MakeKeyWrapper(cc.Buttons[2], KeyCode.LeftShift); + MakeKeyWrapper(cc.Buttons[3], KeyCode.Space); + MakeKeyWrapper(cc.Buttons[4], KeyCode.Escape); + MakeKeyWrapper(cc.Buttons[5], KeyCode.Return); + MakeKeyWrapper(cc.Buttons[6], KeyCode.Q); + MakeKeyWrapper(cc.Buttons[7], KeyCode.E); + MakeKeyWrapper(cc.Buttons[8]); + MakeKeyWrapper(cc.Buttons[9]); + MakeKeyWrapper(cc.Axes[0], KeyCode.A, KeyCode.D); + MakeKeyWrapper(cc.Axes[1], KeyCode.W, KeyCode.S); + for(int i = 2; i < AxisCount; i++) MakeKeyWrapper(cc.Axes[i]); + return cc; + } + + /// + /// This will return a fallback instance, which doesn't respond to any key. + /// + /// + public static CarbonController CreateDisabledInput() { + var cc = CreateInstance(); + cc.name = "DisabledInput"; + cc.Platform = (CPlatform)(-1); + cc.Replacable = true; + for(int i = 0; i < ButtonCount; i++) + MakeKeyWrapper(cc.Buttons[i]); + for(int i = 0; i < AxisCount; i++) + MakeKeyWrapper(cc.Axes[i]); + return cc; + } + + /// + /// Sets the given to be a + /// + /// + /// + /// + private static void MakeKeyWrapper(AxisMapping mapping, KeyCode key1 = KeyCode.None, KeyCode key2 = KeyCode.None) { + mapping.Type = AxisMapping.AxisType.KeyWrapper; + mapping.Key1 = key1; + mapping.Min = key1 != KeyCode.None ? -1 : 0; + mapping.Key2 = key2; + mapping.Max = key2 != KeyCode.None ? 1 : 0; + } + + /// + /// Sets the given to be a . + /// + /// + /// + private static void MakeKeyWrapper(ButtonMapping mapping, KeyCode key = KeyCode.None) { + mapping.Type = ButtonMapping.ButtonType.Wrapper; + mapping.Key = key; + } + } +} diff --git a/Assets/CarbonInput/Scripts/CarbonController.cs.meta b/Assets/CarbonInput/Scripts/CarbonController.cs.meta new file mode 100644 index 0000000..93f1ed8 --- /dev/null +++ b/Assets/CarbonInput/Scripts/CarbonController.cs.meta @@ -0,0 +1,16 @@ +fileFormatVersion: 2 +guid: c038c960b0ce7624993fdb8e9953dba8 +labels: +- Gamepad +- Input +- Joystick +timeCreated: 1455638784 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/CarbonInputModule.cs b/Assets/CarbonInput/Scripts/CarbonInputModule.cs new file mode 100644 index 0000000..23f345a --- /dev/null +++ b/Assets/CarbonInput/Scripts/CarbonInputModule.cs @@ -0,0 +1,469 @@ +using System; +using UnityEngine; +using UnityEngine.EventSystems; +using UnityEngine.Serialization; + +namespace CarbonInput { + [AddComponentMenu("Event/Carbon Input Module")] + public class CarbonInputModule : PointerInputModule { + private const float Threshold = 0.3f; + public PlayerIndex Player = PlayerIndex.Any; + public CAxis HorizontalAxis = CAxis.LX; + public bool InvertHorizontal; + public CAxis VerticalAxis = CAxis.LY; + public bool InvertVertical = true; + public CButton SubmitButton = CButton.A; + public CButton CancelButton = CButton.B; + + private float m_PrevActionTime; + private Vector2 m_LastMoveVector; + private int m_ConsecutiveMoveCount; + + private Vector2 m_LastMousePosition; + private Vector2 m_MousePosition; + private Vector2 _lastRawMove; + + private bool HorizontalPressed { get { return Math.Abs(_lastRawMove.x) < Threshold && Math.Abs(GamePad.GetAxis(HorizontalAxis, Player)) > Threshold; } } + private bool VerticalPressed { get { return Math.Abs(_lastRawMove.y) < Threshold && Math.Abs(GamePad.GetAxis(VerticalAxis, Player)) > Threshold; } } + + protected CarbonInputModule() { + } + + [Obsolete("Mode is no longer needed on input module as it handles both mouse and keyboard simultaneously.", false)] + public enum InputMode { + Mouse, + Buttons + } + + [Obsolete("Mode is no longer needed on input module as it handles both mouse and keyboard simultaneously.", false)] + public InputMode inputMode { + get { return InputMode.Mouse; } + } + + [SerializeField] + private float m_InputActionsPerSecond = 10; + + [SerializeField] + private float m_RepeatDelay = 0.5f; + + [SerializeField] + [FormerlySerializedAs("m_AllowActivationOnMobileDevice")] + private bool m_ForceModuleActive; + + [Obsolete("allowActivationOnMobileDevice has been deprecated. Use forceModuleActive instead (UnityUpgradable) -> forceModuleActive")] + public bool allowActivationOnMobileDevice { + get { return m_ForceModuleActive; } + set { m_ForceModuleActive = value; } + } + + public bool forceModuleActive { + get { return m_ForceModuleActive; } + set { m_ForceModuleActive = value; } + } + + public float inputActionsPerSecond { + get { return m_InputActionsPerSecond; } + set { m_InputActionsPerSecond = value; } + } + + public float repeatDelay { + get { return m_RepeatDelay; } + set { m_RepeatDelay = value; } + } + + public override void UpdateModule() { + m_LastMousePosition = m_MousePosition; + m_MousePosition = Input.mousePosition; + } + + public override bool IsModuleSupported() { + return m_ForceModuleActive || Input.mousePresent || Input.touchSupported; + } + + public override bool ShouldActivateModule() { + if(!base.ShouldActivateModule()) + return false; + + var state = GamePad.GetState(Player); + var shouldActivate = m_ForceModuleActive; + shouldActivate |= state.Pressed(SubmitButton); + shouldActivate |= state.Pressed(CancelButton); + shouldActivate |= GetRawMoveVector().sqrMagnitude > 0.0f; + shouldActivate |= (m_MousePosition - m_LastMousePosition).sqrMagnitude > 0.0f; + shouldActivate |= Input.GetMouseButtonDown(0); + + if(Input.touchCount > 0) + shouldActivate = true; + + return shouldActivate; + } + + public override void ActivateModule() { + base.ActivateModule(); + m_MousePosition = Input.mousePosition; + m_LastMousePosition = Input.mousePosition; + + var toSelect = eventSystem.currentSelectedGameObject; + if(toSelect == null) + toSelect = eventSystem.firstSelectedGameObject; + + eventSystem.SetSelectedGameObject(toSelect, GetBaseEventData()); + } + + public override void DeactivateModule() { + base.DeactivateModule(); + ClearSelection(); + } + + public override void Process() { + bool usedEvent = SendUpdateEventToSelectedObject(); + + if(eventSystem.sendNavigationEvents) { + if(!usedEvent) + usedEvent |= SendMoveEventToSelectedObject(); + + if(!usedEvent) + SendSubmitEventToSelectedObject(); + } + + // touch needs to take precedence because of the mouse emulation layer + if(!ProcessTouchEvents()) + ProcessMouseEvent(); + _lastRawMove = GetRawMoveVector(); + } + + private bool ProcessTouchEvents() { + for(int i = 0; i < Input.touchCount; ++i) { + Touch input = Input.GetTouch(i); + + if(input.type == TouchType.Indirect) + continue; + + bool released; + bool pressed; + var pointer = GetTouchPointerEventData(input, out pressed, out released); + + ProcessTouchPress(pointer, pressed, released); + + if(!released) { + ProcessMove(pointer); + ProcessDrag(pointer); + } else + RemovePointerData(pointer); + } + return Input.touchCount > 0; + } + + private void ProcessTouchPress(PointerEventData pointerEvent, bool pressed, bool released) { + var currentOverGo = pointerEvent.pointerCurrentRaycast.gameObject; + + // PointerDown notification + if(pressed) { + pointerEvent.eligibleForClick = true; + pointerEvent.delta = Vector2.zero; + pointerEvent.dragging = false; + pointerEvent.useDragThreshold = true; + pointerEvent.pressPosition = pointerEvent.position; + pointerEvent.pointerPressRaycast = pointerEvent.pointerCurrentRaycast; + + DeselectIfSelectionChanged(currentOverGo, pointerEvent); + + if(pointerEvent.pointerEnter != currentOverGo) { + // send a pointer enter to the touched element if it isn't the one to select... + HandlePointerExitAndEnter(pointerEvent, currentOverGo); + pointerEvent.pointerEnter = currentOverGo; + } + + // search for the control that will receive the press + // if we can't find a press handler set the press + // handler to be what would receive a click. + var newPressed = ExecuteEvents.ExecuteHierarchy(currentOverGo, pointerEvent, ExecuteEvents.pointerDownHandler); + + // didnt find a press handler... search for a click handler + if(newPressed == null) + newPressed = ExecuteEvents.GetEventHandler(currentOverGo); + + // Debug.Log("Pressed: " + newPressed); + + float time = Time.unscaledTime; + + if(newPressed == pointerEvent.lastPress) { + var diffTime = time - pointerEvent.clickTime; + if(diffTime < 0.3f) + ++pointerEvent.clickCount; + else + pointerEvent.clickCount = 1; + + pointerEvent.clickTime = time; + } else { + pointerEvent.clickCount = 1; + } + + pointerEvent.pointerPress = newPressed; + pointerEvent.rawPointerPress = currentOverGo; + + pointerEvent.clickTime = time; + + // Save the drag handler as well + pointerEvent.pointerDrag = ExecuteEvents.GetEventHandler(currentOverGo); + + if(pointerEvent.pointerDrag != null) + ExecuteEvents.Execute(pointerEvent.pointerDrag, pointerEvent, ExecuteEvents.initializePotentialDrag); + } + + // PointerUp notification + if(released) { + // Debug.Log("Executing pressup on: " + pointer.pointerPress); + ExecuteEvents.Execute(pointerEvent.pointerPress, pointerEvent, ExecuteEvents.pointerUpHandler); + + // Debug.Log("KeyCode: " + pointer.eventData.keyCode); + + // see if we mouse up on the same element that we clicked on... + var pointerUpHandler = ExecuteEvents.GetEventHandler(currentOverGo); + + // PointerClick and Drop events + if(pointerEvent.pointerPress == pointerUpHandler && pointerEvent.eligibleForClick) { + ExecuteEvents.Execute(pointerEvent.pointerPress, pointerEvent, ExecuteEvents.pointerClickHandler); + } else if(pointerEvent.pointerDrag != null && pointerEvent.dragging) { + ExecuteEvents.ExecuteHierarchy(currentOverGo, pointerEvent, ExecuteEvents.dropHandler); + } + + pointerEvent.eligibleForClick = false; + pointerEvent.pointerPress = null; + pointerEvent.rawPointerPress = null; + + if(pointerEvent.pointerDrag != null && pointerEvent.dragging) + ExecuteEvents.Execute(pointerEvent.pointerDrag, pointerEvent, ExecuteEvents.endDragHandler); + + pointerEvent.dragging = false; + pointerEvent.pointerDrag = null; + + if(pointerEvent.pointerDrag != null) + ExecuteEvents.Execute(pointerEvent.pointerDrag, pointerEvent, ExecuteEvents.endDragHandler); + + pointerEvent.pointerDrag = null; + + // send exit events as we need to simulate this on touch up on touch device + ExecuteEvents.ExecuteHierarchy(pointerEvent.pointerEnter, pointerEvent, ExecuteEvents.pointerExitHandler); + pointerEvent.pointerEnter = null; + } + } + + /// + /// Process submit keys. + /// + protected bool SendSubmitEventToSelectedObject() { + if(eventSystem.currentSelectedGameObject == null) + return false; + + var state = GamePad.GetState(Player); + var data = GetBaseEventData(); + if(state.Pressed(SubmitButton)) + ExecuteEvents.Execute(eventSystem.currentSelectedGameObject, data, ExecuteEvents.submitHandler); + + if(state.Pressed(CancelButton)) + ExecuteEvents.Execute(eventSystem.currentSelectedGameObject, data, ExecuteEvents.cancelHandler); + return data.used; + } + + private Vector2 GetMoveVector() { + var x = GamePad.GetAxis(HorizontalAxis, Player); + if(InvertHorizontal) x = -x; + var y = GamePad.GetAxis(VerticalAxis, Player); + if(InvertVertical) y = -y; + return new Vector2(x, y); + } + + private Vector2 GetRawMoveVector() { + Vector2 move = GetMoveVector(); + + if(HorizontalPressed) { + if(move.x < 0) + move.x = -1f; + if(move.x > 0) + move.x = 1f; + } + if(VerticalPressed) { + if(move.y < 0) + move.y = -1f; + if(move.y > 0) + move.y = 1f; + } + return move; + } + + /// + /// Process keyboard events. + /// + protected bool SendMoveEventToSelectedObject() { + float time = Time.unscaledTime; + + Vector2 movement = GetRawMoveVector(); + if(Mathf.Approximately(movement.x, 0f) && Mathf.Approximately(movement.y, 0f)) { + m_ConsecutiveMoveCount = 0; + return false; + } + + // If user pressed key again, always allow event + bool allow = HorizontalPressed || VerticalPressed; + bool similarDir = (Vector2.Dot(movement, m_LastMoveVector) > 0); + if(!allow) { + // Otherwise, user held down key or axis. + // If direction didn't change at least 90 degrees, wait for delay before allowing consequtive event. + if(similarDir && m_ConsecutiveMoveCount == 1) + allow = (time > m_PrevActionTime + m_RepeatDelay); + // If direction changed at least 90 degree, or we already had the delay, repeat at repeat rate. + else + allow = (time > m_PrevActionTime + 1f / m_InputActionsPerSecond); + } + if(!allow) + return false; + + // Debug.Log(m_ProcessingEvent.rawType + " axis:" + m_AllowAxisEvents + " value:" + "(" + x + "," + y + ")"); + var axisEventData = GetAxisEventData(movement.x, movement.y, 0.6f); + + if(axisEventData.moveDir != MoveDirection.None) { + ExecuteEvents.Execute(eventSystem.currentSelectedGameObject, axisEventData, ExecuteEvents.moveHandler); + if(!similarDir) + m_ConsecutiveMoveCount = 0; + m_ConsecutiveMoveCount++; + m_PrevActionTime = time; + m_LastMoveVector = movement; + } else { + m_ConsecutiveMoveCount = 0; + } + + return axisEventData.used; + } + + protected void ProcessMouseEvent() { + ProcessMouseEvent(0); + } + + /// + /// Process all mouse events. + /// + protected void ProcessMouseEvent(int id) { + var mouseData = GetMousePointerEventData(id); + var leftButtonData = mouseData.GetButtonState(PointerEventData.InputButton.Left).eventData; + + // Process the first mouse button fully + ProcessMousePress(leftButtonData); + ProcessMove(leftButtonData.buttonData); + ProcessDrag(leftButtonData.buttonData); + + // Now process right / middle clicks + ProcessMousePress(mouseData.GetButtonState(PointerEventData.InputButton.Right).eventData); + ProcessDrag(mouseData.GetButtonState(PointerEventData.InputButton.Right).eventData.buttonData); + ProcessMousePress(mouseData.GetButtonState(PointerEventData.InputButton.Middle).eventData); + ProcessDrag(mouseData.GetButtonState(PointerEventData.InputButton.Middle).eventData.buttonData); + + if(!Mathf.Approximately(leftButtonData.buttonData.scrollDelta.sqrMagnitude, 0.0f)) { + var scrollHandler = ExecuteEvents.GetEventHandler(leftButtonData.buttonData.pointerCurrentRaycast.gameObject); + ExecuteEvents.ExecuteHierarchy(scrollHandler, leftButtonData.buttonData, ExecuteEvents.scrollHandler); + } + } + + protected bool SendUpdateEventToSelectedObject() { + if(eventSystem.currentSelectedGameObject == null) + return false; + + var data = GetBaseEventData(); + ExecuteEvents.Execute(eventSystem.currentSelectedGameObject, data, ExecuteEvents.updateSelectedHandler); + return data.used; + } + + /// + /// Process the current mouse press. + /// + protected void ProcessMousePress(MouseButtonEventData data) { + var pointerEvent = data.buttonData; + var currentOverGo = pointerEvent.pointerCurrentRaycast.gameObject; + + // PointerDown notification + if(data.PressedThisFrame()) { + pointerEvent.eligibleForClick = true; + pointerEvent.delta = Vector2.zero; + pointerEvent.dragging = false; + pointerEvent.useDragThreshold = true; + pointerEvent.pressPosition = pointerEvent.position; + pointerEvent.pointerPressRaycast = pointerEvent.pointerCurrentRaycast; + + DeselectIfSelectionChanged(currentOverGo, pointerEvent); + + // search for the control that will receive the press + // if we can't find a press handler set the press + // handler to be what would receive a click. + var newPressed = ExecuteEvents.ExecuteHierarchy(currentOverGo, pointerEvent, ExecuteEvents.pointerDownHandler); + + // didnt find a press handler... search for a click handler + if(newPressed == null) + newPressed = ExecuteEvents.GetEventHandler(currentOverGo); + + // Debug.Log("Pressed: " + newPressed); + + float time = Time.unscaledTime; + + if(newPressed == pointerEvent.lastPress) { + var diffTime = time - pointerEvent.clickTime; + if(diffTime < 0.3f) + ++pointerEvent.clickCount; + else + pointerEvent.clickCount = 1; + + pointerEvent.clickTime = time; + } else { + pointerEvent.clickCount = 1; + } + + pointerEvent.pointerPress = newPressed; + pointerEvent.rawPointerPress = currentOverGo; + + pointerEvent.clickTime = time; + + // Save the drag handler as well + pointerEvent.pointerDrag = ExecuteEvents.GetEventHandler(currentOverGo); + + if(pointerEvent.pointerDrag != null) + ExecuteEvents.Execute(pointerEvent.pointerDrag, pointerEvent, ExecuteEvents.initializePotentialDrag); + } + + // PointerUp notification + if(data.ReleasedThisFrame()) { + // Debug.Log("Executing pressup on: " + pointer.pointerPress); + ExecuteEvents.Execute(pointerEvent.pointerPress, pointerEvent, ExecuteEvents.pointerUpHandler); + + // Debug.Log("KeyCode: " + pointer.eventData.keyCode); + + // see if we mouse up on the same element that we clicked on... + var pointerUpHandler = ExecuteEvents.GetEventHandler(currentOverGo); + + // PointerClick and Drop events + if(pointerEvent.pointerPress == pointerUpHandler && pointerEvent.eligibleForClick) { + ExecuteEvents.Execute(pointerEvent.pointerPress, pointerEvent, ExecuteEvents.pointerClickHandler); + } else if(pointerEvent.pointerDrag != null && pointerEvent.dragging) { + ExecuteEvents.ExecuteHierarchy(currentOverGo, pointerEvent, ExecuteEvents.dropHandler); + } + + pointerEvent.eligibleForClick = false; + pointerEvent.pointerPress = null; + pointerEvent.rawPointerPress = null; + + if(pointerEvent.pointerDrag != null && pointerEvent.dragging) + ExecuteEvents.Execute(pointerEvent.pointerDrag, pointerEvent, ExecuteEvents.endDragHandler); + + pointerEvent.dragging = false; + pointerEvent.pointerDrag = null; + + // redo pointer enter / exit to refresh state + // so that if we moused over somethign that ignored it before + // due to having pressed on something else + // it now gets it. + if(currentOverGo != pointerEvent.pointerEnter) { + HandlePointerExitAndEnter(pointerEvent, null); + HandlePointerExitAndEnter(pointerEvent, currentOverGo); + } + } + } + } +} \ No newline at end of file diff --git a/Assets/CarbonInput/Scripts/CarbonInputModule.cs.meta b/Assets/CarbonInput/Scripts/CarbonInputModule.cs.meta new file mode 100644 index 0000000..7c326bc --- /dev/null +++ b/Assets/CarbonInput/Scripts/CarbonInputModule.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c23f78a1d53c00e469381bd390575be4 +timeCreated: 1506844177 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/CarbonInputRuntime.asmdef b/Assets/CarbonInput/Scripts/CarbonInputRuntime.asmdef new file mode 100644 index 0000000..f5a2891 --- /dev/null +++ b/Assets/CarbonInput/Scripts/CarbonInputRuntime.asmdef @@ -0,0 +1,3 @@ +{ + "name": "CarbonInputRuntime" +} diff --git a/Assets/CarbonInput/Scripts/CarbonInputRuntime.asmdef.meta b/Assets/CarbonInput/Scripts/CarbonInputRuntime.asmdef.meta new file mode 100644 index 0000000..9d69ae9 --- /dev/null +++ b/Assets/CarbonInput/Scripts/CarbonInputRuntime.asmdef.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: c04efb7064997fd46bdd8b7b41abab35 +timeCreated: 1565201667 +licenseType: Store +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/CarbonSettings.cs b/Assets/CarbonInput/Scripts/CarbonSettings.cs new file mode 100644 index 0000000..fa175cd --- /dev/null +++ b/Assets/CarbonInput/Scripts/CarbonSettings.cs @@ -0,0 +1,41 @@ +using UnityEngine; + +namespace CarbonInput { + /// + /// Used to store global settings for CarbonInput. + /// + [CreateAssetMenu(fileName = "CarbonInput", menuName = "Carbon Input/Settings", order = 100)] + public class CarbonSettings : ScriptableObject { + /// + /// Defines the behaviour of PlayerIndex.Any + /// + [Tooltip("Defines the behaviour of PlayerIndex.Any")] + public AnyBehaviour Behaviour = AnyBehaviour.CheckAll; + /// + /// Defines if any must be inverted. + /// + [SerializeField] + // ReSharper disable once InconsistentNaming + private bool[] InvertedAxis = new bool[CarbonController.AxisCount]; + + /// + /// Gets or sets the given axis to be inverted or not. + /// + /// + /// + public bool this[CAxis axis] { + get { return InvertedAxis[(int)axis]; } + set { InvertedAxis[(int)axis] = value; } + } + + /// + /// Will try to load the CarbonInput asset. If the asset is not found, it wil return a new CarbonSettings object. + /// + /// + public static CarbonSettings Default() { + CarbonSettings settings = Resources.Load("CarbonInput"); + if(settings != null) return settings; + return CreateInstance(); + } + } +} diff --git a/Assets/CarbonInput/Scripts/CarbonSettings.cs.meta b/Assets/CarbonInput/Scripts/CarbonSettings.cs.meta new file mode 100644 index 0000000..dce49cd --- /dev/null +++ b/Assets/CarbonInput/Scripts/CarbonSettings.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cd6a205b4f3e8440b49c91f90e95ea2 +timeCreated: 1455907889 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/ControllerInstance.cs b/Assets/CarbonInput/Scripts/ControllerInstance.cs new file mode 100644 index 0000000..3cda1fd --- /dev/null +++ b/Assets/CarbonInput/Scripts/ControllerInstance.cs @@ -0,0 +1,19 @@ +namespace CarbonInput { + public class ControllerInstance { + public CarbonController Controller; + public int Index; + + public ControllerInstance(CarbonController controller, int index) { + Controller = controller; + Index = index + 1; + } + + public bool GetButton(CButton button) { + return Controller.GetButton(button, Index); + } + + public float GetAxis(CAxis axis) { + return Controller.GetAxis(axis, Index); + } + } +} \ No newline at end of file diff --git a/Assets/CarbonInput/Scripts/ControllerInstance.cs.meta b/Assets/CarbonInput/Scripts/ControllerInstance.cs.meta new file mode 100644 index 0000000..9d946ac --- /dev/null +++ b/Assets/CarbonInput/Scripts/ControllerInstance.cs.meta @@ -0,0 +1,16 @@ +fileFormatVersion: 2 +guid: 5ce0c19a8201a5b41b3155e5fbd127d3 +labels: +- Gamepad +- Input +- Joystick +timeCreated: 1462002425 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/Enums.cs b/Assets/CarbonInput/Scripts/Enums.cs new file mode 100644 index 0000000..5ce1eb3 --- /dev/null +++ b/Assets/CarbonInput/Scripts/Enums.cs @@ -0,0 +1,91 @@ +using System; +using UnityEngine; + +// ReSharper disable InconsistentNaming +// ReSharper disable CheckNamespace + +/// +/// Specifies the game controller associated with a player. +/// +public enum PlayerIndex { + Any, One, Two, Three, Four, Five, Six, Seven, Eight +} + +/// +/// Describes a single button of a gamepad using the common XBox layout. +/// +public enum CButton { + A, B, X, Y, + Back, Start, + LB, RB, + LS, RS, +} + +/// +/// Describes a single button of a gamepad using the playstation layout. +/// +public enum PSButton { + Cross, Circle, Square, Triangle, + Select, Start, + L1, R1, + //L2 and R2 are mapped by LT and RT + L3, R3 +} + +/// +/// Describes a single axis of a gamepad. The dpad is also considered an axis. +/// +public enum CAxis { + LX, LY, + RX, RY, + LT, RT, + DX, DY +} + +/// +/// Flag mapping used to define all supported platforms. +/// +[Flags] +public enum CPlatform { + Windows = 1 << 0, + Linux = 1 << 1, + OSX = 1 << 2, + WSA = 1 << 3, + Android = 1 << 4, + IOS = 1 << 5, + [Obsolete] WP8 = 1 << 6, + Wii = 1 << 7, + [Obsolete] XBox360 = 1 << 8, + XBoxOne = 1 << 9, + [Obsolete] PS3 = 1 << 10, + PS4 = 1 << 11, + PSP2 = 1 << 12, + WebGL = 1 << 13 +} + +/// +/// Enumeration of all sticks of a gamepad. Used to get a consisting of the corresponding x and y values of a given axis. +/// +public enum CStick { + Left, Right, DPad +} + +/// +/// Describes the different behaviours of . +/// +public enum AnyBehaviour { + /// + /// Use the same mapping uses, but listen on any gamepad for that mapping. + /// + UseMappingOne, + /// + /// Always use whenever is used. + /// + UseControllerOne, + /// + /// Go over all players and use first match. + /// Slightly slower than the other two behaviours, but it is the most accurate. + /// + CheckAll +} + diff --git a/Assets/CarbonInput/Scripts/Enums.cs.meta b/Assets/CarbonInput/Scripts/Enums.cs.meta new file mode 100644 index 0000000..b68802d --- /dev/null +++ b/Assets/CarbonInput/Scripts/Enums.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 254fffb768b22e0498fb4bdbb3d0a031 +timeCreated: 1455636603 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/GamePad.cs b/Assets/CarbonInput/Scripts/GamePad.cs new file mode 100644 index 0000000..50a6189 --- /dev/null +++ b/Assets/CarbonInput/Scripts/GamePad.cs @@ -0,0 +1,297 @@ +using UnityEngine; +using System.Collections.Generic; +using System.Linq; +using System.Text.RegularExpressions; +using CarbonInput; + +/// +/// Interface to the carbon controller input system. +/// +// ReSharper disable once CheckNamespace +// ReSharper disable InconsistentNaming +public static class GamePad { + public delegate void OnReloadEvent(); + /// + /// This event is fired when a reload has happened. + /// + public static event OnReloadEvent OnReload; + /// + /// Used for lazy initialization. + /// + private static bool IsInitialized; + /// + /// Array of all mappings supporting this platform. + /// + private static CarbonController[] AllMappings; + /// + /// One mapping for each player, including (index 0). + /// + private static ControllerInstance[] PlayerMappings; + /// + /// s of all players. + /// + private static readonly GamePadState[] States = new GamePadState[CarbonController.PlayerIndices]; + /// + /// Number of connected and supported hardware gamepads, without TouchInput/Keyboard. + /// + private static int gamepadCount; + /// + /// Number of connected and supported hardware gamepads, without TouchInput/Keyboard. + /// + public static int GamePadCount { get { if(!IsInitialized) Initialize(); return gamepadCount; } } + + /// + /// Used to store settings like and inverted axes. + /// + private static CarbonSettings settings; + /// + /// Used to store settings like and inverted axes. + /// + public static CarbonSettings Settings { + get { + if(!IsInitialized) Initialize(); + return settings; + } + set { + if(!IsInitialized) Initialize(); + settings = value; + } + } + + private static readonly CarbonController disabledInput = CarbonController.CreateDisabledInput(); + + /// + /// Returns an array of all mappings supported by this platform. + /// + /// + public static CarbonController[] GetAllMappings() { + if(!IsInitialized) Initialize(); + return AllMappings; + } + /// + /// Returns an array of all player mappings. Index 0 is the mapping for and indices 1 to 8 meant to + /// reference to . + /// + /// + public static ControllerInstance[] GetPlayerMappings() { + if(!IsInitialized) Initialize(); + return PlayerMappings; + } + + /// + /// Reinitializes all GamePads. + /// + public static void ReInit() { + var touchMappings = GetPlayerMappings().Skip(1).Where(x => x.Controller is TouchMapping).ToList(); + Initialize(); + var mappings = GetPlayerMappings(); + int idx = 0; + for(int i = 1; i < CarbonController.PlayerIndices && idx < touchMappings.Count; i++) { + if(mappings[i] != null && mappings[i].Controller.Replacable) { + mappings[i] = touchMappings[idx++]; + if(i == 1) mappings[0] = mappings[1]; // required for PlayerIndex.Any if used with AnyBehaviour.UseMappingOne + } + } + if(OnReload != null) + OnReload(); + } + + /// + /// Initializes this library by loading all mappings from file and matching the given gamepads. + /// + private static void Initialize() { + if(!IsInitialized) { // first init + new GameObject("GamePad ReInit").AddComponent(); + } + List mappings = new List(Resources.LoadAll("Mappings")); // load all mappings + mappings.RemoveAll(mapping => !mapping.SupportedOnThisPlatform()); // keep only mappings for this platform + mappings.Sort((a, b) => a.Priority - b.Priority); // sort by priority, lower is better + AllMappings = mappings.ToArray(); + // now try to match with the names of the connected joysticks + int nameIndex = 0; + gamepadCount = 0; + List matches = new List(); + foreach(string name in Input.GetJoystickNames()) { + CarbonController toRemove = null; + foreach(CarbonController cc in mappings) { + if(!string.IsNullOrEmpty(cc.RegEx) && Regex.IsMatch(name, cc.RegEx, RegexOptions.IgnoreCase)) { + matches.Add(new ControllerInstance(cc, nameIndex)); + gamepadCount++; + if(cc.UseOnce) toRemove = cc; + break; + } + } + if(toRemove != null) mappings.Remove(toRemove); + nameIndex++; + } + // add fallbacks (keyboard) + var fallbacks = AllMappings.Where(x => x.IsFallback()).ToList(); + fallbacks.Add(disabledInput); + + PlayerMappings = new ControllerInstance[CarbonController.PlayerIndices]; + for(int i = 1; i < CarbonController.PlayerIndices; i++) { + int idx = i - 1; + if(idx < matches.Count) PlayerMappings[i] = matches[idx]; // real GamePad + else { // Keyboard Fallback + var fallback = fallbacks.First(); + PlayerMappings[i] = new ControllerInstance(fallback, idx); + if(fallback.UseOnce) fallbacks.RemoveAt(0); + } + } + PlayerMappings[0] = PlayerMappings[1]; // always use first found mapping as the "global" mapping for Anyone + for(int i = 0; i < CarbonController.PlayerIndices; i++) States[i] = new GamePadState((PlayerIndex)i); + + settings = CarbonSettings.Default(); + IsInitialized = true; + } + + /// + /// Returns the mapping used by player . + /// + /// + /// + public static ControllerInstance GetMapping(PlayerIndex id) { + if(!IsInitialized) Initialize(); + return PlayerMappings[(int)id]; + } + + /// + /// Returns true if there is any real gamepad connected. + /// + /// + public static bool AnyConnected() { + if(!IsInitialized) Initialize(); + return gamepadCount > 0; + } + + /// + /// Returns the state of button of player . + /// + /// + /// + /// + public static bool GetButton(CButton btn, PlayerIndex id = PlayerIndex.Any) { + if(!IsInitialized) Initialize(); + if(id == PlayerIndex.Any) { + switch(settings.Behaviour) { + case AnyBehaviour.UseControllerOne: return PlayerMappings[1].GetButton(btn); + case AnyBehaviour.CheckAll: + for(int i = 1; i < CarbonController.PlayerIndices; i++) { + if(PlayerMappings[i].GetButton(btn)) return true; + } + return false; + } + } + return PlayerMappings[(int)id].GetButton(btn); + } + + /// + /// Returns the state of button of player using a playstation controller layout. + /// + /// + /// + /// + public static bool GetButton(PSButton btn, PlayerIndex id = PlayerIndex.Any) { + return GetButton((CButton)btn, id); + } + + /// + /// Returns the of player . The result is in range [-1, 1], except for the two triggers. + /// They are in range [0, 1]. + /// + /// + /// + /// + public static float GetAxis(CAxis axis, PlayerIndex id = PlayerIndex.Any) { + if(!IsInitialized) Initialize(); + if(Settings[axis]) return -GetAxisRaw(axis, id); + return GetAxisRaw(axis, id); + } + private static float GetAxisRaw(CAxis axis, PlayerIndex id) { + if(id == PlayerIndex.Any) { + switch(settings.Behaviour) { + case AnyBehaviour.UseControllerOne: return PlayerMappings[1].GetAxis(axis); + case AnyBehaviour.CheckAll: + for(int i = 1; i < CarbonController.PlayerIndices; i++) { + float value = PlayerMappings[i].GetAxis(axis); + if(Mathf.Abs(value) > 0.02f) return value; + } + return 0f; + } + } + return PlayerMappings[(int)id].GetAxis(axis); + } + + /// + /// Returns a for the specified stick of player . + /// + /// + /// + /// + public static Vector2 GetStick(CStick stick, PlayerIndex id = PlayerIndex.Any) { + switch(stick) { + case CStick.Left: return GetLeftStick(id); + case CStick.Right: return GetRightStick(id); + default: return GetDPad(id); + } + } + + /// + /// Returns a vector for the left thumbstick of player . + /// + /// + /// + public static Vector2 GetLeftStick(PlayerIndex id = PlayerIndex.Any) { + return new Vector2(GetAxis(CAxis.LX, id), GetAxis(CAxis.LY, id)); + } + + /// + /// Returns a vector for the right thumbstick of player . + /// + /// + /// + public static Vector2 GetRightStick(PlayerIndex id = PlayerIndex.Any) { + return new Vector2(GetAxis(CAxis.RX, id), GetAxis(CAxis.RY, id)); + } + + /// + /// Returns the left trigger of player . Result is in range [0, 1]. + /// + /// + /// + public static float GetLeftTrigger(PlayerIndex id = PlayerIndex.Any) { + return GetAxis(CAxis.LT, id); + } + + /// + /// Returns the right trigger of player . Result is in range [0, 1]. + /// + /// + /// + public static float GetRightTrigger(PlayerIndex id = PlayerIndex.Any) { + return GetAxis(CAxis.RT, id); + } + + /// + /// Returns a vector for the dpad of player . + /// + /// + /// + public static Vector2 GetDPad(PlayerIndex id = PlayerIndex.Any) { + return new Vector2(GetAxis(CAxis.DX, id), GetAxis(CAxis.DY, id)); + } + + /// + /// Returns the state of player . + /// A contains all pressed buttons and axes values. + /// It also stores information from the last frame in order to distinguish between a single press and a continuous pressing. + /// + /// + /// + public static GamePadState GetState(PlayerIndex id = PlayerIndex.Any) { + if(!IsInitialized) Initialize(); + GamePadState state = States[(int)id]; + state.Update(); + return state; + } +} diff --git a/Assets/CarbonInput/Scripts/GamePad.cs.meta b/Assets/CarbonInput/Scripts/GamePad.cs.meta new file mode 100644 index 0000000..1ec9ff7 --- /dev/null +++ b/Assets/CarbonInput/Scripts/GamePad.cs.meta @@ -0,0 +1,16 @@ +fileFormatVersion: 2 +guid: e9d410e5e689bdf4e8770d6a55f96bc4 +labels: +- Gamepad +- Input +- Joystick +timeCreated: 1455633863 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/GamePadState.cs b/Assets/CarbonInput/Scripts/GamePadState.cs new file mode 100644 index 0000000..90eebfd --- /dev/null +++ b/Assets/CarbonInput/Scripts/GamePadState.cs @@ -0,0 +1,262 @@ +using UnityEngine; +using CarbonInput; + +/// +/// Represents the current state of a specific gamepad. +/// The state of any button can be accessed by the attributes , ,... or via the method . +/// returns true during the frame it was pressed. +/// returns true during the frame it was released. +/// , and will give you direct access to the corresponding axes. +/// The trigger can be accessed by and . +/// +// ReSharper disable once CheckNamespace +// ReSharper disable InconsistentNaming +public class GamePadState { + /// + /// Any axis is being considered "pressed" if it's absolute value is greater than this threshold. + /// + private const float AxisPressedThreshold = 0.3f; + + #region Buttons + /// + /// Stores the state of all buttons from the last frame. + /// + private bool[] LastFrameButtons = new bool[CarbonController.ButtonCount]; + /// + /// Stores the state of all buttons from this frame. + /// + private bool[] Buttons = new bool[CarbonController.ButtonCount]; + + /// + /// Is true while is pressed. + /// + public bool A { get { return Buttons[(int)CButton.A]; } } + /// + /// Is true while is pressed. + /// + public bool B { get { return Buttons[(int)CButton.B]; } } + /// + /// Is true while is pressed. + /// + public bool X { get { return Buttons[(int)CButton.X]; } } + /// + /// Is true while is pressed. + /// + public bool Y { get { return Buttons[(int)CButton.Y]; } } + /// + /// Is true while is pressed. + /// + public bool Back { get { return Buttons[(int)CButton.Back]; } } + /// + /// Is true while is pressed. + /// + public bool Start { get { return Buttons[(int)CButton.Start]; } } + /// + /// Is true while is pressed. + /// + public bool LB { get { return Buttons[(int)CButton.LB]; } } + /// + /// Is true while is pressed. + /// + public bool RB { get { return Buttons[(int)CButton.RB]; } } + /// + /// Is true while is pressed. + /// + public bool LS { get { return Buttons[(int)CButton.LS]; } } + /// + /// Is true while is pressed. + /// + public bool RS { get { return Buttons[(int)CButton.RS]; } } + #endregion + + #region Axis + /// + /// Stores the state of all axis values from the last frame. + /// + private float[] LastAxis = new float[CarbonController.AxisCount]; + /// + /// Stores the state of all axis values from this frame. + /// + private float[] Axis = new float[CarbonController.AxisCount]; + + /// + /// X and Y axis of the left thumbstick. + /// + public Vector2 Left { get { return new Vector2(Axis[(int)CAxis.LX], Axis[(int)CAxis.LY]); } } + /// + /// X and Y axis of the right thumbstick. + /// + public Vector2 Right { get { return new Vector2(Axis[(int)CAxis.RX], Axis[(int)CAxis.RY]); } } + /// + /// Left trigger. + /// + public float LT { get { return Axis[(int)CAxis.LT]; } } + /// + /// Right trigger. + /// + public float RT { get { return Axis[(int)CAxis.RT]; } } + /// + /// X and Y axis of the dpad. + /// + public Vector2 DPad { get { return new Vector2(Axis[(int)CAxis.DX], Axis[(int)CAxis.DY]); } } + #endregion + + /// + /// Defines the owner of this . + /// + private readonly PlayerIndex Index; + /// + /// Number of the last frame, used to determine if we're in a new frame or not. + /// + private int LastFrame; + + /// + /// Returns true if the button state has changed since the last frame. + /// + /// + /// + public bool HasChanged(CButton btn) { return Buttons[(int)btn] != LastFrameButtons[(int)btn]; } + + /// + /// Returns true while the button is pressed. + /// + /// + /// + public bool Button(CButton btn) { return Buttons[(int)btn]; } + /// + /// Returns true during the frame the user pressed the button. + /// + /// + /// + public bool Pressed(CButton btn) { return Buttons[(int)btn] && !LastFrameButtons[(int)btn]; } + /// + /// Returns true during the frame the user released the button. + /// + /// + /// + public bool Released(CButton btn) { return !Buttons[(int)btn] && LastFrameButtons[(int)btn]; } + + /// + /// Returns true while the axis is "pressed", which is if the absolute value of this axis is greater than a certain threshold. + /// + /// + /// + public bool Button(CAxis axis) { + return Mathf.Abs(Axis[(int)axis]) > AxisPressedThreshold; + } + /// + /// Returns true during the frame the axis is "pressed", which is if the absolute value of this axis is greater than a certain threshold. + /// + /// + /// + public bool Pressed(CAxis axis) { + bool pressedNow = Mathf.Abs(Axis[(int)axis]) > AxisPressedThreshold; + bool pressedLastFrame = Mathf.Abs(LastAxis[(int)axis]) > AxisPressedThreshold; + return pressedNow && !pressedLastFrame; + } + /// + /// Returns true during the frame the axis is no longer "pressed", which is if the absolute value of this axis is greater than a certain threshold. + /// + /// + /// + public bool Released(CAxis axis) { + bool pressedNow = Mathf.Abs(Axis[(int)axis]) > AxisPressedThreshold; + bool pressedLastFrame = Mathf.Abs(LastAxis[(int)axis]) > AxisPressedThreshold; + return !pressedNow && pressedLastFrame; + } + + /// + /// Returns the value of the given axis. + /// + /// + /// + public float GetAxis(CAxis axis) { + return Axis[(int)axis]; + } + + #region PSButton + /// + /// Returns true while the button is pressed. + /// + /// + /// + public bool Button(PSButton btn) { return Button((CButton)btn); } + /// + /// Returns true during the frame the user pressed the button. + /// + /// + /// + public bool Pressed(PSButton btn) { return Pressed((CButton)btn); } + /// + /// Returns true during the frame the user released the button. + /// + /// + /// + public bool Released(PSButton btn) { return Released((CButton)btn); } + #endregion + + /// + /// Returns true if any button is currently pressed. + /// + public bool AnyButton { get; private set; } + /// + /// Returns true if any axis is currently not zero. + /// + public bool AnyAxis { get; private set; } + /// + /// Returns true if any button is currently pressed or if any axis is currently not zero. + /// + public bool AnyButtonOrAxis { get { return AnyButton || AnyAxis; } } + + /// + /// Returns a button that is currently pressed or null if no buttons are pressed. + /// + /// + public CButton? GetAnyButton() { + for(int i = 0; i < CarbonController.ButtonCount; i++) + if(Buttons[i]) return (CButton)i; + return null; + } + + /// + /// Returns an axis that is not zero or null if all axis are zero. + /// + /// + public CAxis? GetAnyAxis() { + for(int i = 0; i < CarbonController.AxisCount; i++) + if(Mathf.Abs(Axis[i]) > AxisPressedThreshold) return (CAxis)i; + return null; + } + + public GamePadState(PlayerIndex id) { + Index = id; + } + + /// + /// This will update all buttons and axes of this instance. + /// Multiple calls in the same frame won't have any effect. + /// + public void Update() { + if(LastFrame == Time.frameCount) return; + LastFrame = Time.frameCount; + SwapArrays(); + AnyButton = false; + for(int i = 0; i < Buttons.Length; i++) { + AnyButton |= (Buttons[i] = GamePad.GetButton((CButton)i, Index)); + } + AnyAxis = false; + for(int i = 0; i < Axis.Length; i++) { + AnyAxis |= Mathf.Abs(Axis[i] = GamePad.GetAxis((CAxis)i, Index)) > AxisPressedThreshold; + } + } + + private void SwapArrays() { + bool[] tmp = LastFrameButtons; + LastFrameButtons = Buttons; + Buttons = tmp; + + float[] axis = LastAxis; + LastAxis = Axis; + Axis = axis; + } +} diff --git a/Assets/CarbonInput/Scripts/GamePadState.cs.meta b/Assets/CarbonInput/Scripts/GamePadState.cs.meta new file mode 100644 index 0000000..0f0f621 --- /dev/null +++ b/Assets/CarbonInput/Scripts/GamePadState.cs.meta @@ -0,0 +1,16 @@ +fileFormatVersion: 2 +guid: b67ce27dec0bf414c8f69f7def8a1077 +labels: +- Gamepad +- Input +- Joystick +timeCreated: 1455696443 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/Mappings.cs b/Assets/CarbonInput/Scripts/Mappings.cs new file mode 100644 index 0000000..0f2fa73 --- /dev/null +++ b/Assets/CarbonInput/Scripts/Mappings.cs @@ -0,0 +1,152 @@ +using UnityEngine; + +// User don't have to use this directly, so there is no need to have this in global namespace +namespace CarbonInput { + /// + /// Describes a mapping for a single gamepad button. + /// For normal gamepads, IsWrapper is false and therefor the Button attribute is used. + /// If IsWrapper is set to true, the KeyCode is used. + /// + [System.Serializable] + public class ButtonMapping { + /// + /// If is this is the joystick button id. + /// + public int Button; + /// + /// If is this is the key used to emulate this gamepad button. + /// + public KeyCode Key; + /// + /// Defines if this mapping is a wrapper or not. + /// + public ButtonType Type = ButtonType.Default; + + public ButtonMapping() { } + /// + /// Copy constructor. + /// + /// + public ButtonMapping(ButtonMapping other) { CopyFrom(other); } + + /// + /// Copy all values from the parameter. + /// + /// + public void CopyFrom(ButtonMapping other) { + Button = other.Button; + Key = other.Key; + Type = other.Type; + } + + /// + /// Defines if a button is wrapper or not. + /// + public enum ButtonType { + /// + /// Button is a real gamepad button. + /// + Default, + /// + /// Uses a keyboard key to emulate a gamepad button. + /// + Wrapper + } + } + + /// + /// Describes a mapping for a single gamepad axis. + /// Every axis can be inverted. + /// + [System.Serializable] + public class AxisMapping { + /// + /// Index of gamepad axis, used if Type is Default or Clamped. + /// Used as button index if Type is ButtonWrapper or ButtonWrapper2. + /// + public int Axis; + /// + /// Only used if Type is ButtonWrapper2. + /// Button index for positive value. + /// + public int Alternative; + /// + /// Whether this axis will be inverted. + /// + public bool Invert = false; + /// + /// Defines how this mapping behaves. + /// + public AxisType Type = AxisType.Default; + /// + /// If Type is ButtonWrapper, this is the value returned if the button is not pressed. + /// If Type is Clamped, this is the lower bound of the axis. + /// + public float Min = 0.0f; + /// + /// If Type is ButtonWrapper, this is the value returned if the button is pressed. + /// If Type is Clamped, this is the upper bound of the axis. + /// + public float Max = 1.0f; + /// + /// Used for KeyWrapper. Axis value is -1 if this key is pressed and Key2 is not pressed. + /// + public KeyCode Key1; + /// + /// Used for KeyWrapper. Axis value is 1 if this key is pressed and Key1 is not pressed. + /// + public KeyCode Key2; + + public AxisMapping() { } + /// + /// Copy constructor. + /// + /// + public AxisMapping(AxisMapping other) { CopyFrom(other); } + + /// + /// Copy all values from the parameter. + /// + /// + public void CopyFrom(AxisMapping other) { + Axis = other.Axis; + Alternative = other.Alternative; + Invert = other.Invert; + Type = other.Type; + Min = other.Min; + Max = other.Max; + Key1 = other.Key1; + Key2 = other.Key2; + } + + /// + /// Enumeration of all possible axis types. + /// + public enum AxisType { + /// + /// Axis is a normal gamepad axis. + /// + Default, + /// + /// Gamepad does not have this axis, but it has a button for that axis + /// + ButtonWrapper, + /// + /// Gamepad does not have anything for this, fallback to KeyCodes + /// + KeyWrapper, + /// + /// The range of this axis is not in the normal range. + /// + Clamped, + /// + /// Gamepad does not have this axis, but it can be emulated by two buttons. + /// + ButtonWrapper2, + /// + /// Gamepad axis goes from -1 to 1, but it should go from 0 to 1. + /// + TriggerLimiter + } + } +} diff --git a/Assets/CarbonInput/Scripts/Mappings.cs.meta b/Assets/CarbonInput/Scripts/Mappings.cs.meta new file mode 100644 index 0000000..94a254d --- /dev/null +++ b/Assets/CarbonInput/Scripts/Mappings.cs.meta @@ -0,0 +1,16 @@ +fileFormatVersion: 2 +guid: 3be0fab311c3f9646b6a78261d1e628a +labels: +- Gamepad +- Input +- Joystick +timeCreated: 1455638035 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/ReInit.cs b/Assets/CarbonInput/Scripts/ReInit.cs new file mode 100644 index 0000000..18f0e8f --- /dev/null +++ b/Assets/CarbonInput/Scripts/ReInit.cs @@ -0,0 +1,44 @@ +using UnityEngine; +using System.Collections; + +namespace CarbonInput { + /// + /// This class will check if a new gamepad was connected or if a gamepad lost its connection. + /// If this is the case, they are reinitialized. + /// + public class ReInit : MonoBehaviour { + private string[] _names; + + void Start() { + _names = Input.GetJoystickNames(); + StartCoroutine(CheckRoutine()); + DontDestroyOnLoad(gameObject); + } + + /// + /// Checks once a second if any gamepad has lost connection or was reconnected. + /// + /// + private IEnumerator CheckRoutine() { + yield return new WaitForSeconds(0.25f); + // On UWP platform Unity needs a few milliseconds to init all gamepads, + // therefore it might be the case that they will be initilized now + while(true) { + if(JoysticksChanged()) { + _names = Input.GetJoystickNames(); + GamePad.ReInit(); + } + yield return new WaitForSeconds(1f); + } + } + + private bool JoysticksChanged() { + var names = Input.GetJoystickNames(); + if(names.Length != _names.Length) return true; + for(var i = 0; i < names.Length; i++) { + if(names[i] != _names[i]) return true; + } + return false; + } + } +} \ No newline at end of file diff --git a/Assets/CarbonInput/Scripts/ReInit.cs.meta b/Assets/CarbonInput/Scripts/ReInit.cs.meta new file mode 100644 index 0000000..e600acf --- /dev/null +++ b/Assets/CarbonInput/Scripts/ReInit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8625f2a23b7973242b753f01cf6d7131 +timeCreated: 1483358527 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/SwitchPS4Gamepad.cs b/Assets/CarbonInput/Scripts/SwitchPS4Gamepad.cs new file mode 100644 index 0000000..4a4a1c4 --- /dev/null +++ b/Assets/CarbonInput/Scripts/SwitchPS4Gamepad.cs @@ -0,0 +1,32 @@ +using UnityEngine; +using UnityEngine.UI; + +namespace CarbonInput { + public class SwitchPS4Gamepad : MonoBehaviour { + public CarbonController Wired; + public CarbonController Bluetooth; + public Toggle Toggle; + + private int highPriority; + private int lowPriority; + + private void Start() { + highPriority = Mathf.Min(Wired.Priority, Bluetooth.Priority); + lowPriority = Mathf.Max(Wired.Priority, Bluetooth.Priority); + if(Toggle != null) { + Toggle.isOn = Bluetooth.Priority < Wired.Priority; + } + } + + public void ChangeMapping(bool useBluetooth) { + if(useBluetooth) { + Bluetooth.Priority = highPriority; + Wired.Priority = lowPriority; + } else { + Wired.Priority = highPriority; + Bluetooth.Priority = lowPriority; + } + GamePad.ReInit(); + } + } +} diff --git a/Assets/CarbonInput/Scripts/SwitchPS4Gamepad.cs.meta b/Assets/CarbonInput/Scripts/SwitchPS4Gamepad.cs.meta new file mode 100644 index 0000000..45a74e0 --- /dev/null +++ b/Assets/CarbonInput/Scripts/SwitchPS4Gamepad.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 93d840a09c7ea71489775748bfc05d32 +timeCreated: 1523470047 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/TouchInput.meta b/Assets/CarbonInput/Scripts/TouchInput.meta new file mode 100644 index 0000000..f69ec9e --- /dev/null +++ b/Assets/CarbonInput/Scripts/TouchInput.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: ae75e61147db4204ca8bc1fcfc536818 +folderAsset: yes +timeCreated: 1455826393 +licenseType: Store +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/TouchInput/BaseTouchInput.cs b/Assets/CarbonInput/Scripts/TouchInput/BaseTouchInput.cs new file mode 100644 index 0000000..00688ba --- /dev/null +++ b/Assets/CarbonInput/Scripts/TouchInput/BaseTouchInput.cs @@ -0,0 +1,53 @@ +using UnityEngine; + +namespace CarbonInput { + /// + /// Base class for all touch controls. + /// + public class BaseTouchInput : MonoBehaviour { + /// + /// The index of the player this control belongs to. If set to Any, it will use the first free player. + /// + [Tooltip("The index of the player this control belongs to. If set to Any, it will use the first free player.")] + public PlayerIndex Index; + /// + /// Mapping of this control. + /// + protected TouchMapping Mapping; + + /// + /// Initialize this input by injecting a into . + /// + protected void InitMapping() { + if(Index == PlayerIndex.Any) { + ControllerInstance[] mappings = GamePad.GetPlayerMappings(); + for(int i = 1; i < CarbonController.PlayerIndices; i++) { + if(mappings[i].Controller.Replacable || mappings[i].Controller is TouchMapping) { + UseMapping(i); + return; + } + } + // all mappings already in use + } else { + UseMapping((int)Index); + } + } + + /// + /// Changes index of the to a . + /// + /// + private void UseMapping(int idx) { + ControllerInstance[] mappings = GamePad.GetPlayerMappings(); + // if there is already a TouchMapping, use it. + if(mappings[idx] != null && mappings[idx].Controller is TouchMapping) + Mapping = (TouchMapping)mappings[idx].Controller; + else {//otherwise overwrite the old value + Mapping = ScriptableObject.CreateInstance(); + mappings[idx] = new ControllerInstance(Mapping, 0); + } + // if we set PlayerIndex.One, we must also set PlayerIndex.Any, because AnyBehaviour.UseMappingOne needs this + if(idx == 1) mappings[0] = mappings[1]; + } + } +} diff --git a/Assets/CarbonInput/Scripts/TouchInput/BaseTouchInput.cs.meta b/Assets/CarbonInput/Scripts/TouchInput/BaseTouchInput.cs.meta new file mode 100644 index 0000000..e546363 --- /dev/null +++ b/Assets/CarbonInput/Scripts/TouchInput/BaseTouchInput.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 996c12ad06e1905499f873d083ef1fb0 +labels: +- Touchinput +- Touch +- Input +- Gamepad +- Joystick +timeCreated: 1455829286 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/TouchInput/DisableTouchInput.cs b/Assets/CarbonInput/Scripts/TouchInput/DisableTouchInput.cs new file mode 100644 index 0000000..2e3d622 --- /dev/null +++ b/Assets/CarbonInput/Scripts/TouchInput/DisableTouchInput.cs @@ -0,0 +1,44 @@ +using UnityEngine; + +namespace CarbonInput { + /// + /// Attach this to the canvas all touch controls are in. + /// On startup this script will check if there are any real gamepads and if so, it will disable the touch controls. + /// + public class DisableTouchInput : MonoBehaviour { + [Tooltip("If true, touch controls will be disabled on Console Platforms, even if there are no gamepads connected.")] + public bool HideOnConsole = true; + [Tooltip("If true, touch controls will be disabled in Web Player, even if there are no gamepads connected.")] + public bool HideOnWeb = true; + [Tooltip("If true, touch controls will be disabled in the Editor, even if there are no gamepads connected.")] + public bool HideOnEditMode = false; + [Tooltip("If true, touch controls will be disabled on Windows, Linux and Mac, even if there are no gamepads connected.")] + public bool HideOnPC = true; + void Start() { +#if UNITY_EDITOR + if(HideOnEditMode) { Hide(); return; } +#endif +#if UNITY_WEB + if(HideOnWeb) { Hide(); return; } +#endif +#if UNITY_STANDALONE + if(HideOnPC) { Hide(); return; } +#endif + if(HideOnConsole && Application.isConsolePlatform + || GamePad.GamePadCount > 0) { // There are gamepads so we don't need touchcontrols + Hide(); + } + } + + /// + /// Deactivates all children with a component. + /// + private void Hide() { + // Iterate over all children + foreach(RectTransform rect in GetComponentsInChildren()) { + if(rect.GetComponent() != null) // Deactivate all TouchControls + rect.gameObject.SetActive(false); + } + } + } +} diff --git a/Assets/CarbonInput/Scripts/TouchInput/DisableTouchInput.cs.meta b/Assets/CarbonInput/Scripts/TouchInput/DisableTouchInput.cs.meta new file mode 100644 index 0000000..311a1f5 --- /dev/null +++ b/Assets/CarbonInput/Scripts/TouchInput/DisableTouchInput.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: f8fff0c72c46bce4e827c2d00d47911f +labels: +- Touchinput +- Touch +- Input +- Gamepad +- Joystick +timeCreated: 1456010930 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/TouchInput/TouchButton.cs b/Assets/CarbonInput/Scripts/TouchInput/TouchButton.cs new file mode 100644 index 0000000..9c3945f --- /dev/null +++ b/Assets/CarbonInput/Scripts/TouchInput/TouchButton.cs @@ -0,0 +1,57 @@ +using UnityEngine; +using UnityEngine.EventSystems; +using UnityEngine.UI; + +namespace CarbonInput { + /// + /// Touch control simulating a single gamepad button. + /// + public class TouchButton : BaseTouchInput, IPointerDownHandler, IPointerUpHandler, IDragHandler { + /// + /// The this control emulates. + /// + public CButton Button; + /// + /// Opacity of this control if it is pressed. + /// + [Tooltip("Opacity of this control if it is pressed.")] + [Range(0, 1)] + public float OpacityPressed = 0.5f; + /// + /// Opacity of this control if it is not pressed. + /// + [Tooltip("Opacity of this control if it is not pressed.")] + [Range(0, 1)] + public float OpacityReleased = 1f; + + void Start() { + InitMapping(); + UpdateState(false); + } + + /// + /// Updates the state of this control. This methods sets the opacity and the state in the . + /// + /// + public void UpdateState(bool pressed) { + var image = GetComponent(); + var color = image.color; + color.a = pressed ? OpacityPressed : OpacityReleased; + image.color = color; + if(Mapping != null) Mapping[Button] = pressed; + } + + public void OnPointerDown(PointerEventData eventData) { + UpdateState(true); + } + + public void OnPointerUp(PointerEventData eventData) { + UpdateState(false); + } + + public void OnDrag(PointerEventData eventData) { + RectTransform rect = GetComponent(); + UpdateState(RectTransformUtility.RectangleContainsScreenPoint(rect, eventData.position)); + } + } +} diff --git a/Assets/CarbonInput/Scripts/TouchInput/TouchButton.cs.meta b/Assets/CarbonInput/Scripts/TouchInput/TouchButton.cs.meta new file mode 100644 index 0000000..6794334 --- /dev/null +++ b/Assets/CarbonInput/Scripts/TouchInput/TouchButton.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: d698f325b18cad948af4abeae474734d +labels: +- Touchinput +- Touch +- Input +- Gamepad +- Joystick +timeCreated: 1455826413 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/TouchInput/TouchMapping.cs b/Assets/CarbonInput/Scripts/TouchInput/TouchMapping.cs new file mode 100644 index 0000000..b99a7c2 --- /dev/null +++ b/Assets/CarbonInput/Scripts/TouchInput/TouchMapping.cs @@ -0,0 +1,45 @@ +namespace CarbonInput { + /// + /// Internal wrapper class, used to access touch input. + /// + public class TouchMapping : CarbonController { + /// + /// Currently pressed buttons. + /// + private readonly bool[] buttonMap = new bool[ButtonCount]; + /// + /// Current values of all axes. + /// + private readonly float[] axisMap = new float[AxisCount]; + + private void OnEnable() { + name = "TouchInput"; + } + + /// + /// Gets or sets if the specific button is pressed or not. + /// + /// + /// + public bool this[CButton button] { + get { return buttonMap[(int)button]; } + set { buttonMap[(int)button] = value; } + } + /// + /// Gets or sets the value of the given axis. + /// + /// + /// + public float this[CAxis axis] { + get { return axisMap[(int)axis]; } + set { axisMap[(int)axis] = value; } + } + + public override bool GetButton(CButton btn, int id) { + return this[btn]; + } + public override float GetAxis(CAxis axis, int id) { + return this[axis]; + } + } +} diff --git a/Assets/CarbonInput/Scripts/TouchInput/TouchMapping.cs.meta b/Assets/CarbonInput/Scripts/TouchInput/TouchMapping.cs.meta new file mode 100644 index 0000000..8312905 --- /dev/null +++ b/Assets/CarbonInput/Scripts/TouchInput/TouchMapping.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: 4fae99fbdd9f6aa47b8f0aedfa36d8b7 +labels: +- Touchinput +- Touch +- Input +- Gamepad +- Joystick +timeCreated: 1455827496 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/Scripts/TouchInput/TouchStick.cs b/Assets/CarbonInput/Scripts/TouchInput/TouchStick.cs new file mode 100644 index 0000000..8108b4d --- /dev/null +++ b/Assets/CarbonInput/Scripts/TouchInput/TouchStick.cs @@ -0,0 +1,175 @@ +using UnityEngine; +using System.Collections; +using UnityEngine.EventSystems; + +namespace CarbonInput { + /// + /// Touch control simulating a thumbstick. + /// + public class TouchStick : BaseTouchInput, IPointerDownHandler, IPointerUpHandler, IDragHandler { + private const float NearZero = 0.0001f; + + /// + /// Horizontal axis of this control. + /// + [Tooltip("Horizontal axis")] + public CAxis X = CAxis.LX; + /// + /// Vertical axis of this control. + /// + [Tooltip("Vertical axis")] + public CAxis Y = CAxis.LY; + + /// + /// Touches inside this area will be handled by the stick. + /// + [Tooltip("Touches inside this area will be handled by the stick.")] + public RectTransform TouchArea; + /// + /// Base of the joystick. + /// + [Tooltip("Base of the joystick.")] + public RectTransform Base; + /// + /// Knob of the joystick. + /// + [Tooltip("Knob of the joystick.")] + public RectTransform Stick; + + /// + /// Maximum distance between center of base and center of stick. + /// + [Tooltip("Maximum distance between center of base and center of stick.")] + [Range(20, 120)] + public float Range = 60; + /// + /// Should the joystick disappear on release? + /// + [Tooltip("Should the joystick disappear on release?")] + public bool HideOnRelease; + /// + /// If HideOnRelease is set to true, this value will determine after which time the joystick will start to fade out. + /// + [Tooltip("If HideOnRelease is set to true, this value will determine after which time the joystick will start to fade out.")] + public float FadeoutDelay; + /// + /// If HideOnRelease is set to true, this value will determine how long the fadeout will last. + /// + [Tooltip("If HideOnRelease is set to true, this value will determine how long the fadeout will last.")] + public float FadeoutTime = 1f; + /// + /// If the user moves to far away from the stick, should the stick follow? + /// + [Tooltip("If the user moves to far away from the stick, should the stick follow?")] + public bool Movable; + + private CanvasRenderer[] childRenderer; + + void Start() { + InitMapping(); + childRenderer = GetComponentsInChildren(); + if(HideOnRelease) Hide(false); + } + + /// + /// Shows this control. + /// + public void Show() { + StopAllCoroutines(); + SetOpacity(1f); + } + + /// + /// Hides this control. + /// + /// If true, the control will slowly fade out. + public void Hide(bool fadeout) { + StopAllCoroutines(); + if(fadeout) StartCoroutine(FadeSequence()); + else SetOpacity(0f); + } + + /// + /// Sets the opacity of this control and all children. + /// + /// + private void SetOpacity(float opacity) { + foreach(CanvasRenderer renderer in childRenderer) renderer.SetAlpha(opacity); + } + + /// + /// Coroutine used to slowly fadeout. + /// + /// + private IEnumerator FadeSequence() { + if(FadeoutDelay > 0) yield return new WaitForSeconds(FadeoutDelay); + float opacity = 1f; + float speed = 1f / FadeoutTime; + while(opacity >= 0.0f) { + opacity -= Time.deltaTime * speed; + if(opacity < 0) opacity = 0; + SetOpacity(opacity); + yield return null; + } + } + + /// + /// Sets the value of this stick in the and also sets the knob position. + /// If is true, it will also follow the user. + /// + /// Touch position in world space + private void UpdateStick(Vector2 pos) { + // get direction in local space + Vector2 direction = (pos - (Vector2)Base.position); + direction.x /= Base.lossyScale.x; + direction.y /= Base.lossyScale.y; + float length = direction.magnitude; + if(length < NearZero) { + UpdateAxis(Vector2.zero); + return; + } + if(length > Range) { + if(Movable) { + Vector2 delta = direction.normalized * (length - Range); + Vector2 newPos = (Vector2)Base.localPosition + delta; + newPos.x = Mathf.Clamp(newPos.x, TouchArea.rect.xMin, TouchArea.rect.xMax); + newPos.y = Mathf.Clamp(newPos.y, TouchArea.rect.yMin, TouchArea.rect.yMax); + Base.localPosition = newPos; + } + length = Range; + } + UpdateAxis(direction.normalized * (length / Range)); + } + + /// + /// Updates the . + /// + /// + private void UpdateAxis(Vector2 axis) { + if(Mapping == null) return; + Stick.localPosition = axis * Range; + Mapping[X] = axis.x; + Mapping[Y] = -axis.y; // invert to match "normal" controller axis + } + + public void OnPointerDown(PointerEventData data) { + Show(); + if(RectTransformUtility.RectangleContainsScreenPoint(Stick, data.position) || + RectTransformUtility.RectangleContainsScreenPoint(Base, data.position)) { + UpdateStick(data.position); + } else if(Movable) { + Base.position = data.position; + UpdateAxis(Vector2.zero); + } + } + + public void OnPointerUp(PointerEventData data) { + UpdateAxis(Vector2.zero); + if(HideOnRelease) Hide(true); + } + + public void OnDrag(PointerEventData data) { + UpdateStick(data.position); + } + } +} diff --git a/Assets/CarbonInput/Scripts/TouchInput/TouchStick.cs.meta b/Assets/CarbonInput/Scripts/TouchInput/TouchStick.cs.meta new file mode 100644 index 0000000..eb707fc --- /dev/null +++ b/Assets/CarbonInput/Scripts/TouchInput/TouchStick.cs.meta @@ -0,0 +1,18 @@ +fileFormatVersion: 2 +guid: d08a4cd93a9455549863e3be1bc004f2 +labels: +- Touchinput +- Touch +- Input +- Gamepad +- Joystick +timeCreated: 1455826432 +licenseType: Store +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/CarbonInput/readme.txt b/Assets/CarbonInput/readme.txt new file mode 100644 index 0000000..c06de7b --- /dev/null +++ b/Assets/CarbonInput/readme.txt @@ -0,0 +1,27 @@ +Getting started +1. If not already done, download and import CarbonInput from Unity Asset Store +2. Initialize the input system by clicking the following menut item: + Edit > Project Settings > Carbon Input > Create Carbon Input Axes + Now the necessary axes are automatically set up and you can start using CarbonInput +3. Query a button or axis directly: + bool button = GamePad.GetButton(CButton.A); + float axis = GamePad.GetAxis(CAxis.LX); + You could also query a Vector2: + Vector2 leftStick = GamePad.GetStick(CStick.Left); + // alternative: + Vector2 leftStick = GamePad.GetLeftStick(); +4. You can also query the complete state of a gamepad: + GamePadState state = GamePad.GetState(); + bool fire = state.A; + Vector2 move = state.Left; + The GamePadState does not only store the current state, but also the state from the last frame. + Therefor you can also check if a button was pressed or released during this frame: + bool pressed = state.Pressed(CButton.A); + bool released = state.Released(CButton.A); +5. The mentioned methods are able to accept a PlayerIndex as an optional parameter. + If you don't specify an index, the special index PlayerIndex.Any is used. + Example for second player: GamePad.GetButton(CButton.A, PlayerIndex.Two) + +That's basically all. +p.s. +If you want to have icons for the CarbonInput asset files, you have to move the content of the CarbonInput/Gizmos folder to the Gizmos folder in your assets root directory. diff --git a/Assets/CarbonInput/readme.txt.meta b/Assets/CarbonInput/readme.txt.meta new file mode 100644 index 0000000..b5fdccf --- /dev/null +++ b/Assets/CarbonInput/readme.txt.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1d843d4332cac1a43a2c809c97ddd8c8 +timeCreated: 1455802996 +licenseType: Store +TextScriptImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs.meta b/Assets/Prefabs.meta new file mode 100644 index 0000000..5d58175 --- /dev/null +++ b/Assets/Prefabs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d15fd0600c1de8dd2bb1a518d42fcf6c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Fading Tile.prefab b/Assets/Prefabs/Fading Tile.prefab new file mode 100644 index 0000000..92d64ac --- /dev/null +++ b/Assets/Prefabs/Fading Tile.prefab @@ -0,0 +1,97 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &7774004014614795595 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7774004014614795589} + - component: {fileID: 7774004014614795588} + - component: {fileID: 7774004014614795590} + m_Layer: 0 + m_Name: Fading Tile + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &7774004014614795589 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7774004014614795595} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &7774004014614795588 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7774004014614795595} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: -32768 + m_Sprite: {fileID: 7399533318584292489, guid: 7d40eb5636a00037bb35d882197f6a1a, + type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 32, y: 32} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!114 &7774004014614795590 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7774004014614795595} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3568a979977247a55a05ef45aca8d951, type: 3} + m_Name: + m_EditorClassIdentifier: diff --git a/Assets/Prefabs/Fading Tile.prefab.meta b/Assets/Prefabs/Fading Tile.prefab.meta new file mode 100644 index 0000000..02434b4 --- /dev/null +++ b/Assets/Prefabs/Fading Tile.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a502626c7fe3139d88fe524e1e4516c5 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Tree.prefab b/Assets/Prefabs/Tree.prefab new file mode 100644 index 0000000..2646e89 --- /dev/null +++ b/Assets/Prefabs/Tree.prefab @@ -0,0 +1,126 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &5537780838073177683 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5537780838073177686} + - component: {fileID: 5537780838073177681} + - component: {fileID: 5537780838073177680} + - component: {fileID: -4609438826138415305} + - component: {fileID: 7998975642883131971} + m_Layer: 0 + m_Name: Tree + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &5537780838073177686 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5537780838073177683} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -60, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &5537780838073177681 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5537780838073177683} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: ef534146f0b5d174c84f7bf8f50b1b22, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 32, y: 64} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!58 &5537780838073177680 +CircleCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5537780838073177683} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: -6, y: 6} + serializedVersion: 2 + m_Radius: 8 +--- !u!114 &-4609438826138415305 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5537780838073177683} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0aaaa632174b054d4bd837b96202c530, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &7998975642883131971 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5537780838073177683} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7a2ab35da005f7d6c83a51f94e2b5490, type: 3} + m_Name: + m_EditorClassIdentifier: diff --git a/Assets/Prefabs/Tree.prefab.meta b/Assets/Prefabs/Tree.prefab.meta new file mode 100644 index 0000000..0befceb --- /dev/null +++ b/Assets/Prefabs/Tree.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 600eb996560bbd16db2cf42f5b7f9d49 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes.meta b/Assets/Scenes.meta new file mode 100644 index 0000000..e3a0130 --- /dev/null +++ b/Assets/Scenes.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2e747a7122ef02762b1f469fc528ddb6 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity new file mode 100644 index 0000000..a2a78f3 --- /dev/null +++ b/Assets/Scenes/SampleScene.unity @@ -0,0 +1,659 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 3 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 1 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 0 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 0 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &407533482 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 407533483} + - component: {fileID: 407533484} + m_Layer: 0 + m_Name: Level Controller + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &407533483 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 407533482} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &407533484 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 407533482} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4beeacff2211776f08d07aba88e15714, type: 3} + m_Name: + m_EditorClassIdentifier: + globalLightLevel: 1 + increment: -0.00027 +--- !u!1 &519420028 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 519420032} + - component: {fileID: 519420031} + - component: {fileID: 519420029} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &519420029 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 519420028} + m_Enabled: 1 +--- !u!20 &519420031 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 519420028} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 2 + m_BackGroundColor: {r: 0, g: 0, b: 0, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 1 + orthographic size: 100 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 0 + m_HDR: 1 + m_AllowMSAA: 0 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 0 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &519420032 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 519420028} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 24, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 708403714} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &549122371 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 549122373} + - component: {fileID: 549122372} + - component: {fileID: 549122374} + - component: {fileID: 549122375} + m_Layer: 0 + m_Name: Fire + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!212 &549122372 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 549122371} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: df99cd1ef8b819c79bd6883e133ddd00, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 32, y: 48} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!4 &549122373 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 549122371} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 1189231047} + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!95 &549122374 +Animator: + serializedVersion: 3 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 549122371} + m_Enabled: 1 + m_Avatar: {fileID: 0} + m_Controller: {fileID: 9100000, guid: ddf225d2c3ffdc783b59df4d81fc8038, type: 2} + m_CullingMode: 0 + m_UpdateMode: 0 + m_ApplyRootMotion: 0 + m_LinearVelocityBlending: 0 + m_WarningMessage: + m_HasTransformHierarchy: 1 + m_AllowConstantClipSamplingOptimization: 1 + m_KeepAnimatorControllerStateOnDisable: 0 +--- !u!114 &549122375 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 549122371} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 26985665716a9ec3eaedc74ed0ddd51f, type: 3} + m_Name: + m_EditorClassIdentifier: + size: 1 +--- !u!1 &708403710 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 708403714} + - component: {fileID: 708403713} + - component: {fileID: 708403715} + - component: {fileID: 708403716} + - component: {fileID: 708403712} + - component: {fileID: 708403711} + m_Layer: 0 + m_Name: Character + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &708403711 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 708403710} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9031b04b82be9f34aa1d8f27d7621db8, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &708403712 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 708403710} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0aaaa632174b054d4bd837b96202c530, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!212 &708403713 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 708403710} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 21300000, guid: 7eeec02261b06017787a7374f7eb767b, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 0.32, y: 0.48} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!4 &708403714 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 708403710} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 48, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 519420032} + m_Father: {fileID: 0} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!50 &708403715 +Rigidbody2D: + serializedVersion: 4 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 708403710} + m_BodyType: 0 + m_Simulated: 1 + m_UseFullKinematicContacts: 0 + m_UseAutoMass: 0 + m_Mass: 1 + m_LinearDrag: 0 + m_AngularDrag: 0 + m_GravityScale: 0 + m_Material: {fileID: 0} + m_Interpolate: 0 + m_SleepingMode: 1 + m_CollisionDetection: 0 + m_Constraints: 4 +--- !u!58 &708403716 +CircleCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 708403710} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0, y: 12} + serializedVersion: 2 + m_Radius: 16 +--- !u!1 &1189231046 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1189231047} + - component: {fileID: 1189231048} + - component: {fileID: 1189231049} + m_Layer: 0 + m_Name: Base + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1189231047 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1189231046} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 6, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 549122373} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!212 &1189231048 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1189231046} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: -100 + m_Sprite: {fileID: 21300000, guid: 9d98c71db54db3ee78e86b9f188951ac, type: 3} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 32, y: 32} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!58 &1189231049 +CircleCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1189231046} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0, y: -6} + serializedVersion: 2 + m_Radius: 16 +--- !u!1 &2042861698 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2042861700} + - component: {fileID: 2042861699} + m_Layer: 0 + m_Name: Ground + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &2042861699 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2042861698} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9f848b3c767b145fcb528148f52492de, type: 3} + m_Name: + m_EditorClassIdentifier: + tilePrefab: {fileID: 7774004014614795595, guid: a502626c7fe3139d88fe524e1e4516c5, + type: 3} + treePrefab: {fileID: 5537780838073177683, guid: 600eb996560bbd16db2cf42f5b7f9d49, + type: 3} +--- !u!4 &2042861700 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2042861698} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/Scenes/SampleScene.unity.meta b/Assets/Scenes/SampleScene.unity.meta new file mode 100644 index 0000000..8c7c4ee --- /dev/null +++ b/Assets/Scenes/SampleScene.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2cda990e2423bbf4892e6590ba056729 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts.meta b/Assets/Scripts.meta new file mode 100644 index 0000000..4bea702 --- /dev/null +++ b/Assets/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3924a5e8f6fa4c932afa0ffb3c99536c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/FadeToBlack.cs b/Assets/Scripts/FadeToBlack.cs new file mode 100644 index 0000000..bf27979 --- /dev/null +++ b/Assets/Scripts/FadeToBlack.cs @@ -0,0 +1,30 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class FadeToBlack : MonoBehaviour { + LevelController levelController; + SpriteRenderer spriteRenderer; + + void Awake() { + spriteRenderer = GetComponent(); + levelController = GameObject.Find("Level Controller").GetComponent(); + } + + void FixedUpdate() { + HandleAnimation(); + } + + void HandleAnimation() { + //determine the brightness based on distance from the center of the tilemap + float distance = Vector3.Distance(transform.localPosition, Vector3.zero) / 32f; + float brightness = 1 - Mathf.Log(distance, 10) + levelController.globalLightLevel - 0.5f; + + Color color = Color.white; + color.r = brightness; + color.g = brightness; + color.b = brightness; + + spriteRenderer.color = color; + } +} \ No newline at end of file diff --git a/Assets/Scripts/FadeToBlack.cs.meta b/Assets/Scripts/FadeToBlack.cs.meta new file mode 100644 index 0000000..d3ca596 --- /dev/null +++ b/Assets/Scripts/FadeToBlack.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0aaaa632174b054d4bd837b96202c530 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/GameObjects.meta b/Assets/Scripts/GameObjects.meta new file mode 100644 index 0000000..cc6f5ac --- /dev/null +++ b/Assets/Scripts/GameObjects.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3cb5a455764fe0a9893b9793905f73c0 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/GameObjects/Character.cs b/Assets/Scripts/GameObjects/Character.cs new file mode 100644 index 0000000..0a0d03a --- /dev/null +++ b/Assets/Scripts/GameObjects/Character.cs @@ -0,0 +1,67 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Character : MonoBehaviour { + //components + SpriteRenderer spriteRenderer; + Rigidbody2D rb; + + //movement + float horizontalInput; + float verticalInput; + float lastHorizontalInput; + float lastVerticalInput; + const float deadZone = 0.15f; + const float maxSpeed = 60f; + const float moveForce = 400f; + + void Awake() { + spriteRenderer = GetComponent(); + rb = GetComponent(); + } + + void Update() { + HandleInput(); + } + + void FixedUpdate() { + HandleMovement(); + HandleAnimation(); + } + + void HandleInput() { + horizontalInput = GamePad.GetAxis(CAxis.LX); + verticalInput = -GamePad.GetAxis(CAxis.LY); + + if (Mathf.Abs(horizontalInput) > deadZone || Mathf.Abs(verticalInput) > deadZone) { + lastHorizontalInput = horizontalInput; + lastVerticalInput = verticalInput; + } + } + + void HandleMovement() { + //stop the player if input in that direction has been removed + if (horizontalInput * rb.velocity.x <= 0) { + rb.velocity = new Vector2(rb.velocity.x * 0.65f, rb.velocity.y); + } + + if (verticalInput * rb.velocity.y <= 0) { + rb.velocity = new Vector2(rb.velocity.x, rb.velocity.y * 0.65f); + } + + //move in the inputted direction, if not at max speed + if (horizontalInput * rb.velocity.x < maxSpeed) { + rb.AddForce(Vector2.right * horizontalInput * moveForce); + } + + if (verticalInput * rb.velocity.y < maxSpeed) { + rb.AddForce(Vector2.up * verticalInput * moveForce); + } + } + + void HandleAnimation() { + spriteRenderer.sortingOrder = -(int)Mathf.Floor(transform.localPosition.y * 100); + spriteRenderer.flipX = lastHorizontalInput > 0f; + } +} \ No newline at end of file diff --git a/Assets/Scripts/GameObjects/Character.cs.meta b/Assets/Scripts/GameObjects/Character.cs.meta new file mode 100644 index 0000000..c182a69 --- /dev/null +++ b/Assets/Scripts/GameObjects/Character.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9031b04b82be9f34aa1d8f27d7621db8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/GameObjects/FadingTile.cs b/Assets/Scripts/GameObjects/FadingTile.cs new file mode 100644 index 0000000..90dd619 --- /dev/null +++ b/Assets/Scripts/GameObjects/FadingTile.cs @@ -0,0 +1,38 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class FadingTile : MonoBehaviour { + static LevelController levelController; + + SpriteRenderer spriteRenderer; + + void Awake() { + spriteRenderer = GetComponent(); + + if (!levelController) { + levelController = GameObject.Find("Level Controller").GetComponent(); + } + } + + void FixedUpdate() { + HandleAnimation(); + } + + void HandleAnimation() { + //determine the brightness based on distance from the center of the tilemap + float distance = Vector3.Distance(transform.localPosition, Vector3.zero) / 32f; + + //bugfix for tile under the fire + if (distance == 0) { + distance = 0.5f; + } + + float brightness = 1 - Mathf.Log(distance, 10) + levelController.globalLightLevel - 0.5f; + + Color color = Color.white; + color.a = brightness; + + spriteRenderer.color = color; + } +} diff --git a/Assets/Scripts/GameObjects/FadingTile.cs.meta b/Assets/Scripts/GameObjects/FadingTile.cs.meta new file mode 100644 index 0000000..73d033f --- /dev/null +++ b/Assets/Scripts/GameObjects/FadingTile.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3568a979977247a55a05ef45aca8d951 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/GameObjects/Fire.cs b/Assets/Scripts/GameObjects/Fire.cs new file mode 100644 index 0000000..4d0f0c7 --- /dev/null +++ b/Assets/Scripts/GameObjects/Fire.cs @@ -0,0 +1,39 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Fire : MonoBehaviour { + Animator animator; + LevelController levelController; + + [SerializeField] + int size = 1; + + void Awake() { + animator = GetComponent(); + levelController = GameObject.Find("Level Controller").GetComponent(); + } + + void Start() { + animator.speed = 1f / 10f; + } + + void Update() { + //change based on global light level + if (levelController.globalLightLevel <= 0.3f) { + size = 1; + } else if (levelController.globalLightLevel < 0.7f) { + size = 2; + } else { + size = 3; + } + } + + void FixedUpdate() { + HandleAnimation(); + } + + void HandleAnimation() { + animator.SetInteger("size", size); + } +} \ No newline at end of file diff --git a/Assets/Scripts/GameObjects/Fire.cs.meta b/Assets/Scripts/GameObjects/Fire.cs.meta new file mode 100644 index 0000000..fd9b301 --- /dev/null +++ b/Assets/Scripts/GameObjects/Fire.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 26985665716a9ec3eaedc74ed0ddd51f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/GameObjects/Ground.cs b/Assets/Scripts/GameObjects/Ground.cs new file mode 100644 index 0000000..20d01c0 --- /dev/null +++ b/Assets/Scripts/GameObjects/Ground.cs @@ -0,0 +1,42 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Ground : MonoBehaviour { + [SerializeField] + GameObject tilePrefab; + + [SerializeField] + GameObject treePrefab; + + void Awake() { + //generate tiles + const int size = 20; + + for (int i = -size; i <= size; i++) { + for (int j = -size; j <= size; j++) { + Instantiate(tilePrefab, new Vector3(i * 32, j * 32, 0), Quaternion.identity, transform); + } + } + + for (int i = 0; i < 50; i++) { + GenerateTree(5, size); + } + + for (int i = 0; i < 3; i++) { + GenerateTree(2, 5); + } + } + + void GenerateTree(float near, float far) { + //geenrate trees + float direction = Random.Range(0, 360); //angle + float distance = Random.Range(near, far); //H & A + + //SOH CAH TOA + float sin = Mathf.Sin(direction * Mathf.PI / 180f); + float cos = Mathf.Cos(direction * Mathf.PI / 180f); + + Instantiate(treePrefab, new Vector3(distance * cos * 32, distance * sin * 32, 0), Quaternion.identity, transform); + } +} \ No newline at end of file diff --git a/Assets/Scripts/GameObjects/Ground.cs.meta b/Assets/Scripts/GameObjects/Ground.cs.meta new file mode 100644 index 0000000..0664a66 --- /dev/null +++ b/Assets/Scripts/GameObjects/Ground.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9f848b3c767b145fcb528148f52492de +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/GameObjects/Tree.cs b/Assets/Scripts/GameObjects/Tree.cs new file mode 100644 index 0000000..fb6c6b9 --- /dev/null +++ b/Assets/Scripts/GameObjects/Tree.cs @@ -0,0 +1,13 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Tree : MonoBehaviour { + SpriteRenderer spriteRenderer; + + void Awake() { + spriteRenderer = GetComponent(); + + spriteRenderer.sortingOrder = -(int)Mathf.Floor(transform.localPosition.y * 100); + } +} \ No newline at end of file diff --git a/Assets/Scripts/GameObjects/Tree.cs.meta b/Assets/Scripts/GameObjects/Tree.cs.meta new file mode 100644 index 0000000..2b9c08b --- /dev/null +++ b/Assets/Scripts/GameObjects/Tree.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7a2ab35da005f7d6c83a51f94e2b5490 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/LevelController.cs b/Assets/Scripts/LevelController.cs new file mode 100644 index 0000000..8937294 --- /dev/null +++ b/Assets/Scripts/LevelController.cs @@ -0,0 +1,13 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class LevelController : MonoBehaviour { + public float globalLightLevel = 1f; + public float increment = 0f; + + void FixedUpdate() { + globalLightLevel += increment; + globalLightLevel = Mathf.Clamp(globalLightLevel, 0, 1); + } +} \ No newline at end of file diff --git a/Assets/Scripts/LevelController.cs.meta b/Assets/Scripts/LevelController.cs.meta new file mode 100644 index 0000000..e6ff103 --- /dev/null +++ b/Assets/Scripts/LevelController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4beeacff2211776f08d07aba88e15714 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites.meta b/Assets/Sprites.meta new file mode 100644 index 0000000..d18c2ea --- /dev/null +++ b/Assets/Sprites.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 55152c896bf9fd8fe9eaa659afbc0003 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/character.png b/Assets/Sprites/character.png new file mode 100644 index 0000000..019adae Binary files /dev/null and b/Assets/Sprites/character.png differ diff --git a/Assets/Sprites/character.png.meta b/Assets/Sprites/character.png.meta new file mode 100644 index 0000000..19d81db --- /dev/null +++ b/Assets/Sprites/character.png.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: 7eeec02261b06017787a7374f7eb767b +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 7 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 1 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/fire.meta b/Assets/Sprites/fire.meta new file mode 100644 index 0000000..af5b3c0 --- /dev/null +++ b/Assets/Sprites/fire.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 65c72cab79664eebb873c3e7d6c75584 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/fire/large_1.png b/Assets/Sprites/fire/large_1.png new file mode 100644 index 0000000..637b97c Binary files /dev/null and b/Assets/Sprites/fire/large_1.png differ diff --git a/Assets/Sprites/fire/large_1.png.meta b/Assets/Sprites/fire/large_1.png.meta new file mode 100644 index 0000000..0f69a1f --- /dev/null +++ b/Assets/Sprites/fire/large_1.png.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: df99cd1ef8b819c79bd6883e133ddd00 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 7 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 1 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/fire/large_2.png b/Assets/Sprites/fire/large_2.png new file mode 100644 index 0000000..b2c6686 Binary files /dev/null and b/Assets/Sprites/fire/large_2.png differ diff --git a/Assets/Sprites/fire/large_2.png.meta b/Assets/Sprites/fire/large_2.png.meta new file mode 100644 index 0000000..a847f28 --- /dev/null +++ b/Assets/Sprites/fire/large_2.png.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: 6a1bbc5036f86f5f185d7b55d90cd1bb +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 7 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 1 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/fire/large_3.png b/Assets/Sprites/fire/large_3.png new file mode 100644 index 0000000..07277dc Binary files /dev/null and b/Assets/Sprites/fire/large_3.png differ diff --git a/Assets/Sprites/fire/large_3.png.meta b/Assets/Sprites/fire/large_3.png.meta new file mode 100644 index 0000000..07357c7 --- /dev/null +++ b/Assets/Sprites/fire/large_3.png.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: 9d01303ed461fc2a882c9394a1af57c1 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 7 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 1 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/fire/medium_1.png b/Assets/Sprites/fire/medium_1.png new file mode 100644 index 0000000..e79ca19 Binary files /dev/null and b/Assets/Sprites/fire/medium_1.png differ diff --git a/Assets/Sprites/fire/medium_1.png.meta b/Assets/Sprites/fire/medium_1.png.meta new file mode 100644 index 0000000..44cc306 --- /dev/null +++ b/Assets/Sprites/fire/medium_1.png.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: 594ab07e74bbcad38b3160ab88b80190 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 7 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 1 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/fire/medium_2.png b/Assets/Sprites/fire/medium_2.png new file mode 100644 index 0000000..b27355d Binary files /dev/null and b/Assets/Sprites/fire/medium_2.png differ diff --git a/Assets/Sprites/fire/medium_2.png.meta b/Assets/Sprites/fire/medium_2.png.meta new file mode 100644 index 0000000..e68cbc5 --- /dev/null +++ b/Assets/Sprites/fire/medium_2.png.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: 339a583b78a4babe99d18b16da6997ce +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 7 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 1 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/fire/medium_3.png b/Assets/Sprites/fire/medium_3.png new file mode 100644 index 0000000..a961980 Binary files /dev/null and b/Assets/Sprites/fire/medium_3.png differ diff --git a/Assets/Sprites/fire/medium_3.png.meta b/Assets/Sprites/fire/medium_3.png.meta new file mode 100644 index 0000000..e44522d --- /dev/null +++ b/Assets/Sprites/fire/medium_3.png.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: 0267b227095f563c0be629261f05e724 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 7 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 1 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/fire/small_1.png b/Assets/Sprites/fire/small_1.png new file mode 100644 index 0000000..9b0cd07 Binary files /dev/null and b/Assets/Sprites/fire/small_1.png differ diff --git a/Assets/Sprites/fire/small_1.png.meta b/Assets/Sprites/fire/small_1.png.meta new file mode 100644 index 0000000..a69d437 --- /dev/null +++ b/Assets/Sprites/fire/small_1.png.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: 8e4bdcb647508e7879e1cf6716135b6c +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 7 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 1 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/fire/small_2.png b/Assets/Sprites/fire/small_2.png new file mode 100644 index 0000000..a113319 Binary files /dev/null and b/Assets/Sprites/fire/small_2.png differ diff --git a/Assets/Sprites/fire/small_2.png.meta b/Assets/Sprites/fire/small_2.png.meta new file mode 100644 index 0000000..0c560ab --- /dev/null +++ b/Assets/Sprites/fire/small_2.png.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: ba7b9d0c169cdd70ba763419bd2721ef +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 7 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 1 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/fire/small_3.png b/Assets/Sprites/fire/small_3.png new file mode 100644 index 0000000..0a55eda Binary files /dev/null and b/Assets/Sprites/fire/small_3.png differ diff --git a/Assets/Sprites/fire/small_3.png.meta b/Assets/Sprites/fire/small_3.png.meta new file mode 100644 index 0000000..ddc62a6 --- /dev/null +++ b/Assets/Sprites/fire/small_3.png.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: d56eb73f29fa40a168de0f09921d91df +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 7 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 1 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/fire_base.png b/Assets/Sprites/fire_base.png new file mode 100644 index 0000000..8059af9 Binary files /dev/null and b/Assets/Sprites/fire_base.png differ diff --git a/Assets/Sprites/fire_base.png.meta b/Assets/Sprites/fire_base.png.meta new file mode 100644 index 0000000..e1caa15 --- /dev/null +++ b/Assets/Sprites/fire_base.png.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: 9d98c71db54db3ee78e86b9f188951ac +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 1 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/tile.png b/Assets/Sprites/tile.png new file mode 100644 index 0000000..aceb7b8 Binary files /dev/null and b/Assets/Sprites/tile.png differ diff --git a/Assets/Sprites/tile.png.meta b/Assets/Sprites/tile.png.meta new file mode 100644 index 0000000..b77b4fb --- /dev/null +++ b/Assets/Sprites/tile.png.meta @@ -0,0 +1,140 @@ +fileFormatVersion: 2 +guid: 7d40eb5636a00037bb35d882197f6a1a +TextureImporter: + internalIDToNameTable: + - first: + 213: 7399533318584292489 + second: tile_0 + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 1 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: + - serializedVersion: 2 + name: tile_0 + rect: + serializedVersion: 2 + x: 0 + y: 0 + width: 32 + height: 32 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 98452ed495c60b660800000000000000 + internalID: 7399533318584292489 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/tree.png b/Assets/Sprites/tree.png new file mode 100644 index 0000000..07894f0 Binary files /dev/null and b/Assets/Sprites/tree.png differ diff --git a/Assets/Sprites/tree.png.meta b/Assets/Sprites/tree.png.meta new file mode 100644 index 0000000..ddb656c --- /dev/null +++ b/Assets/Sprites/tree.png.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: ef534146f0b5d174c84f7bf8f50b1b22 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: -1 + mipBias: -100 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 0 + alignment: 7 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 0.5 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: WebGL + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Packages/manifest.json b/Packages/manifest.json new file mode 100644 index 0000000..8b02e76 --- /dev/null +++ b/Packages/manifest.json @@ -0,0 +1,48 @@ +{ + "dependencies": { + "com.unity.2d.animation": "3.1.1", + "com.unity.2d.pixel-perfect": "2.0.4", + "com.unity.2d.psdimporter": "2.1.0", + "com.unity.2d.sprite": "1.0.0", + "com.unity.2d.spriteshape": "3.0.9", + "com.unity.2d.tilemap": "1.0.0", + "com.unity.collab-proxy": "1.2.16", + "com.unity.ide.rider": "1.1.4", + "com.unity.ide.vscode": "1.1.4", + "com.unity.test-framework": "1.1.11", + "com.unity.textmeshpro": "2.0.1", + "com.unity.timeline": "1.2.13", + "com.unity.ugui": "1.0.0", + "com.unity.modules.ai": "1.0.0", + "com.unity.modules.androidjni": "1.0.0", + "com.unity.modules.animation": "1.0.0", + "com.unity.modules.assetbundle": "1.0.0", + "com.unity.modules.audio": "1.0.0", + "com.unity.modules.cloth": "1.0.0", + "com.unity.modules.director": "1.0.0", + "com.unity.modules.imageconversion": "1.0.0", + "com.unity.modules.imgui": "1.0.0", + "com.unity.modules.jsonserialize": "1.0.0", + "com.unity.modules.particlesystem": "1.0.0", + "com.unity.modules.physics": "1.0.0", + "com.unity.modules.physics2d": "1.0.0", + "com.unity.modules.screencapture": "1.0.0", + "com.unity.modules.terrain": "1.0.0", + "com.unity.modules.terrainphysics": "1.0.0", + "com.unity.modules.tilemap": "1.0.0", + "com.unity.modules.ui": "1.0.0", + "com.unity.modules.uielements": "1.0.0", + "com.unity.modules.umbra": "1.0.0", + "com.unity.modules.unityanalytics": "1.0.0", + "com.unity.modules.unitywebrequest": "1.0.0", + "com.unity.modules.unitywebrequestassetbundle": "1.0.0", + "com.unity.modules.unitywebrequestaudio": "1.0.0", + "com.unity.modules.unitywebrequesttexture": "1.0.0", + "com.unity.modules.unitywebrequestwww": "1.0.0", + "com.unity.modules.vehicles": "1.0.0", + "com.unity.modules.video": "1.0.0", + "com.unity.modules.vr": "1.0.0", + "com.unity.modules.wind": "1.0.0", + "com.unity.modules.xr": "1.0.0" + } +} diff --git a/ProjectSettings/AudioManager.asset b/ProjectSettings/AudioManager.asset new file mode 100644 index 0000000..74ccc85 --- /dev/null +++ b/ProjectSettings/AudioManager.asset @@ -0,0 +1,19 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!11 &1 +AudioManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Volume: 1 + Rolloff Scale: 1 + Doppler Factor: 1 + Default Speaker Mode: 2 + m_SampleRate: 0 + m_DSPBufferSize: 1024 + m_VirtualVoiceCount: 512 + m_RealVoiceCount: 32 + m_SpatializerPlugin: + m_AmbisonicDecoderPlugin: + m_DisableAudio: 0 + m_VirtualizeEffects: 1 + m_RequestedDSPBufferSize: 1024 diff --git a/ProjectSettings/ClusterInputManager.asset b/ProjectSettings/ClusterInputManager.asset new file mode 100644 index 0000000..a84cf4e --- /dev/null +++ b/ProjectSettings/ClusterInputManager.asset @@ -0,0 +1,6 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!236 &1 +ClusterInputManager: + m_ObjectHideFlags: 0 + m_Inputs: [] diff --git a/ProjectSettings/DynamicsManager.asset b/ProjectSettings/DynamicsManager.asset new file mode 100644 index 0000000..53f3851 --- /dev/null +++ b/ProjectSettings/DynamicsManager.asset @@ -0,0 +1,34 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!55 &1 +PhysicsManager: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_Gravity: {x: 0, y: -9.81, z: 0} + m_DefaultMaterial: {fileID: 0} + m_BounceThreshold: 2 + m_SleepThreshold: 0.005 + m_DefaultContactOffset: 0.01 + m_DefaultSolverIterations: 6 + m_DefaultSolverVelocityIterations: 1 + m_QueriesHitBackfaces: 0 + m_QueriesHitTriggers: 1 + m_EnableAdaptiveForce: 0 + m_ClothInterCollisionDistance: 0 + m_ClothInterCollisionStiffness: 0 + m_ContactsGeneration: 1 + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff + m_AutoSimulation: 1 + m_AutoSyncTransforms: 0 + m_ReuseCollisionCallbacks: 1 + m_ClothInterCollisionSettingsToggle: 0 + m_ContactPairsMode: 0 + m_BroadphaseType: 0 + m_WorldBounds: + m_Center: {x: 0, y: 0, z: 0} + m_Extent: {x: 250, y: 250, z: 250} + m_WorldSubdivisions: 8 + m_FrictionType: 0 + m_EnableEnhancedDeterminism: 0 + m_EnableUnifiedHeightmaps: 1 + m_DefaultMaxAngluarSpeed: 7 diff --git a/ProjectSettings/EditorBuildSettings.asset b/ProjectSettings/EditorBuildSettings.asset new file mode 100644 index 0000000..98b932a --- /dev/null +++ b/ProjectSettings/EditorBuildSettings.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1045 &1 +EditorBuildSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Scenes: [] + m_configObjects: {} diff --git a/ProjectSettings/EditorSettings.asset b/ProjectSettings/EditorSettings.asset new file mode 100644 index 0000000..5a7387f --- /dev/null +++ b/ProjectSettings/EditorSettings.asset @@ -0,0 +1,35 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!159 &1 +EditorSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_ExternalVersionControlSupport: Visible Meta Files + m_SerializationMode: 2 + m_LineEndingsForNewScripts: 0 + m_DefaultBehaviorMode: 1 + m_PrefabRegularEnvironment: {fileID: 0} + m_PrefabUIEnvironment: {fileID: 0} + m_SpritePackerMode: 4 + m_SpritePackerPaddingPower: 1 + m_EtcTextureCompressorBehavior: 1 + m_EtcTextureFastCompressor: 1 + m_EtcTextureNormalCompressor: 2 + m_EtcTextureBestCompressor: 4 + m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref + m_ProjectGenerationRootNamespace: + m_CollabEditorSettings: + inProgressEnabled: 1 + m_EnableTextureStreamingInEditMode: 1 + m_EnableTextureStreamingInPlayMode: 1 + m_AsyncShaderCompilation: 1 + m_EnterPlayModeOptionsEnabled: 0 + m_EnterPlayModeOptions: 3 + m_ShowLightmapResolutionOverlay: 1 + m_UseLegacyProbeSampleCount: 1 + m_AssetPipelineMode: 1 + m_CacheServerMode: 0 + m_CacheServerEndpoint: + m_CacheServerNamespacePrefix: default + m_CacheServerEnableDownload: 1 + m_CacheServerEnableUpload: 1 diff --git a/ProjectSettings/GraphicsSettings.asset b/ProjectSettings/GraphicsSettings.asset new file mode 100644 index 0000000..ae52db9 --- /dev/null +++ b/ProjectSettings/GraphicsSettings.asset @@ -0,0 +1,57 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!30 &1 +GraphicsSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_Deferred: + m_Mode: 1 + m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} + m_DeferredReflections: + m_Mode: 1 + m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} + m_ScreenSpaceShadows: + m_Mode: 1 + m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} + m_LegacyDeferred: + m_Mode: 1 + m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} + m_DepthNormals: + m_Mode: 1 + m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} + m_MotionVectors: + m_Mode: 1 + m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} + m_LightHalo: + m_Mode: 1 + m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} + m_LensFlare: + m_Mode: 1 + m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} + m_AlwaysIncludedShaders: + - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} + - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} + m_PreloadedShaders: [] + m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, + type: 0} + m_CustomRenderPipeline: {fileID: 0} + m_TransparencySortMode: 0 + m_TransparencySortAxis: {x: 0, y: 0, z: 1} + m_DefaultRenderingPath: 1 + m_DefaultMobileRenderingPath: 1 + m_TierSettings: [] + m_LightmapStripping: 0 + m_FogStripping: 0 + m_InstancingStripping: 0 + m_LightmapKeepPlain: 1 + m_LightmapKeepDirCombined: 1 + m_LightmapKeepDynamicPlain: 1 + m_LightmapKeepDynamicDirCombined: 1 + m_LightmapKeepShadowMask: 1 + m_LightmapKeepSubtractive: 1 + m_FogKeepLinear: 1 + m_FogKeepExp: 1 + m_FogKeepExp2: 1 + m_AlbedoSwatchInfos: [] + m_LightsUseLinearIntensity: 0 + m_LightsUseColorTemperature: 0 diff --git a/ProjectSettings/InputManager.asset b/ProjectSettings/InputManager.asset new file mode 100644 index 0000000..e0c1229 --- /dev/null +++ b/ProjectSettings/InputManager.asset @@ -0,0 +1,2599 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!13 &1 +InputManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Axes: + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: left + positiveButton: right + altNegativeButton: a + altPositiveButton: d + gravity: 3 + dead: 0.001 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: down + positiveButton: up + altNegativeButton: s + altPositiveButton: w + gravity: 3 + dead: 0.001 + sensitivity: 3 + snap: 1 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left ctrl + altNegativeButton: + altPositiveButton: mouse 0 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left alt + altNegativeButton: + altPositiveButton: mouse 1 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: left shift + altNegativeButton: + altPositiveButton: mouse 2 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: space + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse X + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse Y + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Mouse ScrollWheel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0 + sensitivity: 0.1 + snap: 0 + invert: 0 + type: 1 + axis: 2 + joyNum: 0 + - serializedVersion: 3 + m_Name: Horizontal + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0.19 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Vertical + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: + altNegativeButton: + altPositiveButton: + gravity: 0 + dead: 0.19 + sensitivity: 1 + snap: 0 + invert: 1 + type: 2 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire1 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 0 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire2 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 1 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Fire3 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 2 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Jump + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: joystick button 3 + altNegativeButton: + altPositiveButton: + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: return + altNegativeButton: + altPositiveButton: joystick button 0 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Submit + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: enter + altNegativeButton: + altPositiveButton: space + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: Cancel + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_00 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_01 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 1 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_02 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 2 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_03 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 3 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_04 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 4 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_05 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 5 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_06 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 6 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_07 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 7 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_08 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 8 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_09 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 9 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_10 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 10 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_11 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 11 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_12 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 12 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_13 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 13 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_14 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 14 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis0_15 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 15 + joyNum: 0 + - serializedVersion: 3 + m_Name: cin_Axis1_00 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_01 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 1 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_02 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 2 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_03 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 3 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_04 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 4 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_05 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 5 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_06 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 6 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_07 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 7 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_08 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 8 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_09 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 9 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_10 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 10 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_11 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 11 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_12 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 12 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_13 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 13 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_14 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 14 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis1_15 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 15 + joyNum: 1 + - serializedVersion: 3 + m_Name: cin_Axis2_00 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_01 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 1 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_02 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 2 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_03 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 3 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_04 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 4 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_05 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 5 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_06 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 6 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_07 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 7 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_08 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 8 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_09 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 9 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_10 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 10 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_11 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 11 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_12 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 12 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_13 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 13 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_14 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 14 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis2_15 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 15 + joyNum: 2 + - serializedVersion: 3 + m_Name: cin_Axis3_00 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_01 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 1 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_02 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 2 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_03 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 3 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_04 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 4 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_05 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 5 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_06 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 6 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_07 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 7 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_08 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 8 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_09 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 9 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_10 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 10 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_11 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 11 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_12 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 12 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_13 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 13 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_14 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 14 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis3_15 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 15 + joyNum: 3 + - serializedVersion: 3 + m_Name: cin_Axis4_00 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_01 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 1 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_02 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 2 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_03 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 3 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_04 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 4 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_05 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 5 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_06 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 6 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_07 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 7 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_08 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 8 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_09 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 9 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_10 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 10 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_11 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 11 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_12 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 12 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_13 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 13 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_14 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 14 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis4_15 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 15 + joyNum: 4 + - serializedVersion: 3 + m_Name: cin_Axis5_00 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_01 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 1 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_02 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 2 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_03 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 3 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_04 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 4 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_05 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 5 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_06 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 6 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_07 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 7 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_08 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 8 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_09 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 9 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_10 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 10 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_11 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 11 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_12 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 12 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_13 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 13 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_14 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 14 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis5_15 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 15 + joyNum: 5 + - serializedVersion: 3 + m_Name: cin_Axis6_00 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_01 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 1 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_02 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 2 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_03 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 3 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_04 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 4 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_05 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 5 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_06 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 6 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_07 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 7 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_08 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 8 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_09 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 9 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_10 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 10 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_11 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 11 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_12 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 12 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_13 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 13 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_14 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 14 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis6_15 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 15 + joyNum: 6 + - serializedVersion: 3 + m_Name: cin_Axis7_00 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_01 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 1 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_02 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 2 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_03 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 3 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_04 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 4 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_05 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 5 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_06 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 6 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_07 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 7 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_08 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 8 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_09 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 9 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_10 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 10 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_11 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 11 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_12 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 12 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_13 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 13 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_14 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 14 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis7_15 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 15 + joyNum: 7 + - serializedVersion: 3 + m_Name: cin_Axis8_00 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 0 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_01 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 1 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_02 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 2 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_03 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 3 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_04 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 4 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_05 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 5 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_06 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 6 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_07 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 7 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_08 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 8 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_09 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 9 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_10 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 10 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_11 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 11 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_12 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 12 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_13 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 13 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_14 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 14 + joyNum: 8 + - serializedVersion: 3 + m_Name: cin_Axis8_15 + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: escape + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.1 + sensitivity: 1 + snap: 0 + invert: 0 + type: 2 + axis: 15 + joyNum: 8 diff --git a/ProjectSettings/NavMeshAreas.asset b/ProjectSettings/NavMeshAreas.asset new file mode 100644 index 0000000..c8fa1b5 --- /dev/null +++ b/ProjectSettings/NavMeshAreas.asset @@ -0,0 +1,91 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!126 &1 +NavMeshProjectSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + areas: + - name: Walkable + cost: 1 + - name: Not Walkable + cost: 1 + - name: Jump + cost: 2 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + - name: + cost: 1 + m_LastAgentTypeID: -887442657 + m_Settings: + - serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.75 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_SettingNames: + - Humanoid diff --git a/ProjectSettings/NetworkManager.asset b/ProjectSettings/NetworkManager.asset new file mode 100644 index 0000000..e9cd578 --- /dev/null +++ b/ProjectSettings/NetworkManager.asset @@ -0,0 +1,8 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!149 &1 +NetworkManager: + m_ObjectHideFlags: 0 + m_DebugLevel: 0 + m_Sendrate: 15 + m_AssetToPrefab: {} diff --git a/ProjectSettings/Physics2DSettings.asset b/ProjectSettings/Physics2DSettings.asset new file mode 100644 index 0000000..1a546aa --- /dev/null +++ b/ProjectSettings/Physics2DSettings.asset @@ -0,0 +1,56 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!19 &1 +Physics2DSettings: + m_ObjectHideFlags: 0 + serializedVersion: 4 + m_Gravity: {x: 0, y: -9.81} + m_DefaultMaterial: {fileID: 0} + m_VelocityIterations: 8 + m_PositionIterations: 3 + m_VelocityThreshold: 1 + m_MaxLinearCorrection: 0.2 + m_MaxAngularCorrection: 8 + m_MaxTranslationSpeed: 100 + m_MaxRotationSpeed: 360 + m_BaumgarteScale: 0.2 + m_BaumgarteTimeOfImpactScale: 0.75 + m_TimeToSleep: 0.5 + m_LinearSleepTolerance: 0.01 + m_AngularSleepTolerance: 2 + m_DefaultContactOffset: 0.01 + m_JobOptions: + serializedVersion: 2 + useMultithreading: 0 + useConsistencySorting: 0 + m_InterpolationPosesPerJob: 100 + m_NewContactsPerJob: 30 + m_CollideContactsPerJob: 100 + m_ClearFlagsPerJob: 200 + m_ClearBodyForcesPerJob: 200 + m_SyncDiscreteFixturesPerJob: 50 + m_SyncContinuousFixturesPerJob: 50 + m_FindNearestContactsPerJob: 100 + m_UpdateTriggerContactsPerJob: 100 + m_IslandSolverCostThreshold: 100 + m_IslandSolverBodyCostScale: 1 + m_IslandSolverContactCostScale: 10 + m_IslandSolverJointCostScale: 10 + m_IslandSolverBodiesPerJob: 50 + m_IslandSolverContactsPerJob: 50 + m_AutoSimulation: 1 + m_QueriesHitTriggers: 1 + m_QueriesStartInColliders: 1 + m_CallbacksOnDisable: 1 + m_ReuseCollisionCallbacks: 1 + m_AutoSyncTransforms: 0 + m_AlwaysShowColliders: 0 + m_ShowColliderSleep: 1 + m_ShowColliderContacts: 0 + m_ShowColliderAABB: 0 + m_ContactArrowScale: 0.2 + m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} + m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} + m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} + m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff diff --git a/ProjectSettings/PresetManager.asset b/ProjectSettings/PresetManager.asset new file mode 100644 index 0000000..7d66f80 --- /dev/null +++ b/ProjectSettings/PresetManager.asset @@ -0,0 +1,7 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1386491679 &1 +PresetManager: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_DefaultPresets: {} diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset new file mode 100644 index 0000000..66ece0b --- /dev/null +++ b/ProjectSettings/ProjectSettings.asset @@ -0,0 +1,645 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!129 &1 +PlayerSettings: + m_ObjectHideFlags: 0 + serializedVersion: 20 + productGUID: 7958e99a6a9a31ed18ee4cdf7aca73e6 + AndroidProfiler: 0 + AndroidFilterTouchesWhenObscured: 0 + AndroidEnableSustainedPerformanceMode: 0 + defaultScreenOrientation: 4 + targetDevice: 2 + useOnDemandResources: 0 + accelerometerFrequency: 60 + companyName: DefaultCompany + productName: Keep It Alive + defaultCursor: {fileID: 0} + cursorHotspot: {x: 0, y: 0} + m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} + m_ShowUnitySplashScreen: 1 + m_ShowUnitySplashLogo: 1 + m_SplashScreenOverlayOpacity: 1 + m_SplashScreenAnimation: 1 + m_SplashScreenLogoStyle: 1 + m_SplashScreenDrawMode: 0 + m_SplashScreenBackgroundAnimationZoom: 1 + m_SplashScreenLogoAnimationZoom: 1 + m_SplashScreenBackgroundLandscapeAspect: 1 + m_SplashScreenBackgroundPortraitAspect: 1 + m_SplashScreenBackgroundLandscapeUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenBackgroundPortraitUvs: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + m_SplashScreenLogos: [] + m_VirtualRealitySplashScreen: {fileID: 0} + m_HolographicTrackingLossScreen: {fileID: 0} + defaultScreenWidth: 1024 + defaultScreenHeight: 768 + defaultScreenWidthWeb: 960 + defaultScreenHeightWeb: 600 + m_StereoRenderingPath: 0 + m_ActiveColorSpace: 0 + m_MTRendering: 1 + m_StackTraceTypes: 010000000100000001000000010000000100000001000000 + iosShowActivityIndicatorOnLoading: -1 + androidShowActivityIndicatorOnLoading: -1 + iosUseCustomAppBackgroundBehavior: 0 + iosAllowHTTPDownload: 1 + allowedAutorotateToPortrait: 1 + allowedAutorotateToPortraitUpsideDown: 1 + allowedAutorotateToLandscapeRight: 1 + allowedAutorotateToLandscapeLeft: 1 + useOSAutorotation: 1 + use32BitDisplayBuffer: 1 + preserveFramebufferAlpha: 0 + disableDepthAndStencilBuffers: 0 + androidStartInFullscreen: 1 + androidRenderOutsideSafeArea: 1 + androidUseSwappy: 0 + androidBlitType: 0 + defaultIsNativeResolution: 1 + macRetinaSupport: 1 + runInBackground: 1 + captureSingleScreen: 0 + muteOtherAudioSources: 0 + Prepare IOS For Recording: 0 + Force IOS Speakers When Recording: 0 + deferSystemGesturesMode: 0 + hideHomeButton: 0 + submitAnalytics: 1 + usePlayerLog: 1 + bakeCollisionMeshes: 0 + forceSingleInstance: 0 + useFlipModelSwapchain: 1 + resizableWindow: 0 + useMacAppStoreValidation: 0 + macAppStoreCategory: public.app-category.games + gpuSkinning: 0 + xboxPIXTextureCapture: 0 + xboxEnableAvatar: 0 + xboxEnableKinect: 0 + xboxEnableKinectAutoTracking: 0 + xboxEnableFitness: 0 + visibleInBackground: 1 + allowFullscreenSwitch: 1 + fullscreenMode: 1 + xboxSpeechDB: 0 + xboxEnableHeadOrientation: 0 + xboxEnableGuest: 0 + xboxEnablePIXSampling: 0 + metalFramebufferOnly: 0 + xboxOneResolution: 0 + xboxOneSResolution: 0 + xboxOneXResolution: 3 + xboxOneMonoLoggingLevel: 0 + xboxOneLoggingLevel: 1 + xboxOneDisableEsram: 0 + xboxOneEnableTypeOptimization: 0 + xboxOnePresentImmediateThreshold: 0 + switchQueueCommandMemory: 0 + switchQueueControlMemory: 16384 + switchQueueComputeMemory: 262144 + switchNVNShaderPoolsGranularity: 33554432 + switchNVNDefaultPoolsGranularity: 16777216 + switchNVNOtherPoolsGranularity: 16777216 + vulkanNumSwapchainBuffers: 3 + vulkanEnableSetSRGBWrite: 0 + m_SupportedAspectRatios: + 4:3: 1 + 5:4: 1 + 16:10: 1 + 16:9: 1 + Others: 1 + bundleVersion: 0.1 + preloadedAssets: [] + metroInputSource: 0 + wsaTransparentSwapchain: 0 + m_HolographicPauseOnTrackingLoss: 1 + xboxOneDisableKinectGpuReservation: 1 + xboxOneEnable7thCore: 1 + vrSettings: + cardboard: + depthFormat: 0 + enableTransitionView: 0 + daydream: + depthFormat: 0 + useSustainedPerformanceMode: 0 + enableVideoLayer: 0 + useProtectedVideoMemory: 0 + minimumSupportedHeadTracking: 0 + maximumSupportedHeadTracking: 1 + hololens: + depthFormat: 1 + depthBufferSharingEnabled: 1 + lumin: + depthFormat: 0 + frameTiming: 2 + enableGLCache: 0 + glCacheMaxBlobSize: 524288 + glCacheMaxFileSize: 8388608 + oculus: + sharedDepthBuffer: 1 + dashSupport: 1 + lowOverheadMode: 0 + protectedContext: 0 + v2Signing: 1 + enable360StereoCapture: 0 + isWsaHolographicRemotingEnabled: 0 + enableFrameTimingStats: 0 + useHDRDisplay: 0 + D3DHDRBitDepth: 0 + m_ColorGamuts: 00000000 + targetPixelDensity: 30 + resolutionScalingMode: 0 + androidSupportedAspectRatio: 1 + androidMaxAspectRatio: 2.1 + applicationIdentifier: {} + buildNumber: {} + AndroidBundleVersionCode: 1 + AndroidMinSdkVersion: 19 + AndroidTargetSdkVersion: 0 + AndroidPreferredInstallLocation: 1 + aotOptions: + stripEngineCode: 1 + iPhoneStrippingLevel: 0 + iPhoneScriptCallOptimization: 0 + ForceInternetPermission: 0 + ForceSDCardPermission: 0 + CreateWallpaper: 0 + APKExpansionFiles: 0 + keepLoadedShadersAlive: 0 + StripUnusedMeshComponents: 1 + VertexChannelCompressionMask: 4054 + iPhoneSdkVersion: 988 + iOSTargetOSVersionString: 10.0 + tvOSSdkVersion: 0 + tvOSRequireExtendedGameController: 0 + tvOSTargetOSVersionString: 10.0 + uIPrerenderedIcon: 0 + uIRequiresPersistentWiFi: 0 + uIRequiresFullScreen: 1 + uIStatusBarHidden: 1 + uIExitOnSuspend: 0 + uIStatusBarStyle: 0 + iPhoneSplashScreen: {fileID: 0} + iPhoneHighResSplashScreen: {fileID: 0} + iPhoneTallHighResSplashScreen: {fileID: 0} + iPhone47inSplashScreen: {fileID: 0} + iPhone55inPortraitSplashScreen: {fileID: 0} + iPhone55inLandscapeSplashScreen: {fileID: 0} + iPhone58inPortraitSplashScreen: {fileID: 0} + iPhone58inLandscapeSplashScreen: {fileID: 0} + iPadPortraitSplashScreen: {fileID: 0} + iPadHighResPortraitSplashScreen: {fileID: 0} + iPadLandscapeSplashScreen: {fileID: 0} + iPadHighResLandscapeSplashScreen: {fileID: 0} + iPhone65inPortraitSplashScreen: {fileID: 0} + iPhone65inLandscapeSplashScreen: {fileID: 0} + iPhone61inPortraitSplashScreen: {fileID: 0} + iPhone61inLandscapeSplashScreen: {fileID: 0} + appleTVSplashScreen: {fileID: 0} + appleTVSplashScreen2x: {fileID: 0} + tvOSSmallIconLayers: [] + tvOSSmallIconLayers2x: [] + tvOSLargeIconLayers: [] + tvOSLargeIconLayers2x: [] + tvOSTopShelfImageLayers: [] + tvOSTopShelfImageLayers2x: [] + tvOSTopShelfImageWideLayers: [] + tvOSTopShelfImageWideLayers2x: [] + iOSLaunchScreenType: 0 + iOSLaunchScreenPortrait: {fileID: 0} + iOSLaunchScreenLandscape: {fileID: 0} + iOSLaunchScreenBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreenFillPct: 100 + iOSLaunchScreenSize: 100 + iOSLaunchScreenCustomXibPath: + iOSLaunchScreeniPadType: 0 + iOSLaunchScreeniPadImage: {fileID: 0} + iOSLaunchScreeniPadBackgroundColor: + serializedVersion: 2 + rgba: 0 + iOSLaunchScreeniPadFillPct: 100 + iOSLaunchScreeniPadSize: 100 + iOSLaunchScreeniPadCustomXibPath: + iOSUseLaunchScreenStoryboard: 0 + iOSLaunchScreenCustomStoryboardPath: + iOSDeviceRequirements: [] + iOSURLSchemes: [] + iOSBackgroundModes: 0 + iOSMetalForceHardShadows: 0 + metalEditorSupport: 1 + metalAPIValidation: 1 + iOSRenderExtraFrameOnPause: 0 + appleDeveloperTeamID: + iOSManualSigningProvisioningProfileID: + tvOSManualSigningProvisioningProfileID: + iOSManualSigningProvisioningProfileType: 0 + tvOSManualSigningProvisioningProfileType: 0 + appleEnableAutomaticSigning: 0 + iOSRequireARKit: 0 + iOSAutomaticallyDetectAndAddCapabilities: 1 + appleEnableProMotion: 0 + clonedFromGUID: 5f34be1353de5cf4398729fda238591b + templatePackageId: com.unity.template.2d@3.3.0 + templateDefaultScene: Assets/Scenes/SampleScene.unity + AndroidTargetArchitectures: 1 + AndroidSplashScreenScale: 0 + androidSplashScreen: {fileID: 0} + AndroidKeystoreName: + AndroidKeyaliasName: + AndroidBuildApkPerCpuArchitecture: 0 + AndroidTVCompatibility: 0 + AndroidIsGame: 1 + AndroidEnableTango: 0 + androidEnableBanner: 1 + androidUseLowAccuracyLocation: 0 + androidUseCustomKeystore: 0 + m_AndroidBanners: + - width: 320 + height: 180 + banner: {fileID: 0} + androidGamepadSupportLevel: 0 + AndroidValidateAppBundleSize: 1 + AndroidAppBundleSizeToValidate: 150 + m_BuildTargetIcons: [] + m_BuildTargetPlatformIcons: [] + m_BuildTargetBatching: [] + m_BuildTargetGraphicsJobs: + - m_BuildTarget: MacStandaloneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: Switch + m_GraphicsJobs: 0 + - m_BuildTarget: MetroSupport + m_GraphicsJobs: 0 + - m_BuildTarget: AppleTVSupport + m_GraphicsJobs: 0 + - m_BuildTarget: BJMSupport + m_GraphicsJobs: 0 + - m_BuildTarget: LinuxStandaloneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: PS4Player + m_GraphicsJobs: 0 + - m_BuildTarget: iOSSupport + m_GraphicsJobs: 0 + - m_BuildTarget: WindowsStandaloneSupport + m_GraphicsJobs: 0 + - m_BuildTarget: XboxOnePlayer + m_GraphicsJobs: 0 + - m_BuildTarget: LuminSupport + m_GraphicsJobs: 0 + - m_BuildTarget: AndroidPlayer + m_GraphicsJobs: 0 + - m_BuildTarget: WebGLSupport + m_GraphicsJobs: 0 + m_BuildTargetGraphicsJobMode: + - m_BuildTarget: PS4Player + m_GraphicsJobMode: 0 + - m_BuildTarget: XboxOnePlayer + m_GraphicsJobMode: 0 + m_BuildTargetGraphicsAPIs: + - m_BuildTarget: AndroidPlayer + m_APIs: 150000000b000000 + m_Automatic: 0 + m_BuildTargetVRSettings: [] + openGLRequireES31: 0 + openGLRequireES31AEP: 0 + openGLRequireES32: 0 + m_TemplateCustomTags: {} + mobileMTRendering: + Android: 1 + iPhone: 1 + tvOS: 1 + m_BuildTargetGroupLightmapEncodingQuality: [] + m_BuildTargetGroupLightmapSettings: [] + playModeTestRunnerEnabled: 0 + runPlayModeTestAsEditModeTest: 0 + actionOnDotNetUnhandledException: 1 + enableInternalProfiler: 0 + logObjCUncaughtExceptions: 1 + enableCrashReportAPI: 0 + cameraUsageDescription: + locationUsageDescription: + microphoneUsageDescription: + switchNetLibKey: + switchSocketMemoryPoolSize: 6144 + switchSocketAllocatorPoolSize: 128 + switchSocketConcurrencyLimit: 14 + switchScreenResolutionBehavior: 2 + switchUseCPUProfiler: 0 + switchApplicationID: 0x01004b9000490000 + switchNSODependencies: + switchTitleNames_0: + switchTitleNames_1: + switchTitleNames_2: + switchTitleNames_3: + switchTitleNames_4: + switchTitleNames_5: + switchTitleNames_6: + switchTitleNames_7: + switchTitleNames_8: + switchTitleNames_9: + switchTitleNames_10: + switchTitleNames_11: + switchTitleNames_12: + switchTitleNames_13: + switchTitleNames_14: + switchPublisherNames_0: + switchPublisherNames_1: + switchPublisherNames_2: + switchPublisherNames_3: + switchPublisherNames_4: + switchPublisherNames_5: + switchPublisherNames_6: + switchPublisherNames_7: + switchPublisherNames_8: + switchPublisherNames_9: + switchPublisherNames_10: + switchPublisherNames_11: + switchPublisherNames_12: + switchPublisherNames_13: + switchPublisherNames_14: + switchIcons_0: {fileID: 0} + switchIcons_1: {fileID: 0} + switchIcons_2: {fileID: 0} + switchIcons_3: {fileID: 0} + switchIcons_4: {fileID: 0} + switchIcons_5: {fileID: 0} + switchIcons_6: {fileID: 0} + switchIcons_7: {fileID: 0} + switchIcons_8: {fileID: 0} + switchIcons_9: {fileID: 0} + switchIcons_10: {fileID: 0} + switchIcons_11: {fileID: 0} + switchIcons_12: {fileID: 0} + switchIcons_13: {fileID: 0} + switchIcons_14: {fileID: 0} + switchSmallIcons_0: {fileID: 0} + switchSmallIcons_1: {fileID: 0} + switchSmallIcons_2: {fileID: 0} + switchSmallIcons_3: {fileID: 0} + switchSmallIcons_4: {fileID: 0} + switchSmallIcons_5: {fileID: 0} + switchSmallIcons_6: {fileID: 0} + switchSmallIcons_7: {fileID: 0} + switchSmallIcons_8: {fileID: 0} + switchSmallIcons_9: {fileID: 0} + switchSmallIcons_10: {fileID: 0} + switchSmallIcons_11: {fileID: 0} + switchSmallIcons_12: {fileID: 0} + switchSmallIcons_13: {fileID: 0} + switchSmallIcons_14: {fileID: 0} + switchManualHTML: + switchAccessibleURLs: + switchLegalInformation: + switchMainThreadStackSize: 1048576 + switchPresenceGroupId: + switchLogoHandling: 0 + switchReleaseVersion: 0 + switchDisplayVersion: 1.0.0 + switchStartupUserAccount: 0 + switchTouchScreenUsage: 0 + switchSupportedLanguagesMask: 0 + switchLogoType: 0 + switchApplicationErrorCodeCategory: + switchUserAccountSaveDataSize: 0 + switchUserAccountSaveDataJournalSize: 0 + switchApplicationAttribute: 0 + switchCardSpecSize: -1 + switchCardSpecClock: -1 + switchRatingsMask: 0 + switchRatingsInt_0: 0 + switchRatingsInt_1: 0 + switchRatingsInt_2: 0 + switchRatingsInt_3: 0 + switchRatingsInt_4: 0 + switchRatingsInt_5: 0 + switchRatingsInt_6: 0 + switchRatingsInt_7: 0 + switchRatingsInt_8: 0 + switchRatingsInt_9: 0 + switchRatingsInt_10: 0 + switchRatingsInt_11: 0 + switchRatingsInt_12: 0 + switchLocalCommunicationIds_0: + switchLocalCommunicationIds_1: + switchLocalCommunicationIds_2: + switchLocalCommunicationIds_3: + switchLocalCommunicationIds_4: + switchLocalCommunicationIds_5: + switchLocalCommunicationIds_6: + switchLocalCommunicationIds_7: + switchParentalControl: 0 + switchAllowsScreenshot: 1 + switchAllowsVideoCapturing: 1 + switchAllowsRuntimeAddOnContentInstall: 0 + switchDataLossConfirmation: 0 + switchUserAccountLockEnabled: 0 + switchSystemResourceMemory: 16777216 + switchSupportedNpadStyles: 22 + switchNativeFsCacheSize: 32 + switchIsHoldTypeHorizontal: 0 + switchSupportedNpadCount: 8 + switchSocketConfigEnabled: 0 + switchTcpInitialSendBufferSize: 32 + switchTcpInitialReceiveBufferSize: 64 + switchTcpAutoSendBufferSizeMax: 256 + switchTcpAutoReceiveBufferSizeMax: 256 + switchUdpSendBufferSize: 9 + switchUdpReceiveBufferSize: 42 + switchSocketBufferEfficiency: 4 + switchSocketInitializeEnabled: 1 + switchNetworkInterfaceManagerInitializeEnabled: 1 + switchPlayerConnectionEnabled: 1 + ps4NPAgeRating: 12 + ps4NPTitleSecret: + ps4NPTrophyPackPath: + ps4ParentalLevel: 11 + ps4ContentID: ED1633-NPXX51362_00-0000000000000000 + ps4Category: 0 + ps4MasterVersion: 01.00 + ps4AppVersion: 01.00 + ps4AppType: 0 + ps4ParamSfxPath: + ps4VideoOutPixelFormat: 0 + ps4VideoOutInitialWidth: 1920 + ps4VideoOutBaseModeInitialWidth: 1920 + ps4VideoOutReprojectionRate: 60 + ps4PronunciationXMLPath: + ps4PronunciationSIGPath: + ps4BackgroundImagePath: + ps4StartupImagePath: + ps4StartupImagesFolder: + ps4IconImagesFolder: + ps4SaveDataImagePath: + ps4SdkOverride: + ps4BGMPath: + ps4ShareFilePath: + ps4ShareOverlayImagePath: + ps4PrivacyGuardImagePath: + ps4NPtitleDatPath: + ps4RemotePlayKeyAssignment: -1 + ps4RemotePlayKeyMappingDir: + ps4PlayTogetherPlayerCount: 0 + ps4EnterButtonAssignment: 1 + ps4ApplicationParam1: 0 + ps4ApplicationParam2: 0 + ps4ApplicationParam3: 0 + ps4ApplicationParam4: 0 + ps4DownloadDataSize: 0 + ps4GarlicHeapSize: 2048 + ps4ProGarlicHeapSize: 2560 + playerPrefsMaxSize: 32768 + ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ + ps4pnSessions: 1 + ps4pnPresence: 1 + ps4pnFriends: 1 + ps4pnGameCustomData: 1 + playerPrefsSupport: 0 + enableApplicationExit: 0 + resetTempFolder: 1 + restrictedAudioUsageRights: 0 + ps4UseResolutionFallback: 0 + ps4ReprojectionSupport: 0 + ps4UseAudio3dBackend: 0 + ps4SocialScreenEnabled: 0 + ps4ScriptOptimizationLevel: 0 + ps4Audio3dVirtualSpeakerCount: 14 + ps4attribCpuUsage: 0 + ps4PatchPkgPath: + ps4PatchLatestPkgPath: + ps4PatchChangeinfoPath: + ps4PatchDayOne: 0 + ps4attribUserManagement: 0 + ps4attribMoveSupport: 0 + ps4attrib3DSupport: 0 + ps4attribShareSupport: 0 + ps4attribExclusiveVR: 0 + ps4disableAutoHideSplash: 0 + ps4videoRecordingFeaturesUsed: 0 + ps4contentSearchFeaturesUsed: 0 + ps4attribEyeToEyeDistanceSettingVR: 0 + ps4IncludedModules: [] + ps4attribVROutputEnabled: 0 + monoEnv: + splashScreenBackgroundSourceLandscape: {fileID: 0} + splashScreenBackgroundSourcePortrait: {fileID: 0} + blurSplashScreenBackground: 1 + spritePackerPolicy: + webGLMemorySize: 16 + webGLExceptionSupport: 1 + webGLNameFilesAsHashes: 0 + webGLDataCaching: 1 + webGLDebugSymbols: 0 + webGLEmscriptenArgs: + webGLModulesDirectory: + webGLTemplate: APPLICATION:Default + webGLAnalyzeBuildSize: 0 + webGLUseEmbeddedResources: 0 + webGLCompressionFormat: 1 + webGLLinkerTarget: 1 + webGLThreadsSupport: 0 + webGLWasmStreaming: 0 + scriptingDefineSymbols: {} + platformArchitecture: {} + scriptingBackend: {} + il2cppCompilerConfiguration: {} + managedStrippingLevel: {} + incrementalIl2cppBuild: {} + allowUnsafeCode: 0 + additionalIl2CppArgs: + scriptingRuntimeVersion: 1 + gcIncremental: 0 + gcWBarrierValidation: 0 + apiCompatibilityLevelPerPlatform: {} + m_RenderingPath: 1 + m_MobileRenderingPath: 1 + metroPackageName: Template_2D + metroPackageVersion: + metroCertificatePath: + metroCertificatePassword: + metroCertificateSubject: + metroCertificateIssuer: + metroCertificateNotAfter: 0000000000000000 + metroApplicationDescription: Template_2D + wsaImages: {} + metroTileShortName: + metroTileShowName: 0 + metroMediumTileShowName: 0 + metroLargeTileShowName: 0 + metroWideTileShowName: 0 + metroSupportStreamingInstall: 0 + metroLastRequiredScene: 0 + metroDefaultTileSize: 1 + metroTileForegroundText: 2 + metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} + metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, + a: 1} + metroSplashScreenUseBackgroundColor: 0 + platformCapabilities: {} + metroTargetDeviceFamilies: {} + metroFTAName: + metroFTAFileTypes: [] + metroProtocolName: + XboxOneProductId: + XboxOneUpdateKey: + XboxOneSandboxId: + XboxOneContentId: + XboxOneTitleId: + XboxOneSCId: + XboxOneGameOsOverridePath: + XboxOnePackagingOverridePath: + XboxOneAppManifestOverridePath: + XboxOneVersion: 1.0.0.0 + XboxOnePackageEncryption: 0 + XboxOnePackageUpdateGranularity: 2 + XboxOneDescription: + XboxOneLanguage: + - enus + XboxOneCapability: [] + XboxOneGameRating: {} + XboxOneIsContentPackage: 0 + XboxOneEnableGPUVariability: 1 + XboxOneSockets: {} + XboxOneSplashScreen: {fileID: 0} + XboxOneAllowedProductIds: [] + XboxOnePersistentLocalStorageSize: 0 + XboxOneXTitleMemory: 8 + XboxOneOverrideIdentityName: + vrEditorSettings: + daydream: + daydreamIconForeground: {fileID: 0} + daydreamIconBackground: {fileID: 0} + cloudServicesEnabled: + UNet: 1 + luminIcon: + m_Name: + m_ModelFolderPath: + m_PortalFolderPath: + luminCert: + m_CertPath: + m_SignPackage: 1 + luminIsChannelApp: 0 + luminVersion: + m_VersionCode: 1 + m_VersionName: + apiCompatibilityLevel: 6 + cloudProjectId: + framebufferDepthMemorylessMode: 0 + projectName: + organizationId: + cloudEnabled: 0 + enableNativePlatformBackendsForNewInputSystem: 0 + disableOldInputManagerSupport: 0 + legacyClampBlendShapeWeights: 0 diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt new file mode 100644 index 0000000..4b912eb --- /dev/null +++ b/ProjectSettings/ProjectVersion.txt @@ -0,0 +1,2 @@ +m_EditorVersion: 2019.3.7f1 +m_EditorVersionWithRevision: 2019.3.7f1 (6437fd74d35d) diff --git a/ProjectSettings/QualitySettings.asset b/ProjectSettings/QualitySettings.asset new file mode 100644 index 0000000..698f64f --- /dev/null +++ b/ProjectSettings/QualitySettings.asset @@ -0,0 +1,192 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!47 &1 +QualitySettings: + m_ObjectHideFlags: 0 + serializedVersion: 5 + m_CurrentQuality: 3 + m_QualitySettings: + - serializedVersion: 2 + name: Very Low + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 15 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 1 + textureQuality: 1 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: 0.3 + maximumLODLevel: 0 + particleRaycastBudget: 4 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Low + pixelLightCount: 0 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 0 + lodBias: 0.4 + maximumLODLevel: 0 + particleRaycastBudget: 16 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Medium + pixelLightCount: 1 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 1 + shadowDistance: 20 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 0 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 0 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 1 + lodBias: 0.7 + maximumLODLevel: 0 + particleRaycastBudget: 64 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: High + pixelLightCount: 2 + shadows: 0 + shadowResolution: 1 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 40 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 2 + textureQuality: 0 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 1 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 1 + lodBias: 1 + maximumLODLevel: 0 + particleRaycastBudget: 256 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Very High + pixelLightCount: 3 + shadows: 0 + shadowResolution: 2 + shadowProjection: 1 + shadowCascades: 2 + shadowDistance: 70 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 1 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 1 + lodBias: 1.5 + maximumLODLevel: 0 + particleRaycastBudget: 1024 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + - serializedVersion: 2 + name: Ultra + pixelLightCount: 4 + shadows: 0 + shadowResolution: 0 + shadowProjection: 1 + shadowCascades: 4 + shadowDistance: 150 + shadowNearPlaneOffset: 3 + shadowCascade2Split: 0.33333334 + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} + shadowmaskMode: 1 + blendWeights: 4 + textureQuality: 0 + anisotropicTextures: 0 + antiAliasing: 0 + softParticles: 0 + softVegetation: 1 + realtimeReflectionProbes: 0 + billboardsFaceCameraPosition: 0 + vSyncCount: 1 + lodBias: 2 + maximumLODLevel: 0 + particleRaycastBudget: 4096 + asyncUploadTimeSlice: 2 + asyncUploadBufferSize: 16 + resolutionScalingFixedDPIFactor: 1 + excludedTargetPlatforms: [] + m_PerPlatformDefaultQuality: + Android: 2 + Nintendo 3DS: 5 + Nintendo Switch: 5 + PS4: 5 + PSM: 5 + PSP2: 2 + Stadia: 5 + Standalone: 5 + Tizen: 2 + WebGL: 3 + WiiU: 5 + Windows Store Apps: 5 + XboxOne: 5 + iPhone: 2 + tvOS: 2 diff --git a/ProjectSettings/TagManager.asset b/ProjectSettings/TagManager.asset new file mode 100644 index 0000000..3281f1b --- /dev/null +++ b/ProjectSettings/TagManager.asset @@ -0,0 +1,43 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!78 &1 +TagManager: + serializedVersion: 2 + tags: [] + layers: + - Default + - TransparentFX + - Ignore Raycast + - + - Water + - UI + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + m_SortingLayers: + - name: Default + uniqueID: 0 + locked: 0 diff --git a/ProjectSettings/TimeManager.asset b/ProjectSettings/TimeManager.asset new file mode 100644 index 0000000..b816de4 --- /dev/null +++ b/ProjectSettings/TimeManager.asset @@ -0,0 +1,9 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!5 &1 +TimeManager: + m_ObjectHideFlags: 0 + Fixed Timestep: 0.02 + Maximum Allowed Timestep: 0.1 + m_TimeScale: 1 + Maximum Particle Timestep: 0.03 diff --git a/ProjectSettings/UnityConnectSettings.asset b/ProjectSettings/UnityConnectSettings.asset new file mode 100644 index 0000000..fa0b146 --- /dev/null +++ b/ProjectSettings/UnityConnectSettings.asset @@ -0,0 +1,34 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!310 &1 +UnityConnectSettings: + m_ObjectHideFlags: 0 + serializedVersion: 1 + m_Enabled: 0 + m_TestMode: 0 + m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events + m_EventUrl: https://cdp.cloud.unity3d.com/v1/events + m_ConfigUrl: https://config.uca.cloud.unity3d.com + m_TestInitMode: 0 + CrashReportingSettings: + m_EventUrl: https://perf-events.cloud.unity3d.com + m_Enabled: 0 + m_LogBufferSize: 10 + m_CaptureEditorExceptions: 1 + UnityPurchasingSettings: + m_Enabled: 0 + m_TestMode: 0 + UnityAnalyticsSettings: + m_Enabled: 0 + m_TestMode: 0 + m_InitializeOnStartup: 1 + UnityAdsSettings: + m_Enabled: 0 + m_InitializeOnStartup: 1 + m_TestMode: 0 + m_IosGameId: + m_AndroidGameId: + m_GameIds: {} + m_GameId: + PerformanceReportingSettings: + m_Enabled: 0 diff --git a/ProjectSettings/VFXManager.asset b/ProjectSettings/VFXManager.asset new file mode 100644 index 0000000..379de33 --- /dev/null +++ b/ProjectSettings/VFXManager.asset @@ -0,0 +1,12 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!937362698 &1 +VFXManager: + m_ObjectHideFlags: 0 + m_IndirectShader: {fileID: 0} + m_CopyBufferShader: {fileID: 0} + m_SortShader: {fileID: 0} + m_StripUpdateShader: {fileID: 0} + m_RenderPipeSettingsPath: + m_FixedTimeStep: 0.016666668 + m_MaxDeltaTime: 0.05 diff --git a/ProjectSettings/XRSettings.asset b/ProjectSettings/XRSettings.asset new file mode 100644 index 0000000..482590c --- /dev/null +++ b/ProjectSettings/XRSettings.asset @@ -0,0 +1,10 @@ +{ + "m_SettingKeys": [ + "VR Device Disabled", + "VR Device User Alert" + ], + "m_SettingValues": [ + "False", + "False" + ] +} \ No newline at end of file diff --git a/Sprites/character.xcf b/Sprites/character.xcf new file mode 100644 index 0000000..64a8df7 Binary files /dev/null and b/Sprites/character.xcf differ diff --git a/Sprites/fire.xcf b/Sprites/fire.xcf new file mode 100644 index 0000000..4f83c6b Binary files /dev/null and b/Sprites/fire.xcf differ diff --git a/Sprites/fire_base.xcf b/Sprites/fire_base.xcf new file mode 100644 index 0000000..dd0cb59 Binary files /dev/null and b/Sprites/fire_base.xcf differ diff --git a/Sprites/tile.xcf b/Sprites/tile.xcf new file mode 100644 index 0000000..a01b39c Binary files /dev/null and b/Sprites/tile.xcf differ diff --git a/Sprites/tree.xcf b/Sprites/tree.xcf new file mode 100644 index 0000000..88e29b6 Binary files /dev/null and b/Sprites/tree.xcf differ