From 6d4a283eff9d31906f63a1011e858987774a7cf5 Mon Sep 17 00:00:00 2001 From: Carson Kompon Date: Fri, 4 Mar 2022 15:47:40 -0500 Subject: [PATCH] Mr Upbeat Animation Setup --- Assets/Resources/Games/mrUpbeat.prefab | 59 ++++++++ .../Sprites/Games/MrUpbeat/Animations.meta | 8 ++ .../Games/MrUpbeat/Animations/Blip.anim | 74 ++++++++++ .../Games/MrUpbeat/Animations/Blip.anim.meta | 8 ++ .../Animations/BlipAnimator.controller | 101 ++++++++++++++ .../Animations/BlipAnimator.controller.meta | 8 ++ .../Games/MrUpbeat/Animations/BlipIdle.anim | 68 +++++++++ .../MrUpbeat/Animations/BlipIdle.anim.meta | 8 ++ .../Games/MrUpbeat/Animations/Fall.anim | 53 +++++++ .../Games/MrUpbeat/Animations/Fall.anim.meta | 8 ++ .../Games/MrUpbeat/Animations/Idle.anim | 53 +++++++ .../Games/MrUpbeat/Animations/Idle.anim.meta | 8 ++ .../Animations/MrUpbeatAnimator.controller | 130 ++++++++++++++++++ .../MrUpbeatAnimator.controller.meta | 8 ++ .../Games/MrUpbeat/Animations/Step.anim | 53 +++++++ .../Games/MrUpbeat/Animations/Step.anim.meta | 8 ++ Assets/Scripts/Games/MrUpbeat.meta | 8 ++ Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs | 29 ++++ .../Scripts/Games/MrUpbeat/MrUpbeat.cs.meta | 11 ++ 19 files changed, 703 insertions(+) create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations.meta create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/Blip.anim create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/Blip.anim.meta create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipAnimator.controller create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipAnimator.controller.meta create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipIdle.anim create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipIdle.anim.meta create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/Fall.anim create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/Fall.anim.meta create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/Idle.anim create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/Idle.anim.meta create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/MrUpbeatAnimator.controller create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/MrUpbeatAnimator.controller.meta create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/Step.anim create mode 100644 Assets/Resources/Sprites/Games/MrUpbeat/Animations/Step.anim.meta create mode 100644 Assets/Scripts/Games/MrUpbeat.meta create mode 100644 Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs create mode 100644 Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs.meta diff --git a/Assets/Resources/Games/mrUpbeat.prefab b/Assets/Resources/Games/mrUpbeat.prefab index 482a4f94..26d8e6d6 100644 --- a/Assets/Resources/Games/mrUpbeat.prefab +++ b/Assets/Resources/Games/mrUpbeat.prefab @@ -9,6 +9,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 4485966734002228350} + - component: {fileID: 1614535701461294964} - component: {fileID: 2897060438308778760} m_Layer: 0 m_Name: AntennaLight @@ -31,6 +32,25 @@ Transform: m_Father: {fileID: 1039565176908573975} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!95 &1614535701461294964 +Animator: + serializedVersion: 3 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1089093179602596564} + m_Enabled: 1 + m_Avatar: {fileID: 0} + m_Controller: {fileID: 9100000, guid: e6e4ddc5d5e73a246b2032b4e92596c9, 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!212 &2897060438308778760 SpriteRenderer: m_ObjectHideFlags: 0 @@ -91,6 +111,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 1584121333826078951} + - component: {fileID: 2256168985014220240} m_Layer: 0 m_Name: Holder m_TagString: Untagged @@ -114,6 +135,25 @@ Transform: m_Father: {fileID: 862280508089709600} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!95 &2256168985014220240 +Animator: + serializedVersion: 3 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1488695648487991734} + m_Enabled: 1 + m_Avatar: {fileID: 0} + m_Controller: {fileID: 9100000, guid: a5f93a456c442bc458973d17286581d9, 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!1 &3862020474253857803 GameObject: m_ObjectHideFlags: 0 @@ -453,6 +493,7 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 7248900333300803150} + - component: {fileID: 8728962026160321644} m_Layer: 0 m_Name: mrUpbeat m_TagString: Untagged @@ -477,6 +518,24 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &8728962026160321644 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7248900333300803145} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a258517e5332c824a8b81a03036fc2a8, type: 3} + m_Name: + m_EditorClassIdentifier: + EligibleHits: [] + firstEnable: 0 + metronome: {fileID: 3862020474253857803} + animator: {fileID: 2256168985014220240} + blipAnimator: {fileID: 1614535701461294964} + shadows: [] --- !u!1 &8412912829583803381 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Resources/Sprites/Games/MrUpbeat/Animations.meta b/Assets/Resources/Sprites/Games/MrUpbeat/Animations.meta new file mode 100644 index 00000000..df884865 --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 30b8c2122b272a942b53d678823ef13a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Blip.anim b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Blip.anim new file mode 100644 index 00000000..7c644260 --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Blip.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: Blip + 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: 823626875365731854, guid: 2781bda31bd88924b9bc88f6c301b1d9, type: 3} + - time: 0.016666668 + value: {fileID: -8285671563859703850, guid: 2781bda31bd88924b9bc88f6c301b1d9, type: 3} + - time: 0.033333335 + value: {fileID: -1808759476897028762, guid: 2781bda31bd88924b9bc88f6c301b1d9, 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: 823626875365731854, guid: 2781bda31bd88924b9bc88f6c301b1d9, type: 3} + - {fileID: -8285671563859703850, guid: 2781bda31bd88924b9bc88f6c301b1d9, type: 3} + - {fileID: -1808759476897028762, guid: 2781bda31bd88924b9bc88f6c301b1d9, 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: 0 + 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/Resources/Sprites/Games/MrUpbeat/Animations/Blip.anim.meta b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Blip.anim.meta new file mode 100644 index 00000000..9ced91ad --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Blip.anim.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 64c8a1564282a444cb0392113029b861 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 7400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipAnimator.controller b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipAnimator.controller new file mode 100644 index 00000000..1d560d6d --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipAnimator.controller @@ -0,0 +1,101 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1102 &-5338859024521178731 +AnimatorState: + serializedVersion: 6 + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Blip + m_Speed: 0.25 + m_CycleOffset: 0 + m_Transitions: [] + 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: 64c8a1564282a444cb0392113029b861, 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: BlipAnimator + serializedVersion: 5 + m_AnimatorParameters: [] + m_AnimatorLayers: + - serializedVersion: 5 + m_Name: Base Layer + m_StateMachine: {fileID: 5157214750414911887} + 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!1107 &5157214750414911887 +AnimatorStateMachine: + serializedVersion: 6 + 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: 7345739688119431093} + m_Position: {x: 360, y: 0, z: 0} + - serializedVersion: 1 + m_State: {fileID: -5338859024521178731} + m_Position: {x: 350, y: 90, 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: 7345739688119431093} +--- !u!1102 &7345739688119431093 +AnimatorState: + serializedVersion: 6 + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Idle + m_Speed: 0.25 + m_CycleOffset: 0 + m_Transitions: [] + 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: 0041c21820d2e7e4898cf890693ecb50, type: 2} + m_Tag: + m_SpeedParameter: + m_MirrorParameter: + m_CycleOffsetParameter: + m_TimeParameter: diff --git a/Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipAnimator.controller.meta b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipAnimator.controller.meta new file mode 100644 index 00000000..2e5b929c --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipAnimator.controller.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e6e4ddc5d5e73a246b2032b4e92596c9 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 9100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipIdle.anim b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipIdle.anim new file mode 100644 index 00000000..ded580ee --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipIdle.anim @@ -0,0 +1,68 @@ +%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: BlipIdle + 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: -1808759476897028762, guid: 2781bda31bd88924b9bc88f6c301b1d9, 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: -1808759476897028762, guid: 2781bda31bd88924b9bc88f6c301b1d9, type: 3} + m_AnimationClipSettings: + serializedVersion: 2 + m_AdditiveReferencePoseClip: {fileID: 0} + m_AdditiveReferencePoseTime: 0 + m_StartTime: 0 + m_StopTime: 0.016666668 + m_OrientationOffsetY: 0 + m_Level: 0 + m_CycleOffset: 0 + m_HasAdditiveReferencePose: 0 + m_LoopTime: 0 + 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/Resources/Sprites/Games/MrUpbeat/Animations/BlipIdle.anim.meta b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipIdle.anim.meta new file mode 100644 index 00000000..4f6ee002 --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/BlipIdle.anim.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0041c21820d2e7e4898cf890693ecb50 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 7400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Fall.anim b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Fall.anim new file mode 100644 index 00000000..da82216e --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Fall.anim @@ -0,0 +1,53 @@ +%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: Fall + 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: [] + 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: [] + pptrCurveMapping: [] + 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: 0 + 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/Resources/Sprites/Games/MrUpbeat/Animations/Fall.anim.meta b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Fall.anim.meta new file mode 100644 index 00000000..a564e86c --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Fall.anim.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 59bf7ac787443f048835c856516d6e8c +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 7400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Idle.anim b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Idle.anim new file mode 100644 index 00000000..c89c1003 --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Idle.anim @@ -0,0 +1,53 @@ +%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: Idle + 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: [] + 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: [] + pptrCurveMapping: [] + 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: 0 + 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/Resources/Sprites/Games/MrUpbeat/Animations/Idle.anim.meta b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Idle.anim.meta new file mode 100644 index 00000000..e37cfe2c --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Idle.anim.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 530b9769fa55bcd4e82dd6957d734984 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 7400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Sprites/Games/MrUpbeat/Animations/MrUpbeatAnimator.controller b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/MrUpbeatAnimator.controller new file mode 100644 index 00000000..2862272b --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/MrUpbeatAnimator.controller @@ -0,0 +1,130 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1107 &-995366258227929513 +AnimatorStateMachine: + serializedVersion: 6 + 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: 5793650782800196468} + m_Position: {x: 311.5, y: 24.5, z: 0} + - serializedVersion: 1 + m_State: {fileID: -757977064401545672} + m_Position: {x: 330, y: 80, z: 0} + - serializedVersion: 1 + m_State: {fileID: -718537531738724324} + m_Position: {x: 320, 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: 5793650782800196468} +--- !u!1102 &-757977064401545672 +AnimatorState: + serializedVersion: 6 + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Step + m_Speed: 0.25 + m_CycleOffset: 0 + m_Transitions: [] + 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: 0742cb7e03bad4a4a82e49668c4bbdf4, type: 2} + m_Tag: + m_SpeedParameter: + m_MirrorParameter: + m_CycleOffsetParameter: + m_TimeParameter: +--- !u!1102 &-718537531738724324 +AnimatorState: + serializedVersion: 6 + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Fall + m_Speed: 0.25 + m_CycleOffset: 0 + m_Transitions: [] + 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: 59bf7ac787443f048835c856516d6e8c, 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: MrUpbeatAnimator + serializedVersion: 5 + m_AnimatorParameters: [] + m_AnimatorLayers: + - serializedVersion: 5 + m_Name: Base Layer + m_StateMachine: {fileID: -995366258227929513} + 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 &5793650782800196468 +AnimatorState: + serializedVersion: 6 + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: Idle + m_Speed: 0.25 + m_CycleOffset: 0 + m_Transitions: [] + 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: 530b9769fa55bcd4e82dd6957d734984, type: 2} + m_Tag: + m_SpeedParameter: + m_MirrorParameter: + m_CycleOffsetParameter: + m_TimeParameter: diff --git a/Assets/Resources/Sprites/Games/MrUpbeat/Animations/MrUpbeatAnimator.controller.meta b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/MrUpbeatAnimator.controller.meta new file mode 100644 index 00000000..fa766b92 --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/MrUpbeatAnimator.controller.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a5f93a456c442bc458973d17286581d9 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 9100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Step.anim b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Step.anim new file mode 100644 index 00000000..f1c1fef1 --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Step.anim @@ -0,0 +1,53 @@ +%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: Step + 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: [] + 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: [] + pptrCurveMapping: [] + 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: 0 + 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/Resources/Sprites/Games/MrUpbeat/Animations/Step.anim.meta b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Step.anim.meta new file mode 100644 index 00000000..db0a35c8 --- /dev/null +++ b/Assets/Resources/Sprites/Games/MrUpbeat/Animations/Step.anim.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0742cb7e03bad4a4a82e49668c4bbdf4 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 7400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Games/MrUpbeat.meta b/Assets/Scripts/Games/MrUpbeat.meta new file mode 100644 index 00000000..b12ae0e7 --- /dev/null +++ b/Assets/Scripts/Games/MrUpbeat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f22d820fe1dee4e469a337fa3e97fe7b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs b/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs new file mode 100644 index 00000000..6ac611b4 --- /dev/null +++ b/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs @@ -0,0 +1,29 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using System; +using Starpelly; + +using RhythmHeavenMania.Util; + +namespace RhythmHeavenMania.Games.MrUpbeat +{ + public class MrUpbeat : Minigame + { + [Header("References")] + public GameObject metronome; + public Animator animator; + public Animator blipAnimator; + public GameObject[] shadows; + + public static MrUpbeat instance; + + private void Awake() + { + instance = this; + } + + + + } +} \ No newline at end of file diff --git a/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs.meta b/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs.meta new file mode 100644 index 00000000..b8608c7a --- /dev/null +++ b/Assets/Scripts/Games/MrUpbeat/MrUpbeat.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a258517e5332c824a8b81a03036fc2a8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: