diff --git a/Assets/Animations/Idle.anim b/Assets/Animations/Idle.anim index 542ef21..60429b7 100644 --- a/Assets/Animations/Idle.anim +++ b/Assets/Animations/Idle.anim @@ -21,13 +21,15 @@ AnimationClip: - serializedVersion: 2 curve: - time: 0 - value: {fileID: 130041845, guid: 314fc91474df09941ba9dc267df5efe3, type: 3} + value: {fileID: -1109865691, guid: 7cc804dcc187b214695e6a43af191d5d, type: 3} + - time: 0.5 + value: {fileID: 498723527, guid: 7cc804dcc187b214695e6a43af191d5d, type: 3} attribute: m_Sprite path: classID: 212 script: {fileID: 0} flags: 2 - m_SampleRate: 60 + m_SampleRate: 2 m_WrapMode: 0 m_Bounds: m_Center: {x: 0, y: 0, z: 0} @@ -44,13 +46,14 @@ AnimationClip: isIntCurve: 0 isSerializeReferenceCurve: 0 pptrCurveMapping: - - {fileID: 130041845, guid: 314fc91474df09941ba9dc267df5efe3, type: 3} + - {fileID: -1109865691, guid: 7cc804dcc187b214695e6a43af191d5d, type: 3} + - {fileID: 498723527, guid: 7cc804dcc187b214695e6a43af191d5d, type: 3} m_AnimationClipSettings: serializedVersion: 2 m_AdditiveReferencePoseClip: {fileID: 0} m_AdditiveReferencePoseTime: 0 m_StartTime: 0 - m_StopTime: 0.016666668 + m_StopTime: 1 m_OrientationOffsetY: 0 m_Level: 0 m_CycleOffset: 0 diff --git a/Assets/Animations/Player.controller b/Assets/Animations/Player.controller index 679ddd6..3697015 100644 --- a/Assets/Animations/Player.controller +++ b/Assets/Animations/Player.controller @@ -1,32 +1,5 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: ---- !u!1102 &-8628188960147289897 -AnimatorState: - serializedVersion: 6 - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: PlayerRunRight - m_Speed: 1 - m_CycleOffset: 0 - m_Transitions: - - {fileID: 7494269711015925615} - 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: 00f2cf8ec4608894eb6ab8d763dd1b8d, type: 2} - m_Tag: - m_SpeedParameter: - m_MirrorParameter: - m_CycleOffsetParameter: - m_TimeParameter: --- !u!1102 &-7806160175022390470 AnimatorState: serializedVersion: 6 @@ -38,8 +11,7 @@ AnimatorState: m_Speed: 1 m_CycleOffset: 0 m_Transitions: - - {fileID: 1298765324521578328} - - {fileID: 1478034274100310696} + - {fileID: -3559831429842214659} m_StateMachineBehaviours: [] m_Position: {x: 50, y: 50, z: 0} m_IKOnFeet: 0 @@ -55,6 +27,56 @@ AnimatorState: m_MirrorParameter: m_CycleOffsetParameter: m_TimeParameter: +--- !u!1101 &-6426099038884766712 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 2 + m_ConditionEvent: PlayerWalk + m_EventTreshold: 0 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: 0} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 1 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.55 + m_HasExitTime: 0 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1101 &-3559831429842214659 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 1 + m_ConditionEvent: PlayerWalk + m_EventTreshold: 0 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: 2411608170518032224} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0 + m_HasExitTime: 0 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 --- !u!1102 &-2656673392868499701 AnimatorState: serializedVersion: 6 @@ -90,9 +112,6 @@ AnimatorStateMachine: m_PrefabAsset: {fileID: 0} m_Name: Base Layer m_ChildStates: - - serializedVersion: 1 - m_State: {fileID: -8628188960147289897} - m_Position: {x: 400, y: 210, z: 0} - serializedVersion: 1 m_State: {fileID: -2656673392868499701} m_Position: {x: 170, y: 70, z: 0} @@ -100,8 +119,8 @@ AnimatorStateMachine: m_State: {fileID: -7806160175022390470} m_Position: {x: 70, y: 210, z: 0} - serializedVersion: 1 - m_State: {fileID: -1144291501703863936} - m_Position: {x: -240, y: 210, z: 0} + m_State: {fileID: 2411608170518032224} + m_Position: {x: 410, y: 210, z: 0} m_ChildStateMachines: [] m_AnyStateTransitions: [] m_EntryTransitions: [] @@ -109,21 +128,49 @@ AnimatorStateMachine: m_StateMachineBehaviours: [] m_AnyStatePosition: {x: 190, y: -160, z: 0} m_EntryPosition: {x: 90, y: 280, z: 0} - m_ExitPosition: {x: 180, y: 480, z: 0} + m_ExitPosition: {x: 420, y: 420, z: 0} m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} m_DefaultState: {fileID: -7806160175022390470} ---- !u!1102 &-1144291501703863936 +--- !u!91 &9100000 +AnimatorController: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Player + serializedVersion: 5 + m_AnimatorParameters: + - m_Name: PlayerWalk + m_Type: 4 + m_DefaultFloat: 0 + m_DefaultInt: 0 + m_DefaultBool: 0 + m_Controller: {fileID: 0} + m_AnimatorLayers: + - serializedVersion: 5 + m_Name: Base Layer + m_StateMachine: {fileID: -2368883651481428904} + 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!1102 &2411608170518032224 AnimatorState: serializedVersion: 6 m_ObjectHideFlags: 1 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: New State + m_Name: Walk m_Speed: 1 m_CycleOffset: 0 m_Transitions: - - {fileID: 8341013897987874413} + - {fileID: -6426099038884766712} m_StateMachineBehaviours: [] m_Position: {x: 50, y: 50, z: 0} m_IKOnFeet: 0 @@ -139,128 +186,3 @@ AnimatorState: 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: Player - serializedVersion: 5 - m_AnimatorParameters: - - m_Name: Horizontal - m_Type: 1 - m_DefaultFloat: 0 - m_DefaultInt: 0 - m_DefaultBool: 0 - m_Controller: {fileID: 9100000} - m_AnimatorLayers: - - serializedVersion: 5 - m_Name: Base Layer - m_StateMachine: {fileID: -2368883651481428904} - 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 &1298765324521578328 -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: Horizontal - m_EventTreshold: 0 - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: -8628188960147289897} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.20232019 - m_TransitionOffset: 0 - m_ExitTime: 0.000000021806578 - m_HasExitTime: 0 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &1478034274100310696 -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: Horizontal - m_EventTreshold: 0 - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: -1144291501703863936} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 0 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &7494269711015925615 -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: Horizontal - m_EventTreshold: 0.001 - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 0} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 1 - serializedVersion: 3 - m_TransitionDuration: 0 - m_TransitionOffset: 0 - m_ExitTime: 0.5 - m_HasExitTime: 0 - m_HasFixedDuration: 0 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 ---- !u!1101 &8341013897987874413 -AnimatorStateTransition: - m_ObjectHideFlags: 1 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: - m_Conditions: [] - m_DstStateMachine: {fileID: 0} - m_DstState: {fileID: 0} - m_Solo: 0 - m_Mute: 0 - m_IsExit: 1 - serializedVersion: 3 - m_TransitionDuration: 0.25 - m_TransitionOffset: 0 - m_ExitTime: 0.775 - m_HasExitTime: 1 - m_HasFixedDuration: 1 - m_InterruptionSource: 0 - m_OrderedInterruption: 1 - m_CanTransitionToSelf: 1 diff --git a/Assets/Animations/PlayerClimb.anim b/Assets/Animations/PlayerClimb.anim index 85a98b8..6d8298c 100644 --- a/Assets/Animations/PlayerClimb.anim +++ b/Assets/Animations/PlayerClimb.anim @@ -7,7 +7,7 @@ AnimationClip: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: PlayerClimb - serializedVersion: 6 + serializedVersion: 7 m_Legacy: 0 m_Compressed: 0 m_UseHighQualityCurve: 1 @@ -18,16 +18,18 @@ AnimationClip: m_ScaleCurves: [] m_FloatCurves: [] m_PPtrCurves: - - curve: + - serializedVersion: 2 + curve: - time: 0 - value: {fileID: 1382462362302480272, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.16666667 - value: {fileID: -3002451015142912739, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} + value: {fileID: -1109865691, guid: 7cc804dcc187b214695e6a43af191d5d, type: 3} + - time: 0.5 + value: {fileID: 498723527, guid: 7cc804dcc187b214695e6a43af191d5d, type: 3} attribute: m_Sprite path: classID: 212 script: {fileID: 0} - m_SampleRate: 6 + flags: 2 + m_SampleRate: 2 m_WrapMode: 0 m_Bounds: m_Center: {x: 0, y: 0, z: 0} @@ -41,15 +43,17 @@ AnimationClip: typeID: 212 customType: 23 isPPtrCurve: 1 + isIntCurve: 0 + isSerializeReferenceCurve: 0 pptrCurveMapping: - - {fileID: 1382462362302480272, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: -3002451015142912739, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} + - {fileID: -1109865691, guid: 7cc804dcc187b214695e6a43af191d5d, type: 3} + - {fileID: 498723527, guid: 7cc804dcc187b214695e6a43af191d5d, type: 3} m_AnimationClipSettings: serializedVersion: 2 m_AdditiveReferencePoseClip: {fileID: 0} m_AdditiveReferencePoseTime: 0 m_StartTime: 0 - m_StopTime: 0.33333334 + m_StopTime: 1 m_OrientationOffsetY: 0 m_Level: 0 m_CycleOffset: 0 diff --git a/Assets/Animations/PlayerRunLeft.anim b/Assets/Animations/PlayerRunLeft.anim deleted file mode 100644 index e6482a6..0000000 --- a/Assets/Animations/PlayerRunLeft.anim +++ /dev/null @@ -1,114 +0,0 @@ -%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: PlayerRunLeft - serializedVersion: 7 - m_Legacy: 0 - m_Compressed: 0 - m_UseHighQualityCurve: 1 - m_RotationCurves: [] - m_CompressedRotationCurves: [] - m_EulerCurves: [] - m_PositionCurves: [] - m_ScaleCurves: [] - m_FloatCurves: [] - m_PPtrCurves: - - serializedVersion: 2 - curve: - - time: 0 - value: {fileID: -7896281735413620878, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.06666667 - value: {fileID: 4214452682036070143, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.13333334 - value: {fileID: 6707464328325396904, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.2 - value: {fileID: -6646785486133963012, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.26666668 - value: {fileID: 6707464328325396904, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.33333334 - value: {fileID: 4214452682036070143, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.4 - value: {fileID: -7896281735413620878, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.46666667 - value: {fileID: 9203835802740118276, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.53333336 - value: {fileID: 1903030100871761730, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.6 - value: {fileID: 6646376060719561138, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.6666667 - value: {fileID: 1382462362302480272, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.73333335 - value: {fileID: 6646376060719561138, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.8 - value: {fileID: 1903030100871761730, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.8666667 - value: {fileID: 9203835802740118276, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - time: 0.93333334 - value: {fileID: -7896281735413620878, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - attribute: m_Sprite - path: - classID: 212 - script: {fileID: 0} - flags: 2 - m_SampleRate: 15 - 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 - isIntCurve: 0 - isSerializeReferenceCurve: 0 - pptrCurveMapping: - - {fileID: -7896281735413620878, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: 4214452682036070143, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: 6707464328325396904, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: -6646785486133963012, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: 6707464328325396904, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: 4214452682036070143, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: -7896281735413620878, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: 9203835802740118276, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: 1903030100871761730, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: 6646376060719561138, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: 1382462362302480272, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: 6646376060719561138, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: 1903030100871761730, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: 9203835802740118276, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - - {fileID: -7896281735413620878, guid: 02a85e8195c892a488857ba6f45e1b3c, type: 3} - m_AnimationClipSettings: - serializedVersion: 2 - m_AdditiveReferencePoseClip: {fileID: 0} - m_AdditiveReferencePoseTime: 0 - m_StartTime: 0 - m_StopTime: 1 - 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/PlayerRunLeft.anim.meta b/Assets/Animations/PlayerRunLeft.anim.meta deleted file mode 100644 index fc7a51f..0000000 --- a/Assets/Animations/PlayerRunLeft.anim.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 5617e84a5d249f843b84274c2202e23d -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 7400000 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Animations/PlayerRunRight.anim b/Assets/Animations/PlayerWalk.anim similarity index 99% rename from Assets/Animations/PlayerRunRight.anim rename to Assets/Animations/PlayerWalk.anim index 4333066..1d8820f 100644 --- a/Assets/Animations/PlayerRunRight.anim +++ b/Assets/Animations/PlayerWalk.anim @@ -6,7 +6,7 @@ AnimationClip: m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: PlayerRunRight + m_Name: PlayerWalk serializedVersion: 7 m_Legacy: 0 m_Compressed: 0 diff --git a/Assets/Animations/PlayerRunRight.anim.meta b/Assets/Animations/PlayerWalk.anim.meta similarity index 100% rename from Assets/Animations/PlayerRunRight.anim.meta rename to Assets/Animations/PlayerWalk.anim.meta diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity index b16891c..3fa7bef 100644 --- a/Assets/Scenes/SampleScene.unity +++ b/Assets/Scenes/SampleScene.unity @@ -228,7 +228,7 @@ Transform: m_Children: - {fileID: 2122850634} m_Father: {fileID: 0} - m_RootOrder: 7 + m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &226430649 GameObject: @@ -335,7 +335,7 @@ Transform: m_Children: - {fileID: 1872776175} m_Father: {fileID: 0} - m_RootOrder: 6 + m_RootOrder: 5 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &350695914 GameObject: @@ -1447,6 +1447,117 @@ PrefabInstance: m_AddedGameObjects: [] m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 934a57b833e872445ac8463836f55a44, type: 3} +--- !u!1 &481644263 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 481644264} + - component: {fileID: 481644265} + m_Layer: 7 + m_Name: Light 2D + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &481644264 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 481644263} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 2, y: 2, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1627236050} + m_RootOrder: -1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &481644265 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 481644263} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 073797afb82c5a1438f328866b10b3f0, type: 3} + m_Name: + m_EditorClassIdentifier: + m_ComponentVersion: 1 + m_LightType: 3 + m_BlendStyleIndex: 0 + m_FalloffIntensity: 0.5 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 0.5 + m_LightVolumeIntensity: 1 + m_LightVolumeIntensityEnabled: 0 + m_ApplyToSortingLayers: 00000000413d3badebb708f897fdd82d + m_LightCookieSprite: {fileID: 21300000, guid: 119f93d0bcbf1e743bf5fcf237507d39, type: 3} + m_DeprecatedPointLightCookieSprite: {fileID: 0} + m_LightOrder: 0 + m_AlphaBlendOnOverlap: 0 + m_OverlapOperation: 0 + m_NormalMapDistance: 3 + m_NormalMapQuality: 2 + m_UseNormalMap: 0 + m_ShadowIntensityEnabled: 0 + m_ShadowIntensity: 0.75 + m_ShadowVolumeIntensityEnabled: 0 + m_ShadowVolumeIntensity: 0.75 + m_Vertices: + - position: {x: 0.9985302, y: 0.9985302, z: 0} + color: {r: 0.70710677, g: 0.70710677, b: 0, a: 0} + uv: {x: 0, y: 0} + - position: {x: 0.9985302, y: 0.9985302, z: 0} + color: {r: 0, g: 0, b: 0, a: 1} + uv: {x: 0, y: 0} + - position: {x: -0.9985302, y: 0.9985302, z: 0} + color: {r: -0.70710677, g: 0.70710677, b: 0, a: 0} + uv: {x: 0, y: 0} + - position: {x: -0.9985302, y: 0.9985302, z: 0} + color: {r: 0, g: 0, b: 0, a: 1} + uv: {x: 0, y: 0} + - position: {x: -0.99853003, y: -0.9985304, z: 0} + color: {r: -0.70710665, g: -0.7071069, b: 0, a: 0} + uv: {x: 0, y: 0} + - position: {x: -0.99853003, y: -0.9985304, z: 0} + color: {r: 0, g: 0, b: 0, a: 1} + uv: {x: 0, y: 0} + - position: {x: 0.99853003, y: -0.9985304, z: 0} + color: {r: 0.70710665, g: -0.7071069, b: 0, a: 0} + uv: {x: 0, y: 0} + - position: {x: 0.99853003, y: -0.9985304, z: 0} + color: {r: 0, g: 0, b: 0, a: 1} + uv: {x: 0, y: 0} + - position: {x: 0, y: 0, z: 0} + color: {r: 0, g: 0, b: 0, a: 1} + uv: {x: 0, y: 0} + m_Triangles: 030001000800020000000100030002000100050003000800040002000300050004000300070005000800060004000500070006000500010007000800000006000700010000000700 + m_LocalBounds: + m_Center: {x: 0, y: -0.00000011920929, z: 0} + m_Extent: {x: 0.9985302, y: 0.99853027, z: 0} + m_PointLightInnerAngle: 360 + m_PointLightOuterAngle: 360 + m_PointLightInnerRadius: 0 + m_PointLightOuterRadius: 1 + m_ShapeLightParametricSides: 5 + m_ShapeLightParametricAngleOffset: 0 + m_ShapeLightParametricRadius: 1 + m_ShapeLightFalloffSize: 0.5 + m_ShapeLightFalloffOffset: {x: 0, y: 0} + m_ShapePath: + - {x: -0.5, y: -0.5, z: 0} + - {x: 0.5, y: -0.5, z: 0} + - {x: 0.5, y: 0.5, z: 0} + - {x: -0.5, y: 0.5, z: 0} --- !u!1 &519420028 GameObject: m_ObjectHideFlags: 0 @@ -1689,7 +1800,7 @@ Transform: m_Children: - {fileID: 750461971} m_Father: {fileID: 0} - m_RootOrder: 5 + m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &750461970 GameObject: @@ -1802,117 +1913,6 @@ MonoBehaviour: - {x: 0.5, y: -0.5, z: 0} - {x: 0.5, y: 0.5, z: 0} - {x: -0.5, y: 0.5, z: 0} ---- !u!1 &826227945 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 826227947} - - component: {fileID: 826227946} - m_Layer: 0 - m_Name: GlobalLight - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &826227946 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 826227945} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 073797afb82c5a1438f328866b10b3f0, type: 3} - m_Name: - m_EditorClassIdentifier: - m_ComponentVersion: 1 - m_LightType: 4 - m_BlendStyleIndex: 0 - m_FalloffIntensity: 0.5 - m_Color: {r: 1, g: 1, b: 1, a: 1} - m_Intensity: 0.7 - m_LightVolumeIntensity: 1 - m_LightVolumeIntensityEnabled: 0 - m_ApplyToSortingLayers: 00000000413d3badebb708f897fdd82d - m_LightCookieSprite: {fileID: 0} - m_DeprecatedPointLightCookieSprite: {fileID: 0} - m_LightOrder: 0 - m_AlphaBlendOnOverlap: 0 - m_OverlapOperation: 0 - m_NormalMapDistance: 3 - m_NormalMapQuality: 2 - m_UseNormalMap: 0 - m_ShadowIntensityEnabled: 0 - m_ShadowIntensity: 0.75 - m_ShadowVolumeIntensityEnabled: 0 - m_ShadowVolumeIntensity: 0.75 - m_Vertices: - - position: {x: 0.9985302, y: 0.9985302, z: 0} - color: {r: 0.70710677, g: 0.70710677, b: 0, a: 0} - uv: {x: 0, y: 0} - - position: {x: 0.9985302, y: 0.9985302, z: 0} - color: {r: 0, g: 0, b: 0, a: 1} - uv: {x: 0, y: 0} - - position: {x: -0.9985302, y: 0.9985302, z: 0} - color: {r: -0.70710677, g: 0.70710677, b: 0, a: 0} - uv: {x: 0, y: 0} - - position: {x: -0.9985302, y: 0.9985302, z: 0} - color: {r: 0, g: 0, b: 0, a: 1} - uv: {x: 0, y: 0} - - position: {x: -0.99853003, y: -0.9985304, z: 0} - color: {r: -0.70710665, g: -0.7071069, b: 0, a: 0} - uv: {x: 0, y: 0} - - position: {x: -0.99853003, y: -0.9985304, z: 0} - color: {r: 0, g: 0, b: 0, a: 1} - uv: {x: 0, y: 0} - - position: {x: 0.99853003, y: -0.9985304, z: 0} - color: {r: 0.70710665, g: -0.7071069, b: 0, a: 0} - uv: {x: 0, y: 0} - - position: {x: 0.99853003, y: -0.9985304, z: 0} - color: {r: 0, g: 0, b: 0, a: 1} - uv: {x: 0, y: 0} - - position: {x: 0, y: 0, z: 0} - color: {r: 0, g: 0, b: 0, a: 1} - uv: {x: 0, y: 0} - m_Triangles: 030001000800020000000100030002000100050003000800040002000300050004000300070005000800060004000500070006000500010007000800000006000700010000000700 - m_LocalBounds: - m_Center: {x: 0, y: -0.00000011920929, z: 0} - m_Extent: {x: 0.9985302, y: 0.99853027, z: 0} - m_PointLightInnerAngle: 360 - m_PointLightOuterAngle: 360 - m_PointLightInnerRadius: 0 - m_PointLightOuterRadius: 1 - m_ShapeLightParametricSides: 5 - m_ShapeLightParametricAngleOffset: 0 - m_ShapeLightParametricRadius: 1 - m_ShapeLightFalloffSize: 0.5 - m_ShapeLightFalloffOffset: {x: 0, y: 0} - m_ShapePath: - - {x: -0.5, y: -0.5, z: 0} - - {x: 0.5, y: -0.5, z: 0} - - {x: 0.5, y: 0.5, z: 0} - - {x: -0.5, y: 0.5, z: 0} ---- !u!4 &826227947 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 826227945} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.95534885, y: 3.66, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 4 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1173618891 GameObject: m_ObjectHideFlags: 0 @@ -2480,7 +2480,7 @@ SpriteRenderer: m_FlipX: 0 m_FlipY: 0 m_DrawMode: 0 - m_Size: {x: 0.32, y: 0.32} + m_Size: {x: 0.825, y: 0.77175295} m_AdaptiveModeThreshold: 0.5 m_SpriteTileMode: 0 m_WasSpriteAssigned: 0 @@ -2495,9 +2495,10 @@ Transform: m_GameObject: {fileID: 1627236048} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: -7.5, y: 4.502, z: 0} - m_LocalScale: {x: 0.11, y: 0.11, z: 1} + m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 - m_Children: [] + m_Children: + - {fileID: 481644264} m_Father: {fileID: 0} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -2602,18 +2603,18 @@ BoxCollider2D: m_IsTrigger: 0 m_UsedByEffector: 0 m_UsedByComposite: 0 - m_Offset: {x: 0, y: 0} + m_Offset: {x: 0, y: -0.02} m_SpriteTilingProperty: border: {x: 0, y: 0, z: 0, w: 0} pivot: {x: 0.5, y: 0.5} - oldSize: {x: 1.2307693, y: 1.2307693} - newSize: {x: 0.32, y: 0.32} + oldSize: {x: 0.825, y: 0.77175295} + newSize: {x: 0.825, y: 0.77175295} adaptiveTilingThreshold: 0.5 drawMode: 0 adaptiveTiling: 0 m_AutoTiling: 0 serializedVersion: 2 - m_Size: {x: 8, y: 6.5} + m_Size: {x: 0.8, y: 0.7} m_EdgeRadius: 0.02 --- !u!1 &1831985553 GameObject: @@ -2942,7 +2943,7 @@ Transform: m_Children: - {fileID: 1831985554} m_Father: {fileID: 0} - m_RootOrder: 8 + m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &2122850633 GameObject: @@ -3055,6 +3056,117 @@ MonoBehaviour: - {x: 0.5, y: -0.5, z: 0} - {x: 0.5, y: 0.5, z: 0} - {x: -0.5, y: 0.5, z: 0} +--- !u!1 &2142269567 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2142269569} + - component: {fileID: 2142269568} + m_Layer: 0 + m_Name: Light 2D + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &2142269568 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2142269567} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 073797afb82c5a1438f328866b10b3f0, type: 3} + m_Name: + m_EditorClassIdentifier: + m_ComponentVersion: 1 + m_LightType: 3 + m_BlendStyleIndex: 0 + m_FalloffIntensity: 0.28 + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_Intensity: 1 + m_LightVolumeIntensity: 1 + m_LightVolumeIntensityEnabled: 0 + m_ApplyToSortingLayers: 00000000413d3badebb708f897fdd82d + m_LightCookieSprite: {fileID: 0} + m_DeprecatedPointLightCookieSprite: {fileID: 0} + m_LightOrder: 0 + m_AlphaBlendOnOverlap: 0 + m_OverlapOperation: 0 + m_NormalMapDistance: 3 + m_NormalMapQuality: 2 + m_UseNormalMap: 0 + m_ShadowIntensityEnabled: 0 + m_ShadowIntensity: 0.75 + m_ShadowVolumeIntensityEnabled: 0 + m_ShadowVolumeIntensity: 0.75 + m_Vertices: + - position: {x: 0.9985302, y: 0.9985302, z: 0} + color: {r: 0.70710677, g: 0.70710677, b: 0, a: 0} + uv: {x: 0, y: 0} + - position: {x: 0.9985302, y: 0.9985302, z: 0} + color: {r: 0, g: 0, b: 0, a: 1} + uv: {x: 0, y: 0} + - position: {x: -0.9985302, y: 0.9985302, z: 0} + color: {r: -0.70710677, g: 0.70710677, b: 0, a: 0} + uv: {x: 0, y: 0} + - position: {x: -0.9985302, y: 0.9985302, z: 0} + color: {r: 0, g: 0, b: 0, a: 1} + uv: {x: 0, y: 0} + - position: {x: -0.99853003, y: -0.9985304, z: 0} + color: {r: -0.70710665, g: -0.7071069, b: 0, a: 0} + uv: {x: 0, y: 0} + - position: {x: -0.99853003, y: -0.9985304, z: 0} + color: {r: 0, g: 0, b: 0, a: 1} + uv: {x: 0, y: 0} + - position: {x: 0.99853003, y: -0.9985304, z: 0} + color: {r: 0.70710665, g: -0.7071069, b: 0, a: 0} + uv: {x: 0, y: 0} + - position: {x: 0.99853003, y: -0.9985304, z: 0} + color: {r: 0, g: 0, b: 0, a: 1} + uv: {x: 0, y: 0} + - position: {x: 0, y: 0, z: 0} + color: {r: 0, g: 0, b: 0, a: 1} + uv: {x: 0, y: 0} + m_Triangles: 030001000800020000000100030002000100050003000800040002000300050004000300070005000800060004000500070006000500010007000800000006000700010000000700 + m_LocalBounds: + m_Center: {x: 0, y: -0.00000011920929, z: 0} + m_Extent: {x: 0.9985302, y: 0.99853027, z: 0} + m_PointLightInnerAngle: 360 + m_PointLightOuterAngle: 360 + m_PointLightInnerRadius: 0 + m_PointLightOuterRadius: 12.891114 + m_ShapeLightParametricSides: 5 + m_ShapeLightParametricAngleOffset: 0 + m_ShapeLightParametricRadius: 1 + m_ShapeLightFalloffSize: 0.5 + m_ShapeLightFalloffOffset: {x: 0, y: 0} + m_ShapePath: + - {x: -0.5, y: -0.5, z: 0} + - {x: 0.5, y: -0.5, z: 0} + - {x: 0.5, y: 0.5, z: 0} + - {x: -0.5, y: 0.5, z: 0} +--- !u!4 &2142269569 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2142269567} + m_LocalRotation: {x: 0, y: 0, z: -0.17714208, w: 0.9841853} + m_LocalPosition: {x: -0.02, y: 3.81, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 8 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1001 &7047733280813284351 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/PlayerController.cs b/Assets/Scripts/PlayerController.cs index 5de0f89..646d3d0 100644 --- a/Assets/Scripts/PlayerController.cs +++ b/Assets/Scripts/PlayerController.cs @@ -8,7 +8,7 @@ public class PlayerController : MonoBehaviour private float MovementSpeed = 1.5f; [SerializeField] private LayerMask ladderLayer; - [SerializeField] + [SerializeField] private LayerMask groundLayer; [SerializeField] private float distance; @@ -16,36 +16,46 @@ public class PlayerController : MonoBehaviour private Rigidbody2D _body; private BoxCollider2D _boxCollider; private bool _isFall; + private bool _facingRight = true; + void Start() { _body = GetComponent(); - _boxCollider= GetComponent(); + _boxCollider = GetComponent(); } void Update() { - float moveX = 0; - float moveY = 0; - - var groundCheck = Physics2D.BoxCast(_boxCollider.bounds.center,_boxCollider.bounds.size,0f, Vector2.down, .1f,groundLayer); - + float inputHorizontal = 0; + float inputVertical = 0; + + var groundCheck = Physics2D.BoxCast(_boxCollider.bounds.center, _boxCollider.bounds.size, 0f, Vector2.down, .1f, groundLayer); + if (groundCheck || _isOnLadder) { - + _isFall = false; + inputHorizontal = Input.GetAxisRaw("Horizontal"); + if (inputHorizontal > 0 && !_facingRight) + { + FlipCharacter(); + } + if (inputHorizontal < 0 && _facingRight) + { + FlipCharacter(); + } - _isFall =false; - moveX = Input.GetAxisRaw("Horizontal"); - animator.SetFloat("Horizontal", moveX); + animator.SetBool("PlayerWalk", inputHorizontal != 0); if (IsLadder(Vector2.down)) { _isOnLadder = true; - moveY = Input.GetAxisRaw("Vertical"); - if(moveY> 0) + inputVertical = Input.GetAxisRaw("Vertical"); + + if (inputVertical > 0) { if (!IsLadder(Vector2.up)) { - moveY = 0; + inputVertical = 0; } } } @@ -53,12 +63,11 @@ public class PlayerController : MonoBehaviour { _isOnLadder = false; } - _body.velocity = new Vector2(moveX * MovementSpeed, moveY * MovementSpeed); + _body.velocity = new Vector2(inputHorizontal * MovementSpeed, inputVertical * MovementSpeed); } else { _isFall = true; - print("Falling"); } } @@ -71,7 +80,7 @@ public class PlayerController : MonoBehaviour { if (_isOnLadder) { - + _body.gravityScale = 0; } else @@ -80,8 +89,21 @@ public class PlayerController : MonoBehaviour } if (_isFall) { + if (IsLadder(Vector2.down)) + { + _isOnLadder = true; + } _body.velocity = new Vector2(0, _body.velocity.y); - animator.SetFloat("Horizontal", 0); + animator.SetBool("PlayerWalk", false); } } + + private void FlipCharacter() + { + Vector3 currentScale = gameObject.transform.localScale; + currentScale.x *= -1; + gameObject.transform.localScale = currentScale; + + _facingRight = !_facingRight; + } } diff --git a/Assets/Sprites/Viking_SH.png.meta b/Assets/Sprites/Viking_SH.png.meta index 2b4c99e..8f2ce1b 100644 --- a/Assets/Sprites/Viking_SH.png.meta +++ b/Assets/Sprites/Viking_SH.png.meta @@ -48,7 +48,7 @@ TextureImporter: spriteMeshType: 1 alignment: 0 spritePivot: {x: 0.5, y: 0.5} - spritePixelsToUnits: 100 + spritePixelsToUnits: 1000 spriteBorder: {x: 0, y: 0, z: 0, w: 0} spriteGenerateFallbackPhysicsShape: 1 alphaUsage: 1 diff --git a/Assets/Sprites/Viking_SH_Idle.png b/Assets/Sprites/Viking_SH_Idle.png new file mode 100644 index 0000000..027534e Binary files /dev/null and b/Assets/Sprites/Viking_SH_Idle.png differ diff --git a/Assets/Sprites/Viking_SH_Idle.png.meta b/Assets/Sprites/Viking_SH_Idle.png.meta new file mode 100644 index 0000000..9e2ec16 --- /dev/null +++ b/Assets/Sprites/Viking_SH_Idle.png.meta @@ -0,0 +1,171 @@ +fileFormatVersion: 2 +guid: 7cc804dcc187b214695e6a43af191d5d +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 12 + 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 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 2 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 1000 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 512 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 3 + buildTarget: Server + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: + - serializedVersion: 2 + name: Viking_SH_Idle_0 + rect: + serializedVersion: 2 + x: 564 + y: 651 + width: 825 + height: 771 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: 3ed5f25c20dd53a4fa8e87dc3ba620c3 + internalID: -1109865691 + vertices: [] + indices: + edges: [] + weights: [] + - serializedVersion: 2 + name: Viking_SH_Idle_1 + rect: + serializedVersion: 2 + x: 1585 + y: 646 + width: 810 + height: 766 + alignment: 0 + pivot: {x: 0, y: 0} + border: {x: 0, y: 0, z: 0, w: 0} + outline: [] + physicsShape: [] + tessellationDetail: 0 + bones: [] + spriteID: d9eec9b90fde0b54d8096859f52f1de6 + internalID: 498723527 + vertices: [] + indices: + edges: [] + weights: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: + Viking_SH_Idle_0: -1109865691 + Viking_SH_Idle_1: 498723527 + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: