Collapsing Properties Update + Animation From Beat Method (#575)
* add entity to collapse function, start on new animation thingy im gonna use fork lifter to demonstrate DoScaledAnimationFromBeatAsync() cuz it uses animations to cue the peas also i fixed that months old bug where the fork lifter sfx wasn't playing correctly :/ * animation from beat functional, octo machine converted this looks fantastic i can't wait to implement this into more things * better anim function this is more efficient AND it'll produce more consistent results when starting an animation between tempo changes :D (it no longer iterates through a list twice)
This commit is contained in:
parent
7624ea6e88
commit
b22de5abdb
|
@ -1119,7 +1119,6 @@ MonoBehaviour:
|
||||||
SoundSequences: []
|
SoundSequences: []
|
||||||
EligibleHits: []
|
EligibleHits: []
|
||||||
scheduledInputs: []
|
scheduledInputs: []
|
||||||
firstEnable: 0
|
|
||||||
ForkLifterHand: {fileID: 5813499711174113249}
|
ForkLifterHand: {fileID: 5813499711174113249}
|
||||||
handAnim: {fileID: 5813499711174113250}
|
handAnim: {fileID: 5813499711174113250}
|
||||||
flickedObject: {fileID: 5813499710694194086}
|
flickedObject: {fileID: 5813499710694194086}
|
||||||
|
|
|
@ -26,55 +26,6 @@ AnimatorState:
|
||||||
m_MirrorParameter:
|
m_MirrorParameter:
|
||||||
m_CycleOffsetParameter:
|
m_CycleOffsetParameter:
|
||||||
m_TimeParameter:
|
m_TimeParameter:
|
||||||
--- !u!1101 &-2244942594801115525
|
|
||||||
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: -3335095768559015400}
|
|
||||||
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: 0
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1102 &-1603142614781995660
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: Hand_GrabObject
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: -2244942594801115525}
|
|
||||||
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: 37f53717e1d7fc64898c793f83020828, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!91 &9100000
|
--- !u!91 &9100000
|
||||||
AnimatorController:
|
AnimatorController:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -97,28 +48,6 @@ AnimatorController:
|
||||||
m_IKPass: 0
|
m_IKPass: 0
|
||||||
m_SyncedLayerAffectsTiming: 0
|
m_SyncedLayerAffectsTiming: 0
|
||||||
m_Controller: {fileID: 9100000}
|
m_Controller: {fileID: 9100000}
|
||||||
--- !u!1101 &2613062273872111154
|
|
||||||
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: -1603142614781995660}
|
|
||||||
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: 0
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1102 &4663746626472684145
|
--- !u!1102 &4663746626472684145
|
||||||
AnimatorState:
|
AnimatorState:
|
||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
|
@ -156,13 +85,10 @@ AnimatorStateMachine:
|
||||||
m_ChildStates:
|
m_ChildStates:
|
||||||
- serializedVersion: 1
|
- serializedVersion: 1
|
||||||
m_State: {fileID: 6004606327514597299}
|
m_State: {fileID: 6004606327514597299}
|
||||||
m_Position: {x: 520, y: 10, z: 0}
|
m_Position: {x: 520, y: 40, z: 0}
|
||||||
- serializedVersion: 1
|
- serializedVersion: 1
|
||||||
m_State: {fileID: -3335095768559015400}
|
m_State: {fileID: -3335095768559015400}
|
||||||
m_Position: {x: 240, y: -10, z: 0}
|
m_Position: {x: 190, y: 210, z: 0}
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: -1603142614781995660}
|
|
||||||
m_Position: {x: 360, y: 120, z: 0}
|
|
||||||
- serializedVersion: 1
|
- serializedVersion: 1
|
||||||
m_State: {fileID: 4663746626472684145}
|
m_State: {fileID: 4663746626472684145}
|
||||||
m_Position: {x: 440, y: -70, z: 0}
|
m_Position: {x: 440, y: -70, z: 0}
|
||||||
|
@ -189,8 +115,7 @@ AnimatorState:
|
||||||
m_Name: Hand_Flick
|
m_Name: Hand_Flick
|
||||||
m_Speed: 1
|
m_Speed: 1
|
||||||
m_CycleOffset: 0
|
m_CycleOffset: 0
|
||||||
m_Transitions:
|
m_Transitions: []
|
||||||
- {fileID: 2613062273872111154}
|
|
||||||
m_StateMachineBehaviours: []
|
m_StateMachineBehaviours: []
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
m_Position: {x: 50, y: 50, z: 0}
|
||||||
m_IKOnFeet: 0
|
m_IKOnFeet: 0
|
||||||
|
|
|
@ -14,22 +14,6 @@ AnimationClip:
|
||||||
m_RotationCurves: []
|
m_RotationCurves: []
|
||||||
m_CompressedRotationCurves: []
|
m_CompressedRotationCurves: []
|
||||||
m_EulerCurves:
|
m_EulerCurves:
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: {x: 0, y: 0, z: -133.353}
|
|
||||||
inSlope: {x: Infinity, y: 0, z: 0}
|
|
||||||
outSlope: {x: Infinity, y: 0, z: 0}
|
|
||||||
tangentMode: 0
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: {x: 0, y: 0.33333334, z: 0.33333334}
|
|
||||||
outWeight: {x: 0, y: 0.33333334, z: 0.33333334}
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
path: SOME01_128091f1_6_11
|
|
||||||
- curve:
|
- curve:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Curve:
|
m_Curve:
|
||||||
|
@ -47,31 +31,6 @@ AnimationClip:
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
path: HandVisual
|
path: HandVisual
|
||||||
m_PositionCurves:
|
m_PositionCurves:
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: {x: -0.363, y: 1.035, z: 74.52776}
|
|
||||||
inSlope: {x: Infinity, y: Infinity, z: Infinity}
|
|
||||||
outSlope: {x: Infinity, y: Infinity, z: Infinity}
|
|
||||||
tangentMode: 0
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
|
||||||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.16666667
|
|
||||||
value: {x: -0.218, y: 1.214, z: 74.52776}
|
|
||||||
inSlope: {x: Infinity, y: Infinity, z: Infinity}
|
|
||||||
outSlope: {x: Infinity, y: Infinity, z: Infinity}
|
|
||||||
tangentMode: 0
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
|
||||||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
path: SOME01_128091f1_6_11
|
|
||||||
- curve:
|
- curve:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Curve:
|
m_Curve:
|
||||||
|
@ -93,10 +52,78 @@ AnimationClip:
|
||||||
weightedMode: 0
|
weightedMode: 0
|
||||||
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||||
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.3
|
||||||
|
value: {x: -0.235, y: 1.216, z: 74.52776}
|
||||||
|
inSlope: {x: Infinity, y: Infinity, z: Infinity}
|
||||||
|
outSlope: {x: Infinity, y: Infinity, z: Infinity}
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||||
|
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.35
|
||||||
|
value: {x: -0.113, y: 1.145, z: 74.52776}
|
||||||
|
inSlope: {x: Infinity, y: Infinity, z: Infinity}
|
||||||
|
outSlope: {x: Infinity, y: Infinity, z: Infinity}
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||||
|
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.4
|
||||||
|
value: {x: 0.02943516, y: 1.231121, z: 74.52776}
|
||||||
|
inSlope: {x: 0, y: 0, z: 0}
|
||||||
|
outSlope: {x: 0, y: 0, z: 0}
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||||
|
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
path: HandVisual
|
path: HandVisual
|
||||||
|
- curve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.3
|
||||||
|
value: {x: -0.1, y: 0.408, z: 74.52776}
|
||||||
|
inSlope: {x: 0, y: 0, z: 0}
|
||||||
|
outSlope: {x: 0, y: 0, z: 0}
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||||
|
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.35
|
||||||
|
value: {x: 0.017, y: 0.261, z: 74.52776}
|
||||||
|
inSlope: {x: 0, y: 0, z: 0}
|
||||||
|
outSlope: {x: 0, y: 0, z: 0}
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||||
|
outWeight: {x: 0.33333334, y: 0.33333334, z: 0.33333334}
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
path: PeaVisual
|
||||||
|
- curve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.4
|
||||||
|
value: {x: 0.271, y: -0.031, z: 0}
|
||||||
|
inSlope: {x: 0, y: 0, z: 0}
|
||||||
|
outSlope: {x: 0, y: 0, z: 0}
|
||||||
|
tangentMode: 0
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: {x: 0, y: 0.33333334, z: 0.33333334}
|
||||||
|
outWeight: {x: 0, y: 0.33333334, z: 0.33333334}
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
path: HandVisual/hand_shadow1
|
||||||
m_ScaleCurves: []
|
m_ScaleCurves: []
|
||||||
m_FloatCurves:
|
m_FloatCurves:
|
||||||
- curve:
|
- curve:
|
||||||
|
@ -120,6 +147,15 @@ AnimationClip:
|
||||||
weightedMode: 0
|
weightedMode: 0
|
||||||
inWeight: 0
|
inWeight: 0
|
||||||
outWeight: 0
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.4
|
||||||
|
value: 0
|
||||||
|
inSlope: Infinity
|
||||||
|
outSlope: Infinity
|
||||||
|
tangentMode: 103
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
|
@ -139,6 +175,15 @@ AnimationClip:
|
||||||
weightedMode: 0
|
weightedMode: 0
|
||||||
inWeight: 0
|
inWeight: 0
|
||||||
outWeight: 0
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.3
|
||||||
|
value: 1
|
||||||
|
inSlope: Infinity
|
||||||
|
outSlope: Infinity
|
||||||
|
tangentMode: 103
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
|
@ -149,41 +194,53 @@ AnimationClip:
|
||||||
m_PPtrCurves:
|
m_PPtrCurves:
|
||||||
- curve:
|
- curve:
|
||||||
- time: 0
|
- time: 0
|
||||||
value: {fileID: 21300000, guid: e289120f53cab0c47bc168c74f1334fe, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.016666668
|
- time: 0.016666668
|
||||||
value: {fileID: 21300000, guid: 7eac82b47cfe63d4a82e79916b6df821, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.033333335
|
- time: 0.033333335
|
||||||
value: {fileID: 21300000, guid: b577af31fb7acae469a736e54886426b, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.05
|
- time: 0.05
|
||||||
value: {fileID: 21300000, guid: bf6d6375d442f534cae6f4bf6da54243, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.06666667
|
- time: 0.06666667
|
||||||
value: {fileID: 21300000, guid: 2f97f62820af55c4f8fc0303ea6843f5, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.083333336
|
- time: 0.083333336
|
||||||
value: {fileID: 21300000, guid: 1a8c5fd3822226249957fa3356b4070a, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.1
|
- time: 0.1
|
||||||
value: {fileID: 21300000, guid: 4ed7ed944f9b66441941effac0f1806e, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.11666667
|
- time: 0.11666667
|
||||||
value: {fileID: 21300000, guid: a77ebd0aaac183e45bff0d05745cf0d1, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.13333334
|
- time: 0.13333334
|
||||||
value: {fileID: 21300000, guid: e8f0b0c90828def458b07adedcb16992, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.15
|
- time: 0.15
|
||||||
value: {fileID: 21300000, guid: 03f01dcf91cdae34897562741c338bcb, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.16666667
|
- time: 0.16666667
|
||||||
value: {fileID: 21300000, guid: 89164a5ca38e87d409b45d2a3c29de7c, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.18333334
|
- time: 0.18333334
|
||||||
value: {fileID: 21300000, guid: 200499fa2c79f214681c681dd0eaabd3, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.2
|
- time: 0.2
|
||||||
value: {fileID: 21300000, guid: fb1703ab0ff9d3c49a902548ce45ff91, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.21666667
|
- time: 0.21666667
|
||||||
value: {fileID: 21300000, guid: 809df09db346d6f4fb2aac15956b5d76, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.23333333
|
- time: 0.23333333
|
||||||
value: {fileID: 21300000, guid: f97227717c214104fa945ca47aa29617, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.25
|
- time: 0.25
|
||||||
value: {fileID: 21300000, guid: 8fe446d26cf43724196c575595c7dac4, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.26666668
|
- time: 0.26666668
|
||||||
value: {fileID: 21300000, guid: 8e9a1a3e172609848916109938ac8c53, type: 3}
|
value: {fileID: 0}
|
||||||
- time: 0.28333333
|
- time: 0.28333333
|
||||||
value: {fileID: 21300000, guid: 20954ee1a93cedb498a429fcc1ea1fd7, type: 3}
|
value: {fileID: 0}
|
||||||
|
- time: 0.3
|
||||||
|
value: {fileID: 0}
|
||||||
|
- time: 0.31666666
|
||||||
|
value: {fileID: 0}
|
||||||
|
- time: 0.33333334
|
||||||
|
value: {fileID: 0}
|
||||||
|
- time: 0.35
|
||||||
|
value: {fileID: 0}
|
||||||
|
- time: 0.36666667
|
||||||
|
value: {fileID: 0}
|
||||||
|
- time: 0.38333333
|
||||||
|
value: {fileID: 0}
|
||||||
attribute: m_Sprite
|
attribute: m_Sprite
|
||||||
path: Fork_Lifter_Gameplay
|
path: Fork_Lifter_Gameplay
|
||||||
classID: 212
|
classID: 212
|
||||||
|
@ -193,14 +250,7 @@ AnimationClip:
|
||||||
value: {fileID: -4922902375269903740, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
value: {fileID: -4922902375269903740, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
||||||
- time: 0.16666667
|
- time: 0.16666667
|
||||||
value: {fileID: -3456084564025576355, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
value: {fileID: -3456084564025576355, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
||||||
attribute: m_Sprite
|
- time: 0.4
|
||||||
path: SOME01_128091f1_6_11
|
|
||||||
classID: 212
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
- time: 0
|
|
||||||
value: {fileID: -4922902375269903740, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
|
||||||
- time: 0.16666667
|
|
||||||
value: {fileID: -3456084564025576355, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
value: {fileID: -3456084564025576355, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
||||||
attribute: m_Sprite
|
attribute: m_Sprite
|
||||||
path: HandVisual
|
path: HandVisual
|
||||||
|
@ -222,13 +272,6 @@ AnimationClip:
|
||||||
m_Extent: {x: 0, y: 0, z: 0}
|
m_Extent: {x: 0, y: 0, z: 0}
|
||||||
m_ClipBindingConstant:
|
m_ClipBindingConstant:
|
||||||
genericBindings:
|
genericBindings:
|
||||||
- serializedVersion: 2
|
|
||||||
path: 3316808799
|
|
||||||
attribute: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 4
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
- serializedVersion: 2
|
||||||
path: 3267382320
|
path: 3267382320
|
||||||
attribute: 1
|
attribute: 1
|
||||||
|
@ -237,11 +280,11 @@ AnimationClip:
|
||||||
customType: 0
|
customType: 0
|
||||||
isPPtrCurve: 0
|
isPPtrCurve: 0
|
||||||
- serializedVersion: 2
|
- serializedVersion: 2
|
||||||
path: 3316808799
|
path: 2083950812
|
||||||
attribute: 4
|
attribute: 1
|
||||||
script: {fileID: 0}
|
script: {fileID: 0}
|
||||||
typeID: 4
|
typeID: 4
|
||||||
customType: 4
|
customType: 0
|
||||||
isPPtrCurve: 0
|
isPPtrCurve: 0
|
||||||
- serializedVersion: 2
|
- serializedVersion: 2
|
||||||
path: 3267382320
|
path: 3267382320
|
||||||
|
@ -271,13 +314,6 @@ AnimationClip:
|
||||||
typeID: 212
|
typeID: 212
|
||||||
customType: 23
|
customType: 23
|
||||||
isPPtrCurve: 1
|
isPPtrCurve: 1
|
||||||
- serializedVersion: 2
|
|
||||||
path: 3316808799
|
|
||||||
attribute: 0
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 212
|
|
||||||
customType: 23
|
|
||||||
isPPtrCurve: 1
|
|
||||||
- serializedVersion: 2
|
- serializedVersion: 2
|
||||||
path: 3267382320
|
path: 3267382320
|
||||||
attribute: 0
|
attribute: 0
|
||||||
|
@ -292,28 +328,40 @@ AnimationClip:
|
||||||
typeID: 212
|
typeID: 212
|
||||||
customType: 23
|
customType: 23
|
||||||
isPPtrCurve: 1
|
isPPtrCurve: 1
|
||||||
|
- serializedVersion: 2
|
||||||
|
path: 3526390209
|
||||||
|
attribute: 1
|
||||||
|
script: {fileID: 0}
|
||||||
|
typeID: 4
|
||||||
|
customType: 0
|
||||||
|
isPPtrCurve: 0
|
||||||
pptrCurveMapping:
|
pptrCurveMapping:
|
||||||
- {fileID: 21300000, guid: e289120f53cab0c47bc168c74f1334fe, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: 7eac82b47cfe63d4a82e79916b6df821, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: b577af31fb7acae469a736e54886426b, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: bf6d6375d442f534cae6f4bf6da54243, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: 2f97f62820af55c4f8fc0303ea6843f5, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: 1a8c5fd3822226249957fa3356b4070a, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: 4ed7ed944f9b66441941effac0f1806e, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: a77ebd0aaac183e45bff0d05745cf0d1, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: e8f0b0c90828def458b07adedcb16992, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: 03f01dcf91cdae34897562741c338bcb, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: 89164a5ca38e87d409b45d2a3c29de7c, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: 200499fa2c79f214681c681dd0eaabd3, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: fb1703ab0ff9d3c49a902548ce45ff91, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: 809df09db346d6f4fb2aac15956b5d76, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: f97227717c214104fa945ca47aa29617, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: 8fe446d26cf43724196c575595c7dac4, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: 8e9a1a3e172609848916109938ac8c53, type: 3}
|
- {fileID: 0}
|
||||||
- {fileID: 21300000, guid: 20954ee1a93cedb498a429fcc1ea1fd7, type: 3}
|
- {fileID: 0}
|
||||||
|
- {fileID: 0}
|
||||||
|
- {fileID: 0}
|
||||||
|
- {fileID: 0}
|
||||||
|
- {fileID: 0}
|
||||||
|
- {fileID: 0}
|
||||||
|
- {fileID: 0}
|
||||||
- {fileID: -4922902375269903740, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
- {fileID: -4922902375269903740, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
||||||
- {fileID: -3456084564025576355, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
- {fileID: -3456084564025576355, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
||||||
- {fileID: -4922902375269903740, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
|
||||||
- {fileID: -3456084564025576355, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
- {fileID: -3456084564025576355, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
||||||
- {fileID: 7562980635367501552, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
- {fileID: 7562980635367501552, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
||||||
- {fileID: -1164378328580708214, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
- {fileID: -1164378328580708214, guid: 52117e1d5cd298c42adfea952676c7d6, type: 3}
|
||||||
|
@ -322,7 +370,7 @@ AnimationClip:
|
||||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
m_AdditiveReferencePoseClip: {fileID: 0}
|
||||||
m_AdditiveReferencePoseTime: 0
|
m_AdditiveReferencePoseTime: 0
|
||||||
m_StartTime: 0
|
m_StartTime: 0
|
||||||
m_StopTime: 0.3
|
m_StopTime: 0.4166667
|
||||||
m_OrientationOffsetY: 0
|
m_OrientationOffsetY: 0
|
||||||
m_Level: 0
|
m_Level: 0
|
||||||
m_CycleOffset: 0
|
m_CycleOffset: 0
|
||||||
|
@ -338,147 +386,6 @@ AnimationClip:
|
||||||
m_HeightFromFeet: 0
|
m_HeightFromFeet: 0
|
||||||
m_Mirror: 0
|
m_Mirror: 0
|
||||||
m_EditorCurves:
|
m_EditorCurves:
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: -0.363
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.16666667
|
|
||||||
value: -0.218
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_LocalPosition.x
|
|
||||||
path: SOME01_128091f1_6_11
|
|
||||||
classID: 4
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1.035
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.16666667
|
|
||||||
value: 1.214
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_LocalPosition.y
|
|
||||||
path: SOME01_128091f1_6_11
|
|
||||||
classID: 4
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 74.52776
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.16666667
|
|
||||||
value: 74.52776
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_LocalPosition.z
|
|
||||||
path: SOME01_128091f1_6_11
|
|
||||||
classID: 4
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: localEulerAnglesRaw.x
|
|
||||||
path: SOME01_128091f1_6_11
|
|
||||||
classID: 4
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: localEulerAnglesRaw.y
|
|
||||||
path: SOME01_128091f1_6_11
|
|
||||||
classID: 4
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: -133.353
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: localEulerAnglesRaw.z
|
|
||||||
path: SOME01_128091f1_6_11
|
|
||||||
classID: 4
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
- curve:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Curve:
|
m_Curve:
|
||||||
|
@ -500,6 +407,33 @@ AnimationClip:
|
||||||
weightedMode: 0
|
weightedMode: 0
|
||||||
inWeight: 0.33333334
|
inWeight: 0.33333334
|
||||||
outWeight: 0.33333334
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.3
|
||||||
|
value: -0.235
|
||||||
|
inSlope: Infinity
|
||||||
|
outSlope: Infinity
|
||||||
|
tangentMode: 103
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.35
|
||||||
|
value: -0.113
|
||||||
|
inSlope: Infinity
|
||||||
|
outSlope: Infinity
|
||||||
|
tangentMode: 103
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.4
|
||||||
|
value: 0.02943516
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 136
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
|
@ -528,6 +462,33 @@ AnimationClip:
|
||||||
weightedMode: 0
|
weightedMode: 0
|
||||||
inWeight: 0.33333334
|
inWeight: 0.33333334
|
||||||
outWeight: 0.33333334
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.3
|
||||||
|
value: 1.216
|
||||||
|
inSlope: Infinity
|
||||||
|
outSlope: Infinity
|
||||||
|
tangentMode: 103
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.35
|
||||||
|
value: 1.145
|
||||||
|
inSlope: Infinity
|
||||||
|
outSlope: Infinity
|
||||||
|
tangentMode: 103
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.4
|
||||||
|
value: 1.231121
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 136
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
|
@ -556,6 +517,33 @@ AnimationClip:
|
||||||
weightedMode: 0
|
weightedMode: 0
|
||||||
inWeight: 0.33333334
|
inWeight: 0.33333334
|
||||||
outWeight: 0.33333334
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.3
|
||||||
|
value: 74.52776
|
||||||
|
inSlope: Infinity
|
||||||
|
outSlope: Infinity
|
||||||
|
tangentMode: 103
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.35
|
||||||
|
value: 74.52776
|
||||||
|
inSlope: Infinity
|
||||||
|
outSlope: Infinity
|
||||||
|
tangentMode: 103
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.4
|
||||||
|
value: 74.52776
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 136
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
|
@ -641,6 +629,15 @@ AnimationClip:
|
||||||
weightedMode: 0
|
weightedMode: 0
|
||||||
inWeight: 0
|
inWeight: 0
|
||||||
outWeight: 0
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.4
|
||||||
|
value: 0
|
||||||
|
inSlope: Infinity
|
||||||
|
outSlope: Infinity
|
||||||
|
tangentMode: 103
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
|
@ -660,6 +657,15 @@ AnimationClip:
|
||||||
weightedMode: 0
|
weightedMode: 0
|
||||||
inWeight: 0
|
inWeight: 0
|
||||||
outWeight: 0
|
outWeight: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.3
|
||||||
|
value: 1
|
||||||
|
inSlope: Infinity
|
||||||
|
outSlope: Infinity
|
||||||
|
tangentMode: 103
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
|
@ -667,27 +673,148 @@ AnimationClip:
|
||||||
path: PeaVisual
|
path: PeaVisual
|
||||||
classID: 1
|
classID: 1
|
||||||
script: {fileID: 0}
|
script: {fileID: 0}
|
||||||
|
- curve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.3
|
||||||
|
value: -0.1
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 136
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.35
|
||||||
|
value: 0.017
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 136
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
attribute: m_LocalPosition.x
|
||||||
|
path: PeaVisual
|
||||||
|
classID: 4
|
||||||
|
script: {fileID: 0}
|
||||||
|
- curve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.3
|
||||||
|
value: 0.408
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 136
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.35
|
||||||
|
value: 0.261
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 136
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
attribute: m_LocalPosition.y
|
||||||
|
path: PeaVisual
|
||||||
|
classID: 4
|
||||||
|
script: {fileID: 0}
|
||||||
|
- curve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.3
|
||||||
|
value: 74.52776
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 136
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.35
|
||||||
|
value: 74.52776
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 136
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0.33333334
|
||||||
|
outWeight: 0.33333334
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
attribute: m_LocalPosition.z
|
||||||
|
path: PeaVisual
|
||||||
|
classID: 4
|
||||||
|
script: {fileID: 0}
|
||||||
|
- curve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.4
|
||||||
|
value: 0.271
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 136
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
attribute: m_LocalPosition.x
|
||||||
|
path: HandVisual/hand_shadow1
|
||||||
|
classID: 4
|
||||||
|
script: {fileID: 0}
|
||||||
|
- curve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.4
|
||||||
|
value: -0.031
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 136
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
attribute: m_LocalPosition.y
|
||||||
|
path: HandVisual/hand_shadow1
|
||||||
|
classID: 4
|
||||||
|
script: {fileID: 0}
|
||||||
|
- curve:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Curve:
|
||||||
|
- serializedVersion: 3
|
||||||
|
time: 0.4
|
||||||
|
value: 0
|
||||||
|
inSlope: 0
|
||||||
|
outSlope: 0
|
||||||
|
tangentMode: 136
|
||||||
|
weightedMode: 0
|
||||||
|
inWeight: 0
|
||||||
|
outWeight: 0
|
||||||
|
m_PreInfinity: 2
|
||||||
|
m_PostInfinity: 2
|
||||||
|
m_RotationOrder: 4
|
||||||
|
attribute: m_LocalPosition.z
|
||||||
|
path: HandVisual/hand_shadow1
|
||||||
|
classID: 4
|
||||||
|
script: {fileID: 0}
|
||||||
m_EulerEditorCurves:
|
m_EulerEditorCurves:
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve: []
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_LocalEulerAngles.x
|
|
||||||
path: SOME01_128091f1_6_11
|
|
||||||
classID: 4
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve: []
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_LocalEulerAngles.y
|
|
||||||
path: SOME01_128091f1_6_11
|
|
||||||
classID: 4
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
- curve:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Curve: []
|
m_Curve: []
|
||||||
|
@ -695,16 +822,6 @@ AnimationClip:
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
attribute: m_LocalEulerAngles.z
|
attribute: m_LocalEulerAngles.z
|
||||||
path: SOME01_128091f1_6_11
|
|
||||||
classID: 4
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve: []
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_LocalEulerAngles.x
|
|
||||||
path: HandVisual
|
path: HandVisual
|
||||||
classID: 4
|
classID: 4
|
||||||
script: {fileID: 0}
|
script: {fileID: 0}
|
||||||
|
@ -724,7 +841,7 @@ AnimationClip:
|
||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
attribute: m_LocalEulerAngles.z
|
attribute: m_LocalEulerAngles.x
|
||||||
path: HandVisual
|
path: HandVisual
|
||||||
classID: 4
|
classID: 4
|
||||||
script: {fileID: 0}
|
script: {fileID: 0}
|
||||||
|
|
|
@ -190,7 +190,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("enable", true, "Enable", "", new List<Param.CollapseParam>()
|
new Param("enable", true, "Enable", "", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "main", "side", "speed", "endSpeed", "ease" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "main", "side", "speed", "endSpeed", "ease" })
|
||||||
}),
|
}),
|
||||||
new Param("main", new EntityTypes.Integer(0, 300, 50), "Main Trees", "How many trees per second?"),
|
new Param("main", new EntityTypes.Integer(0, 300, 50), "Main Trees", "How many trees per second?"),
|
||||||
new Param("side", new EntityTypes.Integer(0, 100, 30), "Side Trees", "How many trees per second?"),
|
new Param("side", new EntityTypes.Integer(0, 100, 30), "Side Trees", "How many trees per second?"),
|
||||||
|
|
|
@ -24,7 +24,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("silent", false, "Mute Audio", "Whether the piano notes should be muted or not.", new List<Param.CollapseParam>()
|
new Param("silent", false, "Mute Audio", "Whether the piano notes should be muted or not.", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => !(bool)x, new string[] { "note1", "note2", "note3", "note4", "note5", "note6"})
|
new Param.CollapseParam((x, _) => !(bool)x, new string[] { "note1", "note2", "note3", "note4", "note5", "note6"})
|
||||||
}),
|
}),
|
||||||
new Param("note1", new EntityTypes.Integer(-24, 24, 0), "1st note", "The number of semitones up or down this note should be pitched"),
|
new Param("note1", new EntityTypes.Integer(-24, 24, 0), "1st note", "The number of semitones up or down this note should be pitched"),
|
||||||
new Param("note2", new EntityTypes.Integer(-24, 24, 2), "2nd note", "The number of semitones up or down this note should be pitched"),
|
new Param("note2", new EntityTypes.Integer(-24, 24, 2), "2nd note", "The number of semitones up or down this note should be pitched"),
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
new Param("side", CatchyTune.Side.Left, "Side", "The side the orange falls down"),
|
new Param("side", CatchyTune.Side.Left, "Side", "The side the orange falls down"),
|
||||||
new Param("smile", false, "Smile", "If the characters smile with the heart message after catching", new List<Param.CollapseParam>()
|
new Param("smile", false, "Smile", "If the characters smile with the heart message after catching", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "endSmile" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "endSmile" })
|
||||||
}),
|
}),
|
||||||
new Param("endSmile", new EntityTypes.Float(2, 100, 2), "End Smile Beat", "How many beats after the catch should the smile end?")
|
new Param("endSmile", new EntityTypes.Float(2, 100, 2), "End Smile Beat", "How many beats after the catch should the smile end?")
|
||||||
},
|
},
|
||||||
|
@ -37,7 +37,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
new Param("side", CatchyTune.Side.Left, "Side", "The side the pineapple falls down"),
|
new Param("side", CatchyTune.Side.Left, "Side", "The side the pineapple falls down"),
|
||||||
new Param("smile", false, "Smile", "If the characters smile with the heart message after catching", new List<Param.CollapseParam>()
|
new Param("smile", false, "Smile", "If the characters smile with the heart message after catching", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "endSmile" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "endSmile" })
|
||||||
}),
|
}),
|
||||||
new Param("endSmile", new EntityTypes.Float(2, 100, 2), "End Smile Beat", "How many beats after the catch should the smile end?")
|
new Param("endSmile", new EntityTypes.Float(2, 100, 2), "End Smile Beat", "How many beats after the catch should the smile end?")
|
||||||
},
|
},
|
||||||
|
|
|
@ -57,7 +57,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
new Param("limit", new EntityTypes.Integer(1, 1000, 80), "Limit", "What is the limit for plants collected?"),
|
new Param("limit", new EntityTypes.Integer(1, 1000, 80), "Limit", "What is the limit for plants collected?"),
|
||||||
new Param("force", false, "Force Amount of Collected Plants", "", new List<Param.CollapseParam>()
|
new Param("force", false, "Force Amount of Collected Plants", "", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "forceAmount" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "forceAmount" })
|
||||||
}),
|
}),
|
||||||
new Param("forceAmount", new EntityTypes.Integer(0, 1000, 0), "Force Amount")
|
new Param("forceAmount", new EntityTypes.Integer(0, 1000, 0), "Force Amount")
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("toggle", false, "Set All to Player", "Sets all Miis to the Player's Mii", new List<Param.CollapseParam>()
|
new Param("toggle", false, "Set All to Player", "Sets all Miis to the Player's Mii", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => !(bool)x, new string[] { "type", "type2", "type3" })
|
new Param.CollapseParam((x, _) => !(bool)x, new string[] { "type", "type2", "type3" })
|
||||||
}),
|
}),
|
||||||
new Param("type", DrummingPractice.MiiType.Random, "Player Mii", "The Mii that the player will control"),
|
new Param("type", DrummingPractice.MiiType.Random, "Player Mii", "The Mii that the player will control"),
|
||||||
new Param("type2", DrummingPractice.MiiType.Random, "Left Mii", "The Mii on the left"),
|
new Param("type2", DrummingPractice.MiiType.Random, "Left Mii", "The Mii on the left"),
|
||||||
|
|
|
@ -59,12 +59,12 @@ namespace HeavenStudio.Games.Loaders
|
||||||
new Param("uh", new EntityTypes.Integer(0, 3, 0), "Uh Count", "How many Uhs should Captain Tuck say after the flippers roll?"),
|
new Param("uh", new EntityTypes.Integer(0, 3, 0), "Uh Count", "How many Uhs should Captain Tuck say after the flippers roll?"),
|
||||||
new Param("appreciation", FlipperFlop.AppreciationType.None, "Appreciation", "Which appreciation line should Captain Tuck say?", new List<Param.CollapseParam>()
|
new Param("appreciation", FlipperFlop.AppreciationType.None, "Appreciation", "Which appreciation line should Captain Tuck say?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (int)x != (int)FlipperFlop.AppreciationType.None, new string[] { "heart" })
|
new Param.CollapseParam((x, _) => (int)x != (int)FlipperFlop.AppreciationType.None, new string[] { "heart" })
|
||||||
}),
|
}),
|
||||||
new Param("heart", false, "Hearts", "Should Captain Tuck blush and make hearts appear when he expresses his appreciation?"),
|
new Param("heart", false, "Hearts", "Should Captain Tuck blush and make hearts appear when he expresses his appreciation?"),
|
||||||
new Param("thatsIt", false, "That's it!", "Whether or not Captain Tuck should say -That's it!- on the final flipper roll.", new List<Param.CollapseParam>()
|
new Param("thatsIt", false, "That's it!", "Whether or not Captain Tuck should say -That's it!- on the final flipper roll.", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "barber" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "barber" })
|
||||||
}),
|
}),
|
||||||
new Param("barber", false, "Barbershop that's it variant", "Should captain tuck use the Barbershop remix variant of that's it?")
|
new Param("barber", false, "Barbershop that's it variant", "Should captain tuck use the Barbershop remix variant of that's it?")
|
||||||
},
|
},
|
||||||
|
|
|
@ -14,17 +14,30 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new GameAction("flick", "Flick Food")
|
new GameAction("flick", "Flick Food")
|
||||||
{
|
{
|
||||||
function = delegate { var e = eventCaller.currentEntity; ForkLifter.instance.Flick(e.beat, e["type"]); },
|
function = delegate {
|
||||||
|
var e = eventCaller.currentEntity;
|
||||||
|
ForkLifter.Flick(e.beat);
|
||||||
|
ForkLifter.instance.FlickActive(e.beat, e["type"]);
|
||||||
|
},
|
||||||
defaultLength = 3,
|
defaultLength = 3,
|
||||||
parameters = new List<Param>()
|
parameters = new List<Param>()
|
||||||
{
|
{
|
||||||
new Param("type", ForkLifter.FlickType.Pea, "Object", "The object to be flicked")
|
new Param("type", ForkLifter.FlickType.Pea, "Object", "The object to be flicked")
|
||||||
}
|
},
|
||||||
|
inactiveFunction = delegate {
|
||||||
|
var e = eventCaller.currentEntity;
|
||||||
|
ForkLifter.Flick(e.beat);
|
||||||
|
ForkLifter.queuedFlicks.Add(e);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
new GameAction("prepare", "Prepare Hand")
|
new GameAction("prepare", "Prepare Hand")
|
||||||
{
|
{
|
||||||
function = delegate { ForkLifter.instance.ForkLifterHand.Prepare(); },
|
function = delegate { ForkLifter.instance.ForkLifterHand.Prepare(eventCaller.currentEntity["mute"]); },
|
||||||
defaultLength = 0.5f
|
defaultLength = 0.5f,
|
||||||
|
parameters = new List<Param>()
|
||||||
|
{
|
||||||
|
new Param("mute", false, "Mute Prepare")
|
||||||
|
}
|
||||||
},
|
},
|
||||||
new GameAction("gulp", "Swallow")
|
new GameAction("gulp", "Swallow")
|
||||||
{
|
{
|
||||||
|
@ -32,7 +45,6 @@ namespace HeavenStudio.Games.Loaders
|
||||||
},
|
},
|
||||||
new GameAction("sigh", "Sigh")
|
new GameAction("sigh", "Sigh")
|
||||||
{
|
{
|
||||||
|
|
||||||
function = delegate { SoundByte.PlayOneShot("games/forkLifter/sigh"); }
|
function = delegate { SoundByte.PlayOneShot("games/forkLifter/sigh"); }
|
||||||
},
|
},
|
||||||
new GameAction("color", "Background Color")
|
new GameAction("color", "Background Color")
|
||||||
|
@ -67,32 +79,6 @@ namespace HeavenStudio.Games.Loaders
|
||||||
},
|
},
|
||||||
resizable = true,
|
resizable = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
// These are still here for backwards-compatibility but are hidden in the editor
|
|
||||||
new GameAction("pea", "")
|
|
||||||
{
|
|
||||||
function = delegate { ForkLifter.instance.Flick(eventCaller.currentEntity.beat, 0); },
|
|
||||||
defaultLength = 3,
|
|
||||||
hidden = true
|
|
||||||
},
|
|
||||||
new GameAction("topbun", "")
|
|
||||||
{
|
|
||||||
function = delegate { ForkLifter.instance.Flick(eventCaller.currentEntity.beat, 1); },
|
|
||||||
defaultLength = 3,
|
|
||||||
hidden = true
|
|
||||||
},
|
|
||||||
new GameAction("burger", "")
|
|
||||||
{
|
|
||||||
function = delegate { ForkLifter.instance.Flick(eventCaller.currentEntity.beat, 2); },
|
|
||||||
defaultLength = 3,
|
|
||||||
hidden = true
|
|
||||||
},
|
|
||||||
new GameAction("bottombun", "")
|
|
||||||
{
|
|
||||||
function = delegate { ForkLifter.instance.Flick(eventCaller.currentEntity.beat, 3); },
|
|
||||||
defaultLength = 3,
|
|
||||||
hidden = true
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
new List<string>() {"rvl", "normal"},
|
new List<string>() {"rvl", "normal"},
|
||||||
"rvlfork", "en",
|
"rvlfork", "en",
|
||||||
|
@ -104,10 +90,12 @@ namespace HeavenStudio.Games.Loaders
|
||||||
|
|
||||||
namespace HeavenStudio.Games
|
namespace HeavenStudio.Games
|
||||||
{
|
{
|
||||||
|
using Jukebox;
|
||||||
using Scripts_ForkLifter;
|
using Scripts_ForkLifter;
|
||||||
|
|
||||||
public class ForkLifter : Minigame
|
public class ForkLifter : Minigame
|
||||||
{
|
{
|
||||||
|
public static List<RiqEntity> queuedFlicks = new();
|
||||||
|
|
||||||
public enum FlickType
|
public enum FlickType
|
||||||
{
|
{
|
||||||
|
@ -149,27 +137,41 @@ namespace HeavenStudio.Games
|
||||||
public override void OnGameSwitch(double beat)
|
public override void OnGameSwitch(double beat)
|
||||||
{
|
{
|
||||||
base.OnGameSwitch(beat);
|
base.OnGameSwitch(beat);
|
||||||
|
if (queuedFlicks.Count > 0) {
|
||||||
|
foreach (var flick in queuedFlicks) { FlickActive(flick.beat, flick["type"]); }
|
||||||
|
queuedFlicks.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
ForkLifterHand.allFlickEntities = GameManager.instance.Beatmap.Entities.FindAll(c => (c.datamodel == "forkLifter/flick") && (c.beat >= beat));
|
||||||
ForkLifterHand.CheckNextFlick();
|
ForkLifterHand.CheckNextFlick();
|
||||||
PersistColor(beat);
|
PersistColor(beat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void Bop(double beat, double length, bool doesBop, bool autoBop)
|
public void Bop(double beat, double length, bool doesBop, bool autoBop)
|
||||||
{
|
{
|
||||||
playerInstance.shouldBop = (autoBop || doesBop);
|
playerInstance.shouldBop = autoBop;
|
||||||
if (!autoBop && doesBop) {
|
if (doesBop)
|
||||||
BeatAction.New(this, new List<BeatAction.Action>() {
|
{
|
||||||
new BeatAction.Action(beat + length, delegate {
|
var actions = new List<BeatAction.Action>();
|
||||||
playerInstance.shouldBop = false;
|
for (int i = 0; i < length; i++) {
|
||||||
})
|
actions.Add(new(beat + i, delegate { playerInstance.SingleBop(); }));
|
||||||
});
|
}
|
||||||
|
BeatAction.New(playerInstance, actions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Flick(double beat, int type)
|
public static void Flick(double beat)
|
||||||
{
|
{
|
||||||
SoundByte.PlayOneShotGame("forkLifter/flick");
|
var offset = SoundByte.GetClipLengthGame("forkLifter/zoomFast") - 0.03;
|
||||||
handAnim.Play("Hand_Flick", 0, 0);
|
SoundByte.PlayOneShotGame("forkLifter/zoomFast", beat + 2, offset: offset, forcePlay: true);
|
||||||
|
|
||||||
|
SoundByte.PlayOneShotGame("forkLifter/flick", forcePlay: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void FlickActive(double beat, int type)
|
||||||
|
{
|
||||||
|
|
||||||
|
handAnim.DoScaledAnimationFromBeatAsync("Hand_Flick", 0.5f, beat);
|
||||||
ForkLifterHand.currentFlickIndex++;
|
ForkLifterHand.currentFlickIndex++;
|
||||||
GameObject fo = Instantiate(flickedObject);
|
GameObject fo = Instantiate(flickedObject);
|
||||||
fo.transform.parent = flickedObject.transform.parent;
|
fo.transform.parent = flickedObject.transform.parent;
|
||||||
|
|
|
@ -15,57 +15,32 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||||
|
|
||||||
public Sprite[] fastSprites;
|
public Sprite[] fastSprites;
|
||||||
|
|
||||||
private List<RiqEntity> allFlickEntities = new List<RiqEntity>();
|
public List<RiqEntity> allFlickEntities = new List<RiqEntity>();
|
||||||
|
|
||||||
public int currentFlickIndex;
|
public int currentFlickIndex;
|
||||||
|
|
||||||
|
ForkLifter game;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
var flickEntities = EventCaller.GetAllInGameManagerList("forkLifter", new string[] { "flick" });
|
game = ForkLifter.instance;
|
||||||
List<RiqEntity> tempEvents = new List<RiqEntity>();
|
|
||||||
for (int i = 0; i < flickEntities.Count; i++)
|
|
||||||
{
|
|
||||||
if (flickEntities[i].beat >= Conductor.instance.songPositionInBeatsAsDouble)
|
|
||||||
{
|
|
||||||
tempEvents.Add(flickEntities[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
allFlickEntities = tempEvents;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CheckNextFlick()
|
public void CheckNextFlick()
|
||||||
{
|
{
|
||||||
if (allFlickEntities.Count > 0 && currentFlickIndex >= 0 && currentFlickIndex < allFlickEntities.Count)
|
if (allFlickEntities.Count > 0 && currentFlickIndex >= 0 && currentFlickIndex < allFlickEntities.Count)
|
||||||
{
|
{
|
||||||
switch (allFlickEntities[currentFlickIndex]["type"])
|
int nextType = allFlickEntities[currentFlickIndex]["type"];
|
||||||
{
|
game.peaPreview.sprite = game.peaSprites[nextType];
|
||||||
case (int)ForkLifter.FlickType.Pea:
|
fastSprite.sprite = fastSprites[nextType == (int)ForkLifter.FlickType.Burger ? 1 : 0];
|
||||||
ForkLifter.instance.peaPreview.sprite = ForkLifter.instance.peaSprites[0];
|
} else {
|
||||||
fastSprite.sprite = fastSprites[0];
|
game.peaPreview.sprite = null;
|
||||||
break;
|
|
||||||
case (int)ForkLifter.FlickType.TopBun:
|
|
||||||
ForkLifter.instance.peaPreview.sprite = ForkLifter.instance.peaSprites[1];
|
|
||||||
fastSprite.sprite = fastSprites[0];
|
|
||||||
break;
|
|
||||||
case (int)ForkLifter.FlickType.Burger:
|
|
||||||
ForkLifter.instance.peaPreview.sprite = ForkLifter.instance.peaSprites[2];
|
|
||||||
fastSprite.sprite = fastSprites[1];
|
|
||||||
break;
|
|
||||||
case (int)ForkLifter.FlickType.BottomBun:
|
|
||||||
ForkLifter.instance.peaPreview.sprite = ForkLifter.instance.peaSprites[3];
|
|
||||||
fastSprite.sprite = fastSprites[0];
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ForkLifter.instance.peaPreview.sprite = null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Prepare()
|
public void Prepare(bool mute)
|
||||||
{
|
{
|
||||||
SoundByte.PlayOneShotGame("forkLifter/flickPrepare");
|
if (!mute) SoundByte.PlayOneShotGame("forkLifter/flickPrepare");
|
||||||
GetComponent<Animator>().Play("Hand_Prepare", 0, 0);
|
GetComponent<Animator>().Play("Hand_Prepare", 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,10 +57,15 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||||
|
|
||||||
if (Conductor.instance.ReportBeat(ref lastReportedBeat) && anim.IsAnimationNotPlaying() && shouldBop)
|
if (Conductor.instance.ReportBeat(ref lastReportedBeat) && anim.IsAnimationNotPlaying() && shouldBop)
|
||||||
{
|
{
|
||||||
anim.DoScaledAnimationAsync("Player_Bop", 0.5f);
|
SingleBop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SingleBop()
|
||||||
|
{
|
||||||
|
anim.DoScaledAnimationAsync("Player_Bop", 0.5f);
|
||||||
|
}
|
||||||
|
|
||||||
public void Eat()
|
public void Eat()
|
||||||
{
|
{
|
||||||
if (currentEarlyPeasOnFork != 0 || currentPerfectPeasOnFork != 0 || currentLatePeasOnFork != 0)
|
if (currentEarlyPeasOnFork != 0 || currentPerfectPeasOnFork != 0 || currentLatePeasOnFork != 0)
|
||||||
|
|
|
@ -10,24 +10,20 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||||
{
|
{
|
||||||
public class Pea : MonoBehaviour
|
public class Pea : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
public double startBeat;
|
||||||
|
public int type;
|
||||||
|
|
||||||
ForkLifter game;
|
ForkLifter game;
|
||||||
|
ForkLifterPlayer player;
|
||||||
private Animator anim;
|
private Animator anim;
|
||||||
|
|
||||||
public double startBeat;
|
|
||||||
|
|
||||||
public int type;
|
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
game = ForkLifter.instance;
|
game = ForkLifter.instance;
|
||||||
|
player = ForkLifterPlayer.instance;
|
||||||
anim = GetComponent<Animator>();
|
anim = GetComponent<Animator>();
|
||||||
|
|
||||||
// SCHEDULING zoom sound so it lines up with when it meets the fork.
|
|
||||||
var currentDspTime = AudioSettings.dspTime;
|
|
||||||
var cond = Conductor.instance;
|
|
||||||
var zoomStartTime = currentDspTime + (cond.pitchedSecPerBeatAsDouble * 2) - 0.317;
|
|
||||||
SoundByte.PlayOneShotScheduledGame("forkLifter/zoomFast", zoomStartTime);
|
|
||||||
|
|
||||||
GetComponentInChildren<SpriteRenderer>().sprite = game.peaSprites[type];
|
GetComponentInChildren<SpriteRenderer>().sprite = game.peaSprites[type];
|
||||||
|
|
||||||
for (int i = 0; i < transform.GetChild(0).childCount; i++)
|
for (int i = 0; i < transform.GetChild(0).childCount; i++)
|
||||||
|
@ -40,13 +36,13 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||||
|
|
||||||
public void Hit()
|
public void Hit()
|
||||||
{
|
{
|
||||||
ForkLifterPlayer.instance.Stab(this);
|
player.Stab(this);
|
||||||
|
|
||||||
if (ForkLifterPlayer.instance.currentPerfectPeasOnFork < 4)
|
if (player.currentPerfectPeasOnFork < 4)
|
||||||
{
|
{
|
||||||
GameObject pea = new GameObject();
|
GameObject pea = new GameObject();
|
||||||
|
|
||||||
pea.transform.parent = ForkLifterPlayer.instance.perfect.transform;
|
pea.transform.parent = player.perfect.transform;
|
||||||
pea.transform.localScale = Vector2.one;
|
pea.transform.localScale = Vector2.one;
|
||||||
pea.transform.localRotation = Quaternion.Euler(0, 0, 0);
|
pea.transform.localRotation = Quaternion.Euler(0, 0, 0);
|
||||||
|
|
||||||
|
@ -54,59 +50,42 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||||
|
|
||||||
float peaOffset = 0;
|
float peaOffset = 0;
|
||||||
|
|
||||||
if (ForkLifterPlayer.instance.currentPerfectPeasOnFork == 3) peaOffset = -0.15724f;
|
if (player.currentPerfectPeasOnFork == 3) peaOffset = -0.15724f;
|
||||||
|
|
||||||
for (int i = 0; i < ForkLifterPlayer.instance.perfect.transform.childCount; i++)
|
for (int i = 0; i < player.perfect.transform.childCount; i++)
|
||||||
{
|
{
|
||||||
ForkLifterPlayer.instance.perfect.transform.GetChild(i).transform.localPosition = new Vector3(0, (-1.67f - (0.15724f * i)) + 0.15724f * ForkLifterPlayer.instance.currentPerfectPeasOnFork + peaOffset);
|
player.perfect.transform.GetChild(i).transform.localPosition = new Vector3(0, (-1.67f - (0.15724f * i)) + 0.15724f * player.currentPerfectPeasOnFork + peaOffset);
|
||||||
}
|
}
|
||||||
|
|
||||||
SpriteRenderer psprite = pea.AddComponent<SpriteRenderer>();
|
SpriteRenderer psprite = pea.AddComponent<SpriteRenderer>();
|
||||||
|
|
||||||
psprite.sprite = game.peaHitSprites[type];
|
psprite.sprite = game.peaHitSprites[type];
|
||||||
psprite.sortingOrder = 20;
|
psprite.sortingOrder = type switch {
|
||||||
switch (type)
|
0 => 101,
|
||||||
{
|
1 => 104,
|
||||||
case 0:
|
2 => 103,
|
||||||
psprite.sortingOrder = 101;
|
3 => 102,
|
||||||
break;
|
_ => 20,
|
||||||
case 1:
|
};
|
||||||
psprite.sortingOrder = 104;
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
psprite.sortingOrder = 103;
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
psprite.sortingOrder = 102;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GameObject hitFXo = new GameObject();
|
GameObject hitFXo = new GameObject();
|
||||||
hitFXo.transform.localPosition = new Vector3(1.9969f, -3.7026f);
|
hitFXo.transform.localPosition = new Vector3(1.9969f, -3.7026f);
|
||||||
hitFXo.transform.localScale = new Vector3(3.142196f, 3.142196f);
|
hitFXo.transform.localScale = new Vector3(3.142196f, 3.142196f);
|
||||||
SpriteRenderer hfxs = hitFXo.AddComponent<SpriteRenderer>();
|
SpriteRenderer hfxs = hitFXo.AddComponent<SpriteRenderer>();
|
||||||
hfxs.sprite = ForkLifterPlayer.instance.hitFX;
|
hfxs.sprite = player.hitFX;
|
||||||
hfxs.sortingOrder = 100;
|
hfxs.sortingOrder = 100;
|
||||||
hfxs.DOColor(new Color(1, 1, 1, 0), 0.05f).OnComplete(delegate { Destroy(hitFXo); });
|
hfxs.DOColor(new Color(1, 1, 1, 0), 0.05f).OnComplete(delegate { Destroy(hitFXo); });
|
||||||
|
|
||||||
ForkLifterPlayer.instance.FastEffectHit(type);
|
player.FastEffectHit(type);
|
||||||
|
|
||||||
SoundByte.PlayOneShotGame("forkLifter/stab");
|
SoundByte.PlayOneShotGame("forkLifter/stab");
|
||||||
|
|
||||||
ForkLifterPlayer.instance.currentPerfectPeasOnFork++;
|
player.currentPerfectPeasOnFork++;
|
||||||
|
|
||||||
if (type == 1)
|
player.topbun = type == 1;
|
||||||
{
|
player.middleburger = type == 2;
|
||||||
ForkLifterPlayer.instance.topbun = true;
|
player.bottombun = type == 3;
|
||||||
}
|
|
||||||
else if (type == 2)
|
|
||||||
{
|
|
||||||
ForkLifterPlayer.instance.middleburger = true;
|
|
||||||
}
|
|
||||||
else if (type == 3)
|
|
||||||
{
|
|
||||||
ForkLifterPlayer.instance.bottombun = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
Destroy(this.gameObject);
|
Destroy(this.gameObject);
|
||||||
}
|
}
|
||||||
|
@ -115,30 +94,30 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||||
{
|
{
|
||||||
GameObject pea = new GameObject();
|
GameObject pea = new GameObject();
|
||||||
|
|
||||||
pea.transform.parent = ForkLifterPlayer.instance.early.transform;
|
pea.transform.parent = player.early.transform;
|
||||||
pea.transform.localScale = Vector2.one;
|
pea.transform.localScale = Vector2.one;
|
||||||
|
|
||||||
pea.transform.localPosition = Vector3.zero;
|
pea.transform.localPosition = Vector3.zero;
|
||||||
pea.transform.localRotation = Quaternion.Euler(0, 0, 90);
|
pea.transform.localRotation = Quaternion.Euler(0, 0, 90);
|
||||||
|
|
||||||
for (int i = 0; i < ForkLifterPlayer.instance.early.transform.childCount; i++)
|
for (int i = 0; i < player.early.transform.childCount; i++)
|
||||||
{
|
{
|
||||||
ForkLifterPlayer.instance.early.transform.GetChild(i).transform.localPosition = new Vector3(0, (-1.67f - (0.15724f * i)) + 0.15724f * ForkLifterPlayer.instance.currentEarlyPeasOnFork);
|
player.early.transform.GetChild(i).transform.localPosition = new Vector3(0, (-1.67f - (0.15724f * i)) + 0.15724f * player.currentEarlyPeasOnFork);
|
||||||
}
|
}
|
||||||
|
|
||||||
SpriteRenderer psprite = pea.AddComponent<SpriteRenderer>();
|
SpriteRenderer psprite = pea.AddComponent<SpriteRenderer>();
|
||||||
psprite.sprite = game.peaHitSprites[type];
|
psprite.sprite = game.peaHitSprites[type];
|
||||||
psprite.sortingOrder = 20;
|
psprite.sortingOrder = 20;
|
||||||
ForkLifterPlayer.instance.HitFXMiss(new Vector2(1.0424f, -4.032f), new Vector2(1.129612f, 1.129612f));
|
player.HitFXMiss(new Vector2(1.0424f, -4.032f), new Vector2(1.129612f, 1.129612f));
|
||||||
ForkLifterPlayer.instance.HitFXMiss(new Vector2(0.771f, -3.016f), new Vector2(1.71701f, 1.71701f));
|
player.HitFXMiss(new Vector2(0.771f, -3.016f), new Vector2(1.71701f, 1.71701f));
|
||||||
ForkLifterPlayer.instance.HitFXMiss(new Vector2(2.598f, -2.956f), new Vector2(1.576043f, 1.576043f));
|
player.HitFXMiss(new Vector2(2.598f, -2.956f), new Vector2(1.576043f, 1.576043f));
|
||||||
ForkLifterPlayer.instance.HitFXMiss(new Vector2(2.551f, -3.609f), new Vector2(1.200788f, 1.200788f));
|
player.HitFXMiss(new Vector2(2.551f, -3.609f), new Vector2(1.200788f, 1.200788f));
|
||||||
|
|
||||||
ForkLifterPlayer.instance.FastEffectHit(type);
|
player.FastEffectHit(type);
|
||||||
|
|
||||||
SoundByte.PlayOneShot("miss");
|
SoundByte.PlayOneShot("miss");
|
||||||
|
|
||||||
ForkLifterPlayer.instance.currentEarlyPeasOnFork++;
|
player.currentEarlyPeasOnFork++;
|
||||||
|
|
||||||
Destroy(this.gameObject);
|
Destroy(this.gameObject);
|
||||||
}
|
}
|
||||||
|
@ -146,30 +125,30 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||||
public void Late()
|
public void Late()
|
||||||
{
|
{
|
||||||
GameObject pea = new GameObject();
|
GameObject pea = new GameObject();
|
||||||
pea.transform.parent = ForkLifterPlayer.instance.late.transform;
|
pea.transform.parent = player.late.transform;
|
||||||
pea.transform.localScale = Vector2.one;
|
pea.transform.localScale = Vector2.one;
|
||||||
|
|
||||||
pea.transform.localPosition = Vector3.zero;
|
pea.transform.localPosition = Vector3.zero;
|
||||||
pea.transform.localRotation = Quaternion.Euler(0, 0, 90);
|
pea.transform.localRotation = Quaternion.Euler(0, 0, 90);
|
||||||
|
|
||||||
for (int i = 0; i < ForkLifterPlayer.instance.late.transform.childCount; i++)
|
for (int i = 0; i < player.late.transform.childCount; i++)
|
||||||
{
|
{
|
||||||
ForkLifterPlayer.instance.late.transform.GetChild(i).transform.localPosition = new Vector3(0, (-1.67f - (0.15724f * i)) + 0.15724f * ForkLifterPlayer.instance.currentLatePeasOnFork);
|
player.late.transform.GetChild(i).transform.localPosition = new Vector3(0, (-1.67f - (0.15724f * i)) + 0.15724f * player.currentLatePeasOnFork);
|
||||||
}
|
}
|
||||||
|
|
||||||
SpriteRenderer psprite = pea.AddComponent<SpriteRenderer>();
|
SpriteRenderer psprite = pea.AddComponent<SpriteRenderer>();
|
||||||
psprite.sprite = game.peaHitSprites[type];
|
psprite.sprite = game.peaHitSprites[type];
|
||||||
psprite.sortingOrder = 20;
|
psprite.sortingOrder = 20;
|
||||||
ForkLifterPlayer.instance.HitFXMiss(new Vector2(1.0424f, -4.032f), new Vector2(1.129612f, 1.129612f));
|
player.HitFXMiss(new Vector2(1.0424f, -4.032f), new Vector2(1.129612f, 1.129612f));
|
||||||
ForkLifterPlayer.instance.HitFXMiss(new Vector2(0.771f, -3.016f), new Vector2(1.71701f, 1.71701f));
|
player.HitFXMiss(new Vector2(0.771f, -3.016f), new Vector2(1.71701f, 1.71701f));
|
||||||
ForkLifterPlayer.instance.HitFXMiss(new Vector2(2.598f, -2.956f), new Vector2(1.576043f, 1.576043f));
|
player.HitFXMiss(new Vector2(2.598f, -2.956f), new Vector2(1.576043f, 1.576043f));
|
||||||
ForkLifterPlayer.instance.HitFXMiss(new Vector2(2.551f, -3.609f), new Vector2(1.200788f, 1.200788f));
|
player.HitFXMiss(new Vector2(2.551f, -3.609f), new Vector2(1.200788f, 1.200788f));
|
||||||
|
|
||||||
ForkLifterPlayer.instance.FastEffectHit(type);
|
player.FastEffectHit(type);
|
||||||
|
|
||||||
SoundByte.PlayOneShot("miss");
|
SoundByte.PlayOneShot("miss");
|
||||||
|
|
||||||
ForkLifterPlayer.instance.currentLatePeasOnFork++;
|
player.currentLatePeasOnFork++;
|
||||||
Destroy(this.gameObject);
|
Destroy(this.gameObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,16 +161,11 @@ namespace HeavenStudio.Games.Scripts_ForkLifter
|
||||||
|
|
||||||
private void Just(PlayerActionEvent caller, float state)
|
private void Just(PlayerActionEvent caller, float state)
|
||||||
{
|
{
|
||||||
if (state >= 1f)
|
if (state >= 1f) {
|
||||||
{
|
|
||||||
Late();
|
Late();
|
||||||
}
|
} else if (state <= -1f) {
|
||||||
else if (state <= -1f)
|
|
||||||
{
|
|
||||||
Early();
|
Early();
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
Hit();
|
Hit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
new Param("close", GleeClub.MouthOpenClose.Both, "Close/Open Mouth", "Should the chorus kids close/open their mouth?"),
|
new Param("close", GleeClub.MouthOpenClose.Both, "Close/Open Mouth", "Should the chorus kids close/open their mouth?"),
|
||||||
new Param("repeat", false, "Repeating", "Should the left and middle chorus kid repeat this singing cue?", new List<Param.CollapseParam>()
|
new Param("repeat", false, "Repeating", "Should the left and middle chorus kid repeat this singing cue?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "semiTonesLeft2", "semiTonesLeft3", "semiTonesMiddle2" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "semiTonesLeft2", "semiTonesLeft3", "semiTonesMiddle2" })
|
||||||
}),
|
}),
|
||||||
new Param("semiTonesLeft2", new EntityTypes.Integer(-24, 24, 0), "Semitones (Repeat Left First)", "The number of semitones up or down this note should be pitched"),
|
new Param("semiTonesLeft2", new EntityTypes.Integer(-24, 24, 0), "Semitones (Repeat Left First)", "The number of semitones up or down this note should be pitched"),
|
||||||
new Param("semiTonesLeft3", new EntityTypes.Integer(-24, 24, 0), "Semitones (Repeat Left Last)", "The number of semitones up or down this note should be pitched"),
|
new Param("semiTonesLeft3", new EntityTypes.Integer(-24, 24, 0), "Semitones (Repeat Left Last)", "The number of semitones up or down this note should be pitched"),
|
||||||
|
|
|
@ -143,14 +143,14 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("type", KarateMan.LightBulbType.Normal, "Type", "The preset bulb type. Yellow is used for kicks while Blue is used for combos", new List<Param.CollapseParam>()
|
new Param("type", KarateMan.LightBulbType.Normal, "Type", "The preset bulb type. Yellow is used for kicks while Blue is used for combos", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (int)x == (int)KarateMan.LightBulbType.Custom, new string[] { "colorA" })
|
new Param.CollapseParam((x, _) => (int)x == (int)KarateMan.LightBulbType.Custom, new string[] { "colorA" })
|
||||||
}),
|
}),
|
||||||
new Param("colorA", new Color(1f,1f,1f), "Custom Color", "The color to use when the bulb type is set to Custom"),
|
new Param("colorA", new Color(1f,1f,1f), "Custom Color", "The color to use when the bulb type is set to Custom"),
|
||||||
new Param("type2", KarateMan.KarateManFaces.Normal, "Success Expression", "The facial expression to set Joe to on hit"),
|
new Param("type2", KarateMan.KarateManFaces.Normal, "Success Expression", "The facial expression to set Joe to on hit"),
|
||||||
new Param("mute", false, "Mute", "Should the throwing sound be muted?"),
|
new Param("mute", false, "Mute", "Should the throwing sound be muted?"),
|
||||||
new Param("sfx", KarateMan.LightBulbSfx.Automatic, "SFX", "What type of SFX to use for the bulb?", new List<Param.CollapseParam>()
|
new Param("sfx", KarateMan.LightBulbSfx.Automatic, "SFX", "What type of SFX to use for the bulb?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (int)x == (int)KarateMan.LightBulbSfx.Custom, new string[] { "throwSfx", "hitSfx" }),
|
new Param.CollapseParam((x, _) => (int)x == (int)KarateMan.LightBulbSfx.Custom, new string[] { "throwSfx", "hitSfx" }),
|
||||||
}),
|
}),
|
||||||
new Param("throwSfx", "lightbulbOut", "Throw SFX", "Custom throw SFX to use for the bulb"),
|
new Param("throwSfx", "lightbulbOut", "Throw SFX", "Custom throw SFX to use for the bulb"),
|
||||||
new Param("hitSfx", "lightbulbHit", "Hit SFX", "Custom hit SFX to use for the bulb"),
|
new Param("hitSfx", "lightbulbHit", "Hit SFX", "Custom hit SFX to use for the bulb"),
|
||||||
|
@ -176,7 +176,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
new Param("type", KarateMan.KarateManFaces.Smirk, "Success Expression", "The facial expression to set Joe to on hit"),
|
new Param("type", KarateMan.KarateManFaces.Smirk, "Success Expression", "The facial expression to set Joe to on hit"),
|
||||||
new Param("pitchVoice", false, "Pitch Voice", "Pitch the voice of this cue?", new List<Param.CollapseParam>()
|
new Param("pitchVoice", false, "Pitch Voice", "Pitch the voice of this cue?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "forcePitch" }),
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "forcePitch" }),
|
||||||
}),
|
}),
|
||||||
new Param("forcePitch", new EntityTypes.Float(0.5f, 2f, 1f), "Force Pitch", "Override the automatic pitching if not set to 1"),
|
new Param("forcePitch", new EntityTypes.Float(0.5f, 2f, 1f), "Force Pitch", "Override the automatic pitching if not set to 1"),
|
||||||
new Param("cutOut", true, "Cut Out Voice", "Will this cue be cut out by another voice?"),
|
new Param("cutOut", true, "Cut Out Voice", "Will this cue be cut out by another voice?"),
|
||||||
|
@ -203,7 +203,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
new Param("type", KarateMan.KarateManFaces.Happy, "Success Expression", "The facial expression to set Joe to on hit"),
|
new Param("type", KarateMan.KarateManFaces.Happy, "Success Expression", "The facial expression to set Joe to on hit"),
|
||||||
new Param("pitchVoice", false, "Pitch Voice", "Pitch the voice of this cue?", new List<Param.CollapseParam>()
|
new Param("pitchVoice", false, "Pitch Voice", "Pitch the voice of this cue?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "forcePitch" }),
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "forcePitch" }),
|
||||||
}),
|
}),
|
||||||
new Param("forcePitch", new EntityTypes.Float(0.5f, 2f, 1f), "Force Pitch", "Override the automatic pitching if not set to 1"),
|
new Param("forcePitch", new EntityTypes.Float(0.5f, 2f, 1f), "Force Pitch", "Override the automatic pitching if not set to 1"),
|
||||||
new Param("cutOut", true, "Cut Out Voice", "Will this cue be cut out by another voice?"),
|
new Param("cutOut", true, "Cut Out Voice", "Will this cue be cut out by another voice?"),
|
||||||
|
@ -221,11 +221,11 @@ namespace HeavenStudio.Games.Loaders
|
||||||
parameters = new List<Param>()
|
parameters = new List<Param>()
|
||||||
{
|
{
|
||||||
new Param("whichWarning", KarateMan.HitThree.HitThree, "Which Warning", "The warning text to show and the sfx to play"),
|
new Param("whichWarning", KarateMan.HitThree.HitThree, "Which Warning", "The warning text to show and the sfx to play"),
|
||||||
new Param("pitchVoice", false, "Pitch Voice", "Pitch the voice of this cue?", new List<Param.CollapseParam>()
|
new Param("pitchVoice", false, "Auto Pitch Voice", "Pitch the voice of this cue depending on the BPM", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "forcePitch" }),
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "forcePitch" }),
|
||||||
}),
|
}),
|
||||||
new Param("forcePitch", new EntityTypes.Float(0.5f, 2f, 1f), "Force Pitch", "Override the automatic pitching if not set to 1"),
|
new Param("forcePitch", new EntityTypes.Float(0.5f, 2f, 1f), "Force Pitch", "Pitch the voice of this cue depending on the value"),
|
||||||
new Param("customLength", false, "Custom Length", "Have the warning text appear for the length of the block"),
|
new Param("customLength", false, "Custom Length", "Have the warning text appear for the length of the block"),
|
||||||
new Param("cutOut", true, "Cut Out Voice", "Will this cue be cut out by another voice?"),
|
new Param("cutOut", true, "Cut Out Voice", "Will this cue be cut out by another voice?"),
|
||||||
},
|
},
|
||||||
|
@ -259,7 +259,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
new Param("fxType", KarateMan.BackgroundFXType.None, "FX Type", "The background effect to be displayed"),
|
new Param("fxType", KarateMan.BackgroundFXType.None, "FX Type", "The background effect to be displayed"),
|
||||||
new Param("type", KarateMan.NoriMode.None, "Flow Bar type", "The type of Flow bar to use", new List<Param.CollapseParam>()
|
new Param("type", KarateMan.NoriMode.None, "Flow Bar type", "The type of Flow bar to use", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (int)x != (int)KarateMan.NoriMode.None, new string[] { "startColor" })
|
new Param.CollapseParam((x, _) => (int)x != (int)KarateMan.NoriMode.None, new string[] { "startColor" })
|
||||||
}),
|
}),
|
||||||
new Param("hitsPerHeart", new EntityTypes.Float(0f, 20f, 0f), "Hits Per Heart", "How many hits will it take for each heart to light up? (0 will do it automatically.)"),
|
new Param("hitsPerHeart", new EntityTypes.Float(0f, 20f, 0f), "Hits Per Heart", "How many hits will it take for each heart to light up? (0 will do it automatically.)"),
|
||||||
new Param("toggle", true, "Enable Combos", "Allow the player to combo? (Contextual combos will still be allowed even when off)"),
|
new Param("toggle", true, "Enable Combos", "Allow the player to combo? (Contextual combos will still be allowed even when off)"),
|
||||||
|
@ -285,34 +285,31 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("presetBg", KarateMan.BackgroundType.Yellow, "Preset BG Color", "The preset background type (will by default fade from the existing background color)", new List<Param.CollapseParam>()
|
new Param("presetBg", KarateMan.BackgroundType.Yellow, "Preset BG Color", "The preset background type (will by default fade from the existing background color)", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (int)x == (int)KarateMan.BackgroundType.Custom, new string[] { "startColor", "endColor" })
|
new Param.CollapseParam((x, _) => (int)x == (int)KarateMan.BackgroundType.Custom, new string[] { "startColor", "endColor" }),
|
||||||
}),
|
}),
|
||||||
new Param("startColor", new Color(0.985f, 0.79f, 0.243f), "Start BG Color", "The background color to start with"),
|
new Param("startColor", new Color(0.985f, 0.79f, 0.243f), "Start BG Color", "The background color to start with"),
|
||||||
new Param("endColor", new Color(0.985f, 0.79f, 0.243f), "End BG Color", "The background color to end with"),
|
new Param("endColor", new Color(0.985f, 0.79f, 0.243f), "End BG Color", "The background color to end with"),
|
||||||
new Param("ease", Util.EasingFunction.Ease.Instant, "BG Color Ease", "Ease to use when fading color", new List<Param.CollapseParam>()
|
new Param("ease", Util.EasingFunction.Ease.Instant, "BG Color Ease", "Ease to use when fading color"),
|
||||||
{
|
|
||||||
//new Param.CollapseParam(x => (int)x != (int)Util.EasingFunction.Ease.Instant, new string[] { "startColor" })
|
|
||||||
}),
|
|
||||||
new Param("shadowType", KarateMan.ShadowType.Tinted, "Shadow Type", "The shadow type. If Tinted doesn't work with your background color try Custom", new List<Param.CollapseParam>()
|
new Param("shadowType", KarateMan.ShadowType.Tinted, "Shadow Type", "The shadow type. If Tinted doesn't work with your background color try Custom", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (int)x == (int)KarateMan.ShadowType.Custom, new string[] { "shadowStart", "shadowEnd" }),
|
new Param.CollapseParam((x, _) => (int)x == (int)KarateMan.ShadowType.Custom, new string[] { "shadowStart", "shadowEnd" }),
|
||||||
}),
|
}),
|
||||||
new Param("shadowStart", new Color(), "Start Shadow Color", "The shadow color to start with"),
|
new Param("shadowStart", new Color(), "Start Shadow Color", "The shadow color to start with"),
|
||||||
new Param("shadowEnd", new Color(), "End Shadow Color", "The shadow color to end with"),
|
new Param("shadowEnd", new Color(), "End Shadow Color", "The shadow color to end with"),
|
||||||
|
|
||||||
new Param("textureType", KarateMan.BackgroundTextureType.Plain, "Texture", "The type of background texture to use", new List<Param.CollapseParam>()
|
new Param("textureType", KarateMan.BackgroundTextureType.Plain, "Texture", "The type of background texture to use", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (int)x != (int)KarateMan.BackgroundTextureType.Plain, new string[] { "startTexture", "endTexture" })
|
new Param.CollapseParam((x, _) => (int)x != (int)KarateMan.BackgroundTextureType.Plain, new string[] { "startTexture", "endTexture" })
|
||||||
}),
|
}),
|
||||||
new Param("autoColor", true, "Use BG Color For Texture", "Use a tint of the background color for the texture?", new List<Param.CollapseParam>()
|
new Param("autoColor", true, "Use BG Color For Texture", "Use a tint of the background color for the texture?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
//new Param.CollapseParam(x => (int)x != (int)KarateMan.ShadowType.Tinted, new string[] { "startTexture", "endTexture" })
|
new Param.CollapseParam((x, _) => !(bool)x, new string[] { "startTexture", "endTexture" })
|
||||||
}),
|
}),
|
||||||
new Param("startTexture", new Color(), "Start Texture Color", "The texture color to start with"),
|
new Param("startTexture", new Color(), "Start Texture Color", "The texture color to start with"),
|
||||||
new Param("endTexture", new Color(), "End Texture Color", "The texture color to end with"),
|
new Param("endTexture", new Color(), "End Texture Color", "The texture color to end with"),
|
||||||
new Param("fxType", new EntityTypes.Integer(0, 3, 3), "Check Tooltip", "Ping @AstrlJelly on discord if you see this; it should be hidden.", new List<Param.CollapseParam>()
|
new Param("fxType", new EntityTypes.Integer(0, 3, 3), "Check Tooltip", "Ping @AstrlJelly on discord if you see this; it should be hidden.", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => false, new string[] { "fxType" })
|
new Param.CollapseParam((x, _) => false, new string[] { "fxType" })
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -607,7 +604,7 @@ namespace HeavenStudio.Games
|
||||||
colorStarts = new Color[] {
|
colorStarts = new Color[] {
|
||||||
BackgroundColors[0],
|
BackgroundColors[0],
|
||||||
TintColor(BackgroundColors[0]),
|
TintColor(BackgroundColors[0]),
|
||||||
new(),
|
new Color(),
|
||||||
};
|
};
|
||||||
|
|
||||||
Update();
|
Update();
|
||||||
|
@ -746,9 +743,6 @@ namespace HeavenStudio.Games
|
||||||
BackgroundColorUpdate();
|
BackgroundColorUpdate();
|
||||||
GameCamera.additionalPosition = cameraPosition - GameCamera.defaultPosition;
|
GameCamera.additionalPosition = cameraPosition - GameCamera.defaultPosition;
|
||||||
BGEffect.transform.position = new Vector3(GameCamera.instance.transform.position.x, GameCamera.instance.transform.position.y, 0);
|
BGEffect.transform.position = new Vector3(GameCamera.instance.transform.position.x, GameCamera.instance.transform.position.y, 0);
|
||||||
|
|
||||||
Debug.Log("GameCamera.additionalPosition : " + GameCamera.additionalPosition);
|
|
||||||
Debug.Log("cameraPosition : " + cameraPosition);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnDestroy()
|
private void OnDestroy()
|
||||||
|
@ -783,7 +777,7 @@ namespace HeavenStudio.Games
|
||||||
Word.Play(DoWordSound(beat, length, type, pitchVoice, forcePitch, customLength, doSound));
|
Word.Play(DoWordSound(beat, length, type, pitchVoice, forcePitch, customLength, doSound));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string DoWordSound(double beat, double length, int type, bool pitchVoice = false, float forcePitch = 1, bool customLength = false, bool doSound = true)
|
public static string DoWordSound(double beat, double length, int type, bool bpmPitch = false, float forcePitch = 1, bool customLength = false, bool doSound = true)
|
||||||
{
|
{
|
||||||
double clear = type switch {
|
double clear = type switch {
|
||||||
<= (int)HitThree.HitFour => beat + 4f,
|
<= (int)HitThree.HitFour => beat + 4f,
|
||||||
|
@ -799,9 +793,7 @@ namespace HeavenStudio.Games
|
||||||
new MultiSound.Sound($"karateman/{(type == (int)HitThree.HitThreeAlt ? "hitAlt" : "hit")}", beat + 0.5f, offset: 0.042f),
|
new MultiSound.Sound($"karateman/{(type == (int)HitThree.HitThreeAlt ? "hitAlt" : "hit")}", beat + 0.5f, offset: 0.042f),
|
||||||
new MultiSound.Sound($"karateman/{number}", beat + 1f),
|
new MultiSound.Sound($"karateman/{number}", beat + 1f),
|
||||||
};
|
};
|
||||||
if (pitchVoice) {
|
Array.ForEach(sounds, x => x.pitch = bpmPitch ? Conductor.instance.GetBpmAtBeat(x.beat) / 125 : forcePitch);
|
||||||
Array.ForEach(sounds, x => x.pitch = (forcePitch == 1) ? Conductor.instance.GetBpmAtBeat(x.beat) / 125 : forcePitch);
|
|
||||||
}
|
|
||||||
MultiSound.Play(sounds, forcePlay: true);
|
MultiSound.Play(sounds, forcePlay: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -891,7 +883,7 @@ namespace HeavenStudio.Games
|
||||||
SoundByte.PlayOneShotGame("karateman/barrelOutCombos", forcePlay: true);
|
SoundByte.PlayOneShotGame("karateman/barrelOutCombos", forcePlay: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Combo(double beat, int expression, bool pitchVoice, float forcePitch, bool cutOut, bool noVoice)
|
public void Combo(double beat, int expression, bool bpmPitch, float forcePitch, bool cutOut, bool noVoice)
|
||||||
{
|
{
|
||||||
int comboId = KarateManPot.GetNewCombo();
|
int comboId = KarateManPot.GetNewCombo();
|
||||||
|
|
||||||
|
@ -916,10 +908,6 @@ namespace HeavenStudio.Games
|
||||||
new MultiSound.Sound("karateman/pow", beat + 2.5f)
|
new MultiSound.Sound("karateman/pow", beat + 2.5f)
|
||||||
};
|
};
|
||||||
|
|
||||||
if (pitchVoice) {
|
|
||||||
sounds.ForEach(x => x.pitch = (forcePitch == 1) ? Conductor.instance.GetBpmAtBeat(x.beat) / 125 : forcePitch);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (voiceEntities.Count > 0 && cutOut)
|
if (voiceEntities.Count > 0 && cutOut)
|
||||||
{
|
{
|
||||||
RiqEntity firstVoice = voiceEntities.Find(x => x.beat >= beat + 1);
|
RiqEntity firstVoice = voiceEntities.Find(x => x.beat >= beat + 1);
|
||||||
|
@ -928,6 +916,8 @@ namespace HeavenStudio.Games
|
||||||
if (firstHitVoice != null) sounds.RemoveAll(x => x.beat > firstHitVoice.beat - 0.5);
|
if (firstHitVoice != null) sounds.RemoveAll(x => x.beat > firstHitVoice.beat - 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sounds.ForEach(x => x.pitch = bpmPitch ? Conductor.instance.GetBpmAtBeat(x.beat) / 125 : forcePitch);
|
||||||
|
|
||||||
MultiSound.Play(sounds.ToArray(), forcePlay: true);
|
MultiSound.Play(sounds.ToArray(), forcePlay: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -936,7 +926,7 @@ namespace HeavenStudio.Games
|
||||||
SoundByte.PlayOneShotGame("karateman/barrelOutKicks", forcePlay: true);
|
SoundByte.PlayOneShotGame("karateman/barrelOutKicks", forcePlay: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Kick(double beat, bool ball, bool glow, int expression, bool pitchVoice, float forcePitch, bool cutOut, bool noVoice, Color woodColor, Color hoopColor)
|
public void Kick(double beat, bool ball, bool glow, int expression, bool bpmPitch, float forcePitch, bool cutOut, bool noVoice, Color woodColor, Color hoopColor)
|
||||||
{
|
{
|
||||||
var barrel = CreateItemInstance(beat, "Item05", expression, KarateManPot.ItemType.KickBarrel, content: ball, shouldGlow: glow);
|
var barrel = CreateItemInstance(beat, "Item05", expression, KarateManPot.ItemType.KickBarrel, content: ball, shouldGlow: glow);
|
||||||
// red : new Color(0.451f, 0.302f, 0.271f)
|
// red : new Color(0.451f, 0.302f, 0.271f)
|
||||||
|
@ -954,10 +944,6 @@ namespace HeavenStudio.Games
|
||||||
new MultiSound.Sound("karateman/punchKick4", beat + 2.5f),
|
new MultiSound.Sound("karateman/punchKick4", beat + 2.5f),
|
||||||
};
|
};
|
||||||
|
|
||||||
if (pitchVoice) {
|
|
||||||
sounds.ForEach(x => x.pitch = (forcePitch == 1) ? Conductor.instance.GetBpmAtBeat(x.beat) / 125 : forcePitch);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (voiceEntities.Count > 0 && cutOut)
|
if (voiceEntities.Count > 0 && cutOut)
|
||||||
{
|
{
|
||||||
RiqEntity firstVoice = voiceEntities.Find(x => x.beat >= beat + 1);
|
RiqEntity firstVoice = voiceEntities.Find(x => x.beat >= beat + 1);
|
||||||
|
@ -966,6 +952,8 @@ namespace HeavenStudio.Games
|
||||||
if (firstHitVoice != null) sounds.RemoveAll(x => x.beat > firstHitVoice.beat);
|
if (firstHitVoice != null) sounds.RemoveAll(x => x.beat > firstHitVoice.beat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sounds.ForEach(x => x.pitch = bpmPitch ? Conductor.instance.GetBpmAtBeat(x.beat) / 125 : forcePitch);
|
||||||
|
|
||||||
MultiSound.Play(sounds.ToArray(), forcePlay: true);
|
MultiSound.Play(sounds.ToArray(), forcePlay: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -997,6 +985,7 @@ namespace HeavenStudio.Games
|
||||||
|
|
||||||
bool preset = presetBG != (int)BackgroundType.Custom;
|
bool preset = presetBG != (int)BackgroundType.Custom;
|
||||||
bool tinted = shadowType == (int)ShadowType.Tinted;
|
bool tinted = shadowType == (int)ShadowType.Tinted;
|
||||||
|
|
||||||
Color bgColorStart = preset ? BGPlane.color : colorStart;
|
Color bgColorStart = preset ? BGPlane.color : colorStart;
|
||||||
colorStarts = new Color[] {
|
colorStarts = new Color[] {
|
||||||
bgColorStart,
|
bgColorStart,
|
||||||
|
|
|
@ -123,7 +123,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("toggle", true, "Stars Enabled", "Starfall Or No?", new List<Param.CollapseParam>()
|
new Param("toggle", true, "Stars Enabled", "Starfall Or No?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "valA", "valB", "valC"})
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "valA", "valB", "valC"})
|
||||||
}),
|
}),
|
||||||
new Param("valA", new EntityTypes.Float(0.1f, 10f, 1f), "Star Density", "How many stars are on the screen"),
|
new Param("valA", new EntityTypes.Float(0.1f, 10f, 1f), "Star Density", "How many stars are on the screen"),
|
||||||
new Param("valB", new EntityTypes.Float(0.01f, 5f, 0.1f), "Front Star Fall Speed", "How fast the front stars fall to the edge of the screen"),
|
new Param("valB", new EntityTypes.Float(0.01f, 5f, 0.1f), "Front Star Fall Speed", "How fast the front stars fall to the edge of the screen"),
|
||||||
|
|
|
@ -36,7 +36,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("sound", false, "Sound", "Hai if onbeat, ho if offbeat.", new List<Param.CollapseParam>()
|
new Param("sound", false, "Sound", "Hai if onbeat, ho if offbeat.", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "amount" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "amount" })
|
||||||
}),
|
}),
|
||||||
new Param("amount", new EntityTypes.Integer(1, 50, 1), "Sound Amount", "How many sounds will play consecutively?"),
|
new Param("amount", new EntityTypes.Integer(1, 50, 1), "Sound Amount", "How many sounds will play consecutively?"),
|
||||||
new Param("visual", true, "Background Visual")
|
new Param("visual", true, "Background Visual")
|
||||||
|
@ -106,7 +106,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("sound", false, "Sound", "Hai if onbeat, ho if offbeat.", new List<Param.CollapseParam>()
|
new Param("sound", false, "Sound", "Hai if onbeat, ho if offbeat.", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "amount" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "amount" })
|
||||||
}),
|
}),
|
||||||
new Param("amount", new EntityTypes.Integer(1, 50, 1), "Sound Amount", "How many sounds will play consecutively?"),
|
new Param("amount", new EntityTypes.Integer(1, 50, 1), "Sound Amount", "How many sounds will play consecutively?"),
|
||||||
new Param("visual", true, "Background Visual")
|
new Param("visual", true, "Background Visual")
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace HeavenStudio.Games.Scripts_OctopusMachine
|
||||||
public bool cantBop;
|
public bool cantBop;
|
||||||
public bool isSqueezed;
|
public bool isSqueezed;
|
||||||
public bool isPreparing;
|
public bool isPreparing;
|
||||||
public bool queuePrepare;
|
public double queuePrepare;
|
||||||
public double lastReportedBeat = 0f;
|
public double lastReportedBeat = 0f;
|
||||||
double lastSqueezeBeat;
|
double lastSqueezeBeat;
|
||||||
bool isActive = true;
|
bool isActive = true;
|
||||||
|
@ -25,16 +25,17 @@ namespace HeavenStudio.Games.Scripts_OctopusMachine
|
||||||
void Awake()
|
void Awake()
|
||||||
{
|
{
|
||||||
game = OctopusMachine.instance;
|
game = OctopusMachine.instance;
|
||||||
|
queuePrepare = double.MaxValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
if (queuePrepare && Conductor.instance.NotStopped()) {
|
if (queuePrepare <= Conductor.instance.songPositionInBeatsAsDouble && Conductor.instance.NotStopped()) {
|
||||||
if (!(isPreparing || isSqueezed || anim.IsPlayingAnimationName("Release") || anim.IsPlayingAnimationName("Pop")))
|
if (!(isPreparing || isSqueezed || anim.IsPlayingAnimationName("Release") || anim.IsPlayingAnimationName("Pop")))
|
||||||
{
|
{
|
||||||
anim.DoScaledAnimationAsync("Prepare", 0.5f);
|
anim.DoScaledAnimationFromBeatAsync("Prepare", 0.5f, queuePrepare);
|
||||||
isPreparing = true;
|
isPreparing = true;
|
||||||
queuePrepare = false;
|
queuePrepare = double.MaxValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,9 +105,9 @@ namespace HeavenStudio.Games.Scripts_OctopusMachine
|
||||||
if (action == "Squeeze") lastSqueezeBeat = Conductor.instance.songPositionInBeatsAsDouble;
|
if (action == "Squeeze") lastSqueezeBeat = Conductor.instance.songPositionInBeatsAsDouble;
|
||||||
|
|
||||||
anim.DoScaledAnimationAsync(action, 0.5f);
|
anim.DoScaledAnimationAsync(action, 0.5f);
|
||||||
isSqueezed = (action == "Squeeze");
|
isSqueezed = action == "Squeeze";
|
||||||
isPreparing =
|
isPreparing = false;
|
||||||
queuePrepare = false;
|
queuePrepare = double.MaxValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AnimationColor(int poppingColor)
|
public void AnimationColor(int poppingColor)
|
||||||
|
|
|
@ -44,14 +44,14 @@ namespace HeavenStudio.Games.Loaders
|
||||||
parameters = new List<Param>() {
|
parameters = new List<Param>() {
|
||||||
new Param("shouldPrep", true, "Prepare?", "Plays a prepare animation before the cue.", new List<Param.CollapseParam>()
|
new Param("shouldPrep", true, "Prepare?", "Plays a prepare animation before the cue.", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "prepBeats" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "prepBeats" })
|
||||||
}),
|
}),
|
||||||
new Param("prepBeats", new EntityTypes.Float(0, 4, 1), "Prepare Beats", "How many beats before the cue does the octopus prepare?"),
|
new Param("prepBeats", new EntityTypes.Float(0, 4, 1), "Prepare Beats", "How many beats before the cue does the octopus prepare?"),
|
||||||
},
|
},
|
||||||
preFunctionLength = 4f,
|
preFunctionLength = 4f,
|
||||||
preFunction = delegate {
|
preFunction = delegate {
|
||||||
var e = eventCaller.currentEntity;
|
var e = eventCaller.currentEntity;
|
||||||
if (e["shouldPrep"]) OctopusMachine.Prepare(e.beat, e["prepBeats"]);
|
if (e["shouldPrep"]) OctopusMachine.queuePrepare = e.beat - e["prepBeats"];
|
||||||
},
|
},
|
||||||
priority = 1,
|
priority = 1,
|
||||||
},
|
},
|
||||||
|
@ -84,7 +84,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
new Param("autoBop", true, "Hit/Miss Bop", "Plays a bop depending on if you hit or missed the cues."),
|
new Param("autoBop", true, "Hit/Miss Bop", "Plays a bop depending on if you hit or missed the cues."),
|
||||||
new Param("autoText", true, "Display Text", "Displays text depending on if you hit or missed the cues.", new List<Param.CollapseParam>()
|
new Param("autoText", true, "Display Text", "Displays text depending on if you hit or missed the cues.", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "hitText", "missText" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "hitText", "missText" })
|
||||||
}),
|
}),
|
||||||
new Param("hitText", "Good!", "Hit Text", "The text to display if you hit the cues."),
|
new Param("hitText", "Good!", "Hit Text", "The text to display if you hit the cues."),
|
||||||
new Param("missText", "Wrong! Try again!", "Miss Text", "The text to display if you missed the cues."),
|
new Param("missText", "Wrong! Try again!", "Miss Text", "The text to display if you missed the cues."),
|
||||||
|
@ -96,7 +96,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
},
|
},
|
||||||
new GameAction("prepare", "Prepare")
|
new GameAction("prepare", "Prepare")
|
||||||
{
|
{
|
||||||
function = delegate { OctopusMachine.queuePrepare = true; },
|
function = delegate { OctopusMachine.queuePrepare = eventCaller.currentEntity.beat; },
|
||||||
defaultLength = 0.5f,
|
defaultLength = 0.5f,
|
||||||
},
|
},
|
||||||
new GameAction("bubbles", "Bubbles")
|
new GameAction("bubbles", "Bubbles")
|
||||||
|
@ -109,7 +109,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
new Param("isInstant", true, "Instant", "Will the bubbles disappear appear?"),
|
new Param("isInstant", true, "Instant", "Will the bubbles disappear appear?"),
|
||||||
new Param("setActive", OctopusMachine.Actives.Activate, "Activate or Deactivate", "Will the bubbles disappear or appear?", new List<Param.CollapseParam>()
|
new Param("setActive", OctopusMachine.Actives.Activate, "Activate or Deactivate", "Will the bubbles disappear or appear?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (int)x == (int)OctopusMachine.Actives.Activate, new string[] { "particleStrength" })
|
new Param.CollapseParam((x, _) => (int)x == (int)OctopusMachine.Actives.Activate, new string[] { "particleStrength" })
|
||||||
}),
|
}),
|
||||||
new Param("particleStrength", new EntityTypes.Float(0, 25, 3), "Bubble Intensity", "The amount of bubbles"),
|
new Param("particleStrength", new EntityTypes.Float(0, 25, 3), "Bubble Intensity", "The amount of bubbles"),
|
||||||
new Param("particleSpeed", new EntityTypes.Float(0, 25, 5), "Bubble Speed", "The speed of the bubbles"),
|
new Param("particleSpeed", new EntityTypes.Float(0, 25, 5), "Bubble Speed", "The speed of the bubbles"),
|
||||||
|
@ -150,19 +150,19 @@ namespace HeavenStudio.Games.Loaders
|
||||||
parameters = new List<Param>() {
|
parameters = new List<Param>() {
|
||||||
new Param("oct1", true, "Show Octopus 1", "Should the first octopus be enabled?", new List<Param.CollapseParam>()
|
new Param("oct1", true, "Show Octopus 1", "Should the first octopus be enabled?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "oct1x", "oct1y" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "oct1x", "oct1y" })
|
||||||
}),
|
}),
|
||||||
new Param("oct1x", new EntityTypes.Float(-10, 10, -4.64f), "X Octopus 1", "Change Octopus 1's X"),
|
new Param("oct1x", new EntityTypes.Float(-10, 10, -4.64f), "X Octopus 1", "Change Octopus 1's X"),
|
||||||
new Param("oct1y", new EntityTypes.Float(-10, 10, 2.5f), "Y Octopus 1", "Change Octopus 1's Y"),
|
new Param("oct1y", new EntityTypes.Float(-10, 10, 2.5f), "Y Octopus 1", "Change Octopus 1's Y"),
|
||||||
new Param("oct2", true, "Show Octopus 2", "Should the second octopus be enabled?", new List<Param.CollapseParam>()
|
new Param("oct2", true, "Show Octopus 2", "Should the second octopus be enabled?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "oct2x", "oct2y" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "oct2x", "oct2y" })
|
||||||
}),
|
}),
|
||||||
new Param("oct2x", new EntityTypes.Float(-10, 10, -0.637f), "X Octopus 2", "Change Octopus 2's X"),
|
new Param("oct2x", new EntityTypes.Float(-10, 10, -0.637f), "X Octopus 2", "Change Octopus 2's X"),
|
||||||
new Param("oct2y", new EntityTypes.Float(-10, 10, 0f), "Y Octopus 2", "Change Octopus 2's Y"),
|
new Param("oct2y", new EntityTypes.Float(-10, 10, 0f), "Y Octopus 2", "Change Octopus 2's Y"),
|
||||||
new Param("oct3", true, "Show Octopus 3", "Should the third octopus be enabled?", new List<Param.CollapseParam>()
|
new Param("oct3", true, "Show Octopus 3", "Should the third octopus be enabled?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "oct3x", "oct3y" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "oct3x", "oct3y" })
|
||||||
}),
|
}),
|
||||||
new Param("oct3x", new EntityTypes.Float(-10, 10, 3.363f), "X Octopus 3", "Change Octopus 3's X"),
|
new Param("oct3x", new EntityTypes.Float(-10, 10, 3.363f), "X Octopus 3", "Change Octopus 3's X"),
|
||||||
new Param("oct3y", new EntityTypes.Float(-10, 10, -2.5f), "Y Octopus 3", "Change Octopus 3's Y"),
|
new Param("oct3y", new EntityTypes.Float(-10, 10, -2.5f), "Y Octopus 3", "Change Octopus 3's Y"),
|
||||||
|
@ -196,7 +196,7 @@ namespace HeavenStudio.Games
|
||||||
static Color backgroundColor = new Color(1, 0.87f, 0.24f);
|
static Color backgroundColor = new Color(1, 0.87f, 0.24f);
|
||||||
public static Color octopodesColor = new Color(0.97f, 0.235f, 0.54f);
|
public static Color octopodesColor = new Color(0.97f, 0.235f, 0.54f);
|
||||||
public static Color octopodesSqueezedColor = new Color(1f, 0f, 0f);
|
public static Color octopodesSqueezedColor = new Color(1f, 0f, 0f);
|
||||||
public static bool queuePrepare;
|
public static double queuePrepare = double.MaxValue;
|
||||||
|
|
||||||
[Header("Variables")]
|
[Header("Variables")]
|
||||||
public bool hasMissed;
|
public bool hasMissed;
|
||||||
|
@ -243,6 +243,7 @@ namespace HeavenStudio.Games
|
||||||
if (queuedSqueezes.Count > 0) queuedSqueezes.Clear();
|
if (queuedSqueezes.Count > 0) queuedSqueezes.Clear();
|
||||||
if (queuedReleases.Count > 0) queuedReleases.Clear();
|
if (queuedReleases.Count > 0) queuedReleases.Clear();
|
||||||
if (queuedPops.Count > 0) queuedPops.Clear();
|
if (queuedPops.Count > 0) queuedPops.Clear();
|
||||||
|
queuePrepare = double.MaxValue;
|
||||||
|
|
||||||
mat.SetColor("_ColorAlpha", new Color(0.97f, 0.235f, 0.54f));
|
mat.SetColor("_ColorAlpha", new Color(0.97f, 0.235f, 0.54f));
|
||||||
|
|
||||||
|
@ -255,10 +256,10 @@ namespace HeavenStudio.Games
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
BackgroundColorUpdate();
|
BackgroundColorUpdate();
|
||||||
if (queuePrepare) {
|
if (queuePrepare <= Conductor.instance.songPositionInBeatsAsDouble) {
|
||||||
foreach (var octo in octopodes) octo.queuePrepare = true;
|
foreach (var octo in octopodes) octo.queuePrepare = queuePrepare;
|
||||||
if (Text.text is "Wrong! Try Again!" or "Good!") Text.text = "";
|
if (Text.text is "Wrong! Try Again!" or "Good!") Text.text = "";
|
||||||
queuePrepare = false;
|
queuePrepare = double.MaxValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Conductor.instance.ReportBeat(ref lastReportedBeat))
|
if (Conductor.instance.ReportBeat(ref lastReportedBeat))
|
||||||
|
@ -273,19 +274,6 @@ namespace HeavenStudio.Games
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Prepare(double beat, float prepBeats)
|
|
||||||
{
|
|
||||||
if (GameManager.instance.currentGame != "octopusMachine") {
|
|
||||||
OctopusMachine.queuePrepare = true;
|
|
||||||
} else {
|
|
||||||
BeatAction.New(instance, new List<BeatAction.Action>() {
|
|
||||||
new BeatAction.Action(beat - prepBeats, delegate {
|
|
||||||
OctopusMachine.queuePrepare = true;
|
|
||||||
})
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void ChangeText(string text, string youText)
|
public void ChangeText(string text, string youText)
|
||||||
{
|
{
|
||||||
Text.text = text;
|
Text.text = text;
|
||||||
|
@ -312,7 +300,7 @@ namespace HeavenStudio.Games
|
||||||
|
|
||||||
var main = bubble.main;
|
var main = bubble.main;
|
||||||
main.prewarm = isInstant;
|
main.prewarm = isInstant;
|
||||||
main.simulationSpeed = particleSpeed/10;
|
main.simulationSpeed = particleSpeed / 10;
|
||||||
|
|
||||||
var emm = bubble.emission;
|
var emm = bubble.emission;
|
||||||
emm.rateOverTime = particleStrength;
|
emm.rateOverTime = particleStrength;
|
||||||
|
@ -328,9 +316,15 @@ namespace HeavenStudio.Games
|
||||||
if (!intervalStarted) StartInterval(beat, length);
|
if (!intervalStarted) StartInterval(beat, length);
|
||||||
octopodes[0].OctoAction(action);
|
octopodes[0].OctoAction(action);
|
||||||
|
|
||||||
var queuedList = queuedSqueezes;
|
// var queuedList = queuedSqueezes;
|
||||||
if (action == "Release") queuedList = queuedReleases;
|
// if (action == "Release") queuedList = queuedReleases;
|
||||||
else if (action == "Pop") queuedList = queuedPops;
|
// else if (action == "Pop") queuedList = queuedPops;
|
||||||
|
|
||||||
|
var queuedList = action switch {
|
||||||
|
"Release" => queuedReleases,
|
||||||
|
"Pop" => queuedPops,
|
||||||
|
_ => queuedSqueezes,
|
||||||
|
};
|
||||||
|
|
||||||
queuedList.Add(beat - intervalStartBeat);
|
queuedList.Add(beat - intervalStartBeat);
|
||||||
}
|
}
|
||||||
|
@ -379,12 +373,9 @@ namespace HeavenStudio.Games
|
||||||
//call this in OnPlay(double beat) and OnGameSwitch(double beat)
|
//call this in OnPlay(double beat) and OnGameSwitch(double beat)
|
||||||
private void PersistColor(double beat)
|
private void PersistColor(double beat)
|
||||||
{
|
{
|
||||||
var allEventsBeforeBeat = EventCaller.GetAllInGameManagerList("octopusMachine", new string[] { "changeColor" }).FindAll(x => x.beat < beat);
|
var bgColor = GameManager.instance.Beatmap.Entities.FindLast(c => c.datamodel == "octopusMachine/changeColor" && c.beat < beat);
|
||||||
if (allEventsBeforeBeat.Count > 0)
|
if (bgColor != null) {
|
||||||
{
|
BackgroundColor(bgColor.beat, bgColor.length, bgColor["color1"], bgColor["color2"], bgColor["octoColor"], bgColor["squeezedColor"], bgColor["ease"]);
|
||||||
allEventsBeforeBeat.Sort((x, y) => x.beat.CompareTo(y.beat)); //just in case
|
|
||||||
var lastEvent = allEventsBeforeBeat[^1];
|
|
||||||
BackgroundColor(lastEvent.beat, lastEvent.length, lastEvent["color1"], lastEvent["color2"], lastEvent["octoColor"], lastEvent["squeezedColor"], lastEvent["ease"]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("auto", true, "Auto Pass Turn", "", new List<Param.CollapseParam>()
|
new Param("auto", true, "Auto Pass Turn", "", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "sound", "con", "visual", "audio" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "sound", "con", "visual", "audio" })
|
||||||
}),
|
}),
|
||||||
new Param("sound", true, "Play Time-Up Sound?", "Should the Time-Up sound play at the end of the interval?"),
|
new Param("sound", true, "Play Time-Up Sound?", "Should the Time-Up sound play at the end of the interval?"),
|
||||||
new Param("con", false, "Consecutive", "Disables everything that happens at the end of the interval if ticked on."),
|
new Param("con", false, "Consecutive", "Disables everything that happens at the end of the interval if ticked on."),
|
||||||
|
|
|
@ -21,7 +21,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("high", false, "High", "Will they perform high jumps?", new List<Param.CollapseParam>()
|
new Param("high", false, "High", "Will they perform high jumps?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "height", "camMove" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "height", "camMove" })
|
||||||
}),
|
}),
|
||||||
new Param("height", new EntityTypes.Float(0, 1, 0), "Height", "Controls how high the high jump will go, 0 is the minimum height, 1 is the maximum height."),
|
new Param("height", new EntityTypes.Float(0, 1, 0), "Height", "Controls how high the high jump will go, 0 is the minimum height, 1 is the maximum height."),
|
||||||
new Param("camMove", true, "Camera Movement", "Will the camera follow saw when it jumps up high?")
|
new Param("camMove", true, "Camera Movement", "Will the camera follow saw when it jumps up high?")
|
||||||
|
@ -35,7 +35,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("high", false, "High", "Will they perform high jumps?", new List<Param.CollapseParam>()
|
new Param("high", false, "High", "Will they perform high jumps?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "height", "camMove" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "height", "camMove" })
|
||||||
}),
|
}),
|
||||||
new Param("height", new EntityTypes.Float(0, 1, 0), "Height", "Controls how high the high jump will go, 0 is the minimum height, 1 is the maximum height."),
|
new Param("height", new EntityTypes.Float(0, 1, 0), "Height", "Controls how high the high jump will go, 0 is the minimum height, 1 is the maximum height."),
|
||||||
new Param("camMove", true, "Camera Movement", "Will the camera follow saw when it jumps up high?")
|
new Param("camMove", true, "Camera Movement", "Will the camera follow saw when it jumps up high?")
|
||||||
|
@ -49,7 +49,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("high", false, "High", "Will they perform high jumps?", new List<Param.CollapseParam>()
|
new Param("high", false, "High", "Will they perform high jumps?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "height", "camMove" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "height", "camMove" })
|
||||||
}),
|
}),
|
||||||
new Param("height", new EntityTypes.Float(0, 1, 0), "Height", "Controls how high the high jump will go, 0 is the minimum height, 1 is the maximum height."),
|
new Param("height", new EntityTypes.Float(0, 1, 0), "Height", "Controls how high the high jump will go, 0 is the minimum height, 1 is the maximum height."),
|
||||||
new Param("camMove", true, "Camera Movement", "Will the camera follow saw when it jumps up high?")
|
new Param("camMove", true, "Camera Movement", "Will the camera follow saw when it jumps up high?")
|
||||||
|
@ -63,7 +63,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("high", false, "High", "Will they perform high jumps?", new List<Param.CollapseParam>()
|
new Param("high", false, "High", "Will they perform high jumps?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "height", "camMove" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "height", "camMove" })
|
||||||
}),
|
}),
|
||||||
new Param("height", new EntityTypes.Float(0, 1, 0), "Height", "Controls how high the high jump will go, 0 is the minimum height, 1 is the maximum height."),
|
new Param("height", new EntityTypes.Float(0, 1, 0), "Height", "Controls how high the high jump will go, 0 is the minimum height, 1 is the maximum height."),
|
||||||
new Param("camMove", true, "Camera Movement", "Will the camera follow saw when it jumps up high?")
|
new Param("camMove", true, "Camera Movement", "Will the camera follow saw when it jumps up high?")
|
||||||
|
|
|
@ -41,7 +41,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("preset", SpaceSoccer.EnterExitPresets.FiveKickers, "Preset", "Which preset should be used?", new List<Param.CollapseParam>()
|
new Param("preset", SpaceSoccer.EnterExitPresets.FiveKickers, "Preset", "Which preset should be used?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (int)x == (int)SpaceSoccer.EnterExitPresets.Custom, new string[] { "amount", "x", "y", "z" })
|
new Param.CollapseParam((x, _) => (int)x == (int)SpaceSoccer.EnterExitPresets.Custom, new string[] { "amount", "x", "y", "z" })
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("preset", SpaceSoccer.PlayerPresets.LaunchStart, "Preset", "Which preset should be used?", new List<Param.CollapseParam>()
|
new Param("preset", SpaceSoccer.PlayerPresets.LaunchStart, "Preset", "Which preset should be used?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (int)x == (int)SpaceSoccer.PlayerPresets.Custom, new string[] { "x", "y", "z", "ease", "sound" })
|
new Param.CollapseParam((x, _) => (int)x == (int)SpaceSoccer.PlayerPresets.Custom, new string[] { "x", "y", "z", "ease", "sound" })
|
||||||
}),
|
}),
|
||||||
new Param("x", new EntityTypes.Float(-30, 30, 0f), "X Pos", "Which position should the player move to on the x axis?"),
|
new Param("x", new EntityTypes.Float(-30, 30, 0f), "X Pos", "Which position should the player move to on the x axis?"),
|
||||||
new Param("y", new EntityTypes.Float(-30, 30, 0f), "Y Pos", "Which position should the player move to on the y axis?"),
|
new Param("y", new EntityTypes.Float(-30, 30, 0f), "Y Pos", "Which position should the player move to on the y axis?"),
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("toggle", true, "Scroll FX", "Will scroll", new List<Param.CollapseParam>()
|
new Param("toggle", true, "Scroll FX", "Will scroll", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "flash", "m"})
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "flash", "m"})
|
||||||
}),
|
}),
|
||||||
new Param("flash", true, "Flash FX", "Will flash to white"),
|
new Param("flash", true, "Flash FX", "Will flash to white"),
|
||||||
new Param("m", new EntityTypes.Float(0, 10, 1), "Speed Multiplier")
|
new Param("m", new EntityTypes.Float(0, 10, 1), "Speed Multiplier")
|
||||||
|
|
|
@ -33,12 +33,12 @@ namespace HeavenStudio.Games.Loaders
|
||||||
{
|
{
|
||||||
new Param("okay", true, "Okay Voice Line", "Whether or not the tappers should say -Okay!- after successfully tapping.", new List<Param.CollapseParam>()
|
new Param("okay", true, "Okay Voice Line", "Whether or not the tappers should say -Okay!- after successfully tapping.", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (bool)x, new string[] { "okayType" })
|
new Param.CollapseParam((x, _) => (bool)x, new string[] { "okayType" })
|
||||||
}),
|
}),
|
||||||
new Param("okayType", TapTroupe.OkayType.OkayA, "Okay Type", "Which version of the okay voice line should the tappers say?"),
|
new Param("okayType", TapTroupe.OkayType.OkayA, "Okay Type", "Which version of the okay voice line should the tappers say?"),
|
||||||
new Param("animType", TapTroupe.OkayAnimType.Normal, "Okay Animation", "Which animations should be played when the tapper say OK?", new List<Param.CollapseParam>()
|
new Param("animType", TapTroupe.OkayAnimType.Normal, "Okay Animation", "Which animations should be played when the tapper say OK?", new List<Param.CollapseParam>()
|
||||||
{
|
{
|
||||||
new Param.CollapseParam(x => (int)x == (int)TapTroupe.OkayAnimType.Popper, new string[]{ "popperBeats"})
|
new Param.CollapseParam((x, _) => (int)x == (int)TapTroupe.OkayAnimType.Popper, new string[]{ "popperBeats"})
|
||||||
}),
|
}),
|
||||||
new Param("popperBeats", new EntityTypes.Float(0f, 80f, 2f), "Popper Beats", "How many beats until the popper will pop?"),
|
new Param("popperBeats", new EntityTypes.Float(0f, 80f, 2f), "Popper Beats", "How many beats until the popper will pop?"),
|
||||||
new Param("randomVoiceLine", true, "Extra Random Voice Line", "Whether there should be randomly said woos or laughs after the tappers say OK!"),
|
new Param("randomVoiceLine", true, "Extra Random Voice Line", "Whether there should be randomly said woos or laughs after the tappers say OK!"),
|
||||||
|
|
|
@ -5,6 +5,7 @@ using UnityEngine;
|
||||||
using HeavenStudio.Editor.Track;
|
using HeavenStudio.Editor.Track;
|
||||||
using Jukebox;
|
using Jukebox;
|
||||||
using Jukebox.Legacy;
|
using Jukebox.Legacy;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
namespace HeavenStudio.Editor
|
namespace HeavenStudio.Editor
|
||||||
{
|
{
|
||||||
|
@ -111,12 +112,8 @@ namespace HeavenStudio.Editor
|
||||||
EventPropertyPrefab input = ePrefabs[p.propertyName].GetComponent<EventPropertyPrefab>();
|
EventPropertyPrefab input = ePrefabs[p.propertyName].GetComponent<EventPropertyPrefab>();
|
||||||
foreach (var c in p.collapseParams)
|
foreach (var c in p.collapseParams)
|
||||||
{
|
{
|
||||||
List<GameObject> collapseables = new();
|
List<GameObject> collapseables = c.collapseables.Select(x => ePrefabs[x]).ToList();
|
||||||
foreach (var s in c.collapseables)
|
input.propertyCollapses.Add(new EventPropertyPrefab.PropertyCollapse(collapseables, c.CollapseOn, entity));
|
||||||
{
|
|
||||||
collapseables.Add(ePrefabs[s]);
|
|
||||||
}
|
|
||||||
input.propertyCollapses.Add(new EventPropertyPrefab.PropertyCollapse(collapseables, c.CollapseOn));
|
|
||||||
}
|
}
|
||||||
input.SetCollapses(p.parameter);
|
input.SetCollapses(p.parameter);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@ using TMPro;
|
||||||
using Starpelly;
|
using Starpelly;
|
||||||
|
|
||||||
using HeavenStudio.Util;
|
using HeavenStudio.Util;
|
||||||
|
using Jukebox;
|
||||||
|
|
||||||
namespace HeavenStudio.Editor
|
namespace HeavenStudio.Editor
|
||||||
{
|
{
|
||||||
|
@ -38,7 +39,7 @@ namespace HeavenStudio.Editor
|
||||||
{
|
{
|
||||||
foreach (var c in p.collapseables)
|
foreach (var c in p.collapseables)
|
||||||
{
|
{
|
||||||
if (c != null) c.SetActive(p.collapseOn(type) && gameObject.activeSelf);
|
if (c != null) c.SetActive(p.collapseOn(type, p.entity) && gameObject.activeSelf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,12 +47,14 @@ namespace HeavenStudio.Editor
|
||||||
public class PropertyCollapse
|
public class PropertyCollapse
|
||||||
{
|
{
|
||||||
public List<GameObject> collapseables;
|
public List<GameObject> collapseables;
|
||||||
public Func<object, bool> collapseOn;
|
public Func<object, RiqEntity, bool> collapseOn;
|
||||||
|
public RiqEntity entity;
|
||||||
|
|
||||||
public PropertyCollapse(List<GameObject> collapseables, Func<object, bool> collapseOn)
|
public PropertyCollapse(List<GameObject> collapseables, Func<object, RiqEntity, bool> collapseOn, RiqEntity entity)
|
||||||
{
|
{
|
||||||
this.collapseables = collapseables;
|
this.collapseables = collapseables;
|
||||||
this.collapseOn = collapseOn;
|
this.collapseOn = collapseOn;
|
||||||
|
this.entity = entity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -486,14 +486,14 @@ namespace HeavenStudio
|
||||||
|
|
||||||
public class CollapseParam
|
public class CollapseParam
|
||||||
{
|
{
|
||||||
public Func<object, bool> CollapseOn;
|
public Func<object, RiqEntity, bool> CollapseOn;
|
||||||
public string[] collapseables;
|
public string[] collapseables;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class that decides how other parameters will be collapsed
|
/// Class that decides how other parameters will be collapsed
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="collapseOn">What values should make it collapse/uncollapse?</param>
|
/// <param name="collapseOn">What values should make it collapse/uncollapse?</param>
|
||||||
/// <param name="collapseables">IDs of the parameters to collapse</param>
|
/// <param name="collapseables">IDs of the parameters to collapse</param>
|
||||||
public CollapseParam(Func<object, bool> collapseOn, string[] collapseables)
|
public CollapseParam(Func<object, RiqEntity, bool> collapseOn, string[] collapseables)
|
||||||
{
|
{
|
||||||
CollapseOn = collapseOn;
|
CollapseOn = collapseOn;
|
||||||
this.collapseables = collapseables;
|
this.collapseables = collapseables;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace HeavenStudio.Util
|
namespace HeavenStudio.Util
|
||||||
{
|
{
|
||||||
|
@ -52,7 +53,30 @@ namespace HeavenStudio.Util
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Plays animation on animator, scaling speed to song BPM
|
/// Plays animation on animator, scaling speed to song BPM
|
||||||
/// call this funtion once, when playing an animation
|
/// call this function once, when playing an animation
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="anim">Animator to play animation on</param>
|
||||||
|
/// <param name="animName">name of animation to play</param>
|
||||||
|
/// <param name="timeScale">multiplier for animation speed</param>
|
||||||
|
/// <param name="startBeat">beat that this animation would start on</param>
|
||||||
|
/// <param name="animLayer">animator layer to play animation on</param>
|
||||||
|
public static void DoScaledAnimationFromBeatAsync(this Animator anim, string animName, float timeScale = 1f, double startBeat = 0, int animLayer = -1)
|
||||||
|
{
|
||||||
|
float pos = 0;
|
||||||
|
if (!double.IsNaN(startBeat)) {
|
||||||
|
var cond = Conductor.instance;
|
||||||
|
var animClip = Array.Find(anim.runtimeAnimatorController.animationClips, x => x.name == animName);
|
||||||
|
double animLength = cond.SecsToBeats(animClip.length, cond.GetBpmAtBeat(startBeat));
|
||||||
|
pos = cond.GetPositionFromBeat(startBeat, animLength) * timeScale;
|
||||||
|
} else {
|
||||||
|
Debug.LogWarning("DoScaledAnimationFromBeatAsync()'s startBeat was NaN; using DoScaledAnimationAsync() instead.");
|
||||||
|
}
|
||||||
|
anim.DoScaledAnimationAsync(animName, timeScale, pos, animLayer);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Plays animation on animator, scaling speed to song BPM
|
||||||
|
/// call this function once, when playing an animation
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="anim">Animator to play animation on</param>
|
/// <param name="anim">Animator to play animation on</param>
|
||||||
/// <param name="animName">name of animation to play</param>
|
/// <param name="animName">name of animation to play</param>
|
||||||
|
|
Loading…
Reference in a new issue