Compare commits
166 Commits
Author | SHA1 | Date | |
---|---|---|---|
99015f5838 | |||
cdaf0dfd2f | |||
38421b7a53 | |||
e0362bbb58 | |||
a02885704d | |||
0a223af698 | |||
283783954f | |||
d71bf7d4a5 | |||
4274bfa1b7 | |||
b3fe4de0d4 | |||
e9e6d7002a | |||
662cbf0827 | |||
9bfa7f2048 | |||
45d80522eb | |||
77f92f9294 | |||
5241490590 | |||
8bb2a01c8e | |||
85bbe43827 | |||
a532a9f4c1 | |||
c66b7da63b | |||
e1bb874943 | |||
365a8992cd | |||
cd3aae7201 | |||
aa84fb8544 | |||
4dd4c5f20d | |||
30b3114bc1 | |||
58be497903 | |||
50879a1f3f | |||
55dd38fb2c | |||
b7f5dbc4da | |||
81d458f7de | |||
58091ad534 | |||
6783d39571 | |||
e2c8c92279 | |||
cbe2e1d9af | |||
b0efd6b6b4 | |||
290f02cfbc | |||
42c3ed8ca8 | |||
b1b9dbdb77 | |||
c27647bf01 | |||
1fec4d363e | |||
8ad7d86f94 | |||
df3f7203d3 | |||
00d47cde0c | |||
7298645850 | |||
6d714c972b | |||
446724f9ca | |||
6e01b255a6 | |||
01b162883d | |||
c4e15fbbfd | |||
6f4dfad53e | |||
5c38245e23 | |||
4d05d0d135 | |||
8cf6430181 | |||
f247be0177 | |||
f9916cbce7 | |||
c55a5d7ddd | |||
091d6307d1 | |||
05db2cc32e | |||
5d884c1c7b | |||
ea3ca7806c | |||
beeca3b5f9 | |||
4051ea8874 | |||
42745ead11 | |||
d8048b1d89 | |||
048a9f54fb | |||
59339d5bc6 | |||
7f8c0b5eec | |||
2fbd2fb466 | |||
de1e9f9019 | |||
d74db533dc | |||
83ea6f5a0c | |||
bb0ca985cd | |||
8af5e772d6 | |||
aebce25f3b | |||
b39428aa39 | |||
700af29e43 | |||
0f13d2d5fd | |||
820aaeff85 | |||
ed6ae7ad8a | |||
5ef6e2b4a3 | |||
6d0975b0a1 | |||
111c500f3b | |||
a471272c52 | |||
190c3ef680 | |||
e210837329 | |||
e339ec3e4c | |||
522699152b | |||
e9d0f4ce1a | |||
155ce0bb22 | |||
cbe94e6308 | |||
3064925cd2 | |||
7af998db15 | |||
1a084e6bfb | |||
5e2fae0f14 | |||
58017e1216 | |||
7fa8e09c10 | |||
8f70b0075f | |||
54f75781f3 | |||
d7a38416aa | |||
ed496859cb | |||
33c0826f3b | |||
2d7a204a30 | |||
92fb34cfa8 | |||
ad625e3e35 | |||
342e216372 | |||
88d198f408 | |||
ec8487a4c6 | |||
4f12e4816f | |||
30e9f091d7 | |||
c2e94afc1c | |||
e2c58c708f | |||
c52bf734d3 | |||
ca60681de7 | |||
8f3c38e273 | |||
119b87f3df | |||
2778725b91 | |||
4ca5809597 | |||
0cdd6e569e | |||
8c11be48cf | |||
9fcf6f3379 | |||
b45cf9cba7 | |||
28234d9587 | |||
1803e1dee7 | |||
166478e4bb | |||
c05b771425 | |||
9db2ded366 | |||
9aed79f599 | |||
221887e447 | |||
36013d4e47 | |||
cf8dda1ea2 | |||
0f4aec4355 | |||
ddf738ee27 | |||
bd834cff4a | |||
adf5019e2a | |||
a19a3d9b81 | |||
b50f771d6e | |||
8089e724f9 | |||
18f9fbea60 | |||
6ea487ff13 | |||
a83b16c829 | |||
b48bd7b8ba | |||
b56722b2d1 | |||
5854801a53 | |||
668f46d260 | |||
b672889008 | |||
08a12097a4 | |||
7535ce04f5 | |||
bede668e73 | |||
c2c28518ba | |||
bfa1423f64 | |||
395c094890 | |||
a284edd130 | |||
b57959b4bf | |||
724cb10bc1 | |||
97e759f57d | |||
3ce8ad72ed | |||
c23d79e3f5 | |||
71294db3c1 | |||
825818679c | |||
84acb2c12d | |||
9c034c0f7b | |||
aa7452aead | |||
f86562b2f2 | |||
8fa2bd1e81 | |||
1f58390298 |
@@ -1,9 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: ff84d017aa87efe40a398305f6c66f4d
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1611481582
|
|
||||||
licenseType: Free
|
|
||||||
DefaultImporter:
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,921 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!1101 &-8721260600392589857
|
|
||||||
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: -1711742599587662259}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!114 &-7544382450586515317
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 57079cdf55a0d1149903f00ee732fa85, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_name: ContentIndex
|
|
||||||
m_value: 0
|
|
||||||
--- !u!1102 &-7525596204709797473
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: TConfig_Main
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: -5132645766795686971}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7400000, guid: d815e4d844e6a1c4d849e96e199f8881, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1101 &-5132645766795686971
|
|
||||||
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: 110253476}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!114 &-3269459075475511263
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 57079cdf55a0d1149903f00ee732fa85, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_name: ContentIndex
|
|
||||||
m_value: 1
|
|
||||||
--- !u!1101 &-2014865272520557121
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 1
|
|
||||||
m_ConditionEvent: G_Back
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: -7525596204709797473}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1102 &-1711742599587662259
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: IConfig
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: -2014865272520557121}
|
|
||||||
- {fileID: 6725764225238317576}
|
|
||||||
m_StateMachineBehaviours:
|
|
||||||
- {fileID: -3269459075475511263}
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7400000, guid: 2e0c61e29fd90f04b9e41265d93e2029, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1109 &-148366939711131180
|
|
||||||
AnimatorTransition:
|
|
||||||
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: 1102561020678939018}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 1
|
|
||||||
--- !u!91 &9100000
|
|
||||||
AnimatorController:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: Canvas
|
|
||||||
serializedVersion: 5
|
|
||||||
m_AnimatorParameters:
|
|
||||||
- m_Name: G_Back
|
|
||||||
m_Type: 9
|
|
||||||
m_DefaultFloat: 0
|
|
||||||
m_DefaultInt: 0
|
|
||||||
m_DefaultBool: 0
|
|
||||||
m_Controller: {fileID: 9100000}
|
|
||||||
- m_Name: T_Main
|
|
||||||
m_Type: 9
|
|
||||||
m_DefaultFloat: 0
|
|
||||||
m_DefaultInt: 0
|
|
||||||
m_DefaultBool: 0
|
|
||||||
m_Controller: {fileID: 9100000}
|
|
||||||
- m_Name: T_Settings
|
|
||||||
m_Type: 9
|
|
||||||
m_DefaultFloat: 0
|
|
||||||
m_DefaultInt: 0
|
|
||||||
m_DefaultBool: 0
|
|
||||||
m_Controller: {fileID: 9100000}
|
|
||||||
- m_Name: T_Config
|
|
||||||
m_Type: 9
|
|
||||||
m_DefaultFloat: 0
|
|
||||||
m_DefaultInt: 0
|
|
||||||
m_DefaultBool: 0
|
|
||||||
m_Controller: {fileID: 9100000}
|
|
||||||
- m_Name: ContentIndex
|
|
||||||
m_Type: 3
|
|
||||||
m_DefaultFloat: 0
|
|
||||||
m_DefaultInt: 0
|
|
||||||
m_DefaultBool: 0
|
|
||||||
m_Controller: {fileID: 9100000}
|
|
||||||
m_AnimatorLayers:
|
|
||||||
- serializedVersion: 5
|
|
||||||
m_Name: Base
|
|
||||||
m_StateMachine: {fileID: 110726924}
|
|
||||||
m_Mask: {fileID: 0}
|
|
||||||
m_Motions: []
|
|
||||||
m_Behaviours: []
|
|
||||||
m_BlendingMode: 0
|
|
||||||
m_SyncedLayerIndex: -1
|
|
||||||
m_DefaultWeight: 0
|
|
||||||
m_IKPass: 0
|
|
||||||
m_SyncedLayerAffectsTiming: 0
|
|
||||||
m_Controller: {fileID: 9100000}
|
|
||||||
--- !u!1101 &110148126
|
|
||||||
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: 110253476}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1101 &110151648
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 1
|
|
||||||
m_ConditionEvent: G_Back
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: 110282074}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1101 &110171968
|
|
||||||
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: 110265034}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1101 &110175238
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 1
|
|
||||||
m_ConditionEvent: G_Back
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: 110223554}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1101 &110179560
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 1
|
|
||||||
m_ConditionEvent: G_Back
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: 110282074}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1101 &110191838
|
|
||||||
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: 110253476}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1101 &110192662
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 1
|
|
||||||
m_ConditionEvent: T_Main
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: 110291586}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1102 &110205842
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: IStartup
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: 110192662}
|
|
||||||
- {fileID: 110179560}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7400000, guid: 9d0c0a0c88a0e7a43b77b0065bb64721, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1102 &110223554
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: TQuit_
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: 110148126}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7400000, guid: 0cc97e0bf50ad9c4e834c28e6eddf416, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1102 &110253476
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: IMain
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: 110151648}
|
|
||||||
- {fileID: 1101244981468607914}
|
|
||||||
- {fileID: 4268828270460367803}
|
|
||||||
m_StateMachineBehaviours:
|
|
||||||
- {fileID: -7544382450586515317}
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7400000, guid: 2162866fb7549724a85cb3c854a136ad, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1102 &110265034
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: IQuit
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: 110175238}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7400000, guid: 6e50faab4238b5548bb05a7d421f5405, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1102 &110282074
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: T_Quit
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: 110171968}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7400000, guid: cc249d3462d795b46aff263bc04baee2, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1102 &110291586
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: TStartup_Main
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: 110191838}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7400000, guid: 63a0e2075f5ba8d489d8cd318c14720b, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1107 &110726924
|
|
||||||
AnimatorStateMachine:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: Base
|
|
||||||
m_ChildStates:
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: 110291586}
|
|
||||||
m_Position: {x: 470, y: 120, z: 0}
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: 110205842}
|
|
||||||
m_Position: {x: 240, y: 120, z: 0}
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: 110253476}
|
|
||||||
m_Position: {x: 470, y: 60, z: 0}
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: 110282074}
|
|
||||||
m_Position: {x: 240, y: 60, z: 0}
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: 110265034}
|
|
||||||
m_Position: {x: 240, y: 0, z: 0}
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: 110223554}
|
|
||||||
m_Position: {x: 468, y: 0, z: 0}
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: 1102561020678939018}
|
|
||||||
m_Position: {x: 730, y: -50, z: 0}
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: 1102656588130233220}
|
|
||||||
m_Position: {x: 1210, y: 50, z: 0}
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: 1102582640015115930}
|
|
||||||
m_Position: {x: 730, y: 170, z: 0}
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: 7271406375099633063}
|
|
||||||
m_Position: {x: 730, y: 30, z: 0}
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: -1711742599587662259}
|
|
||||||
m_Position: {x: 960, y: 50, z: 0}
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: -7525596204709797473}
|
|
||||||
m_Position: {x: 730, y: 90, z: 0}
|
|
||||||
m_ChildStateMachines: []
|
|
||||||
m_AnyStateTransitions: []
|
|
||||||
m_EntryTransitions: []
|
|
||||||
m_StateMachineTransitions:
|
|
||||||
- first: {fileID: 0}
|
|
||||||
second: []
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_AnyStatePosition: {x: 48, y: 60, z: 0}
|
|
||||||
m_EntryPosition: {x: 48, y: 120, z: 0}
|
|
||||||
m_ExitPosition: {x: 48, y: 0, z: 0}
|
|
||||||
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
|
||||||
m_DefaultState: {fileID: 110205842}
|
|
||||||
--- !u!1109 &18581713490072034
|
|
||||||
AnimatorTransition:
|
|
||||||
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: 1102656588130233220}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 1
|
|
||||||
--- !u!1101 &1101118093461196680
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 1
|
|
||||||
m_ConditionEvent: G_Back
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: 1102582640015115930}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1101 &1101244981468607914
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 1
|
|
||||||
m_ConditionEvent: T_Settings
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: 1102561020678939018}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1101 &1101331669488027508
|
|
||||||
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: 1102656588130233220}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1101 &1101824047535165308
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 6
|
|
||||||
m_ConditionEvent: ContentIndex
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: 110253476}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1102 &1102561020678939018
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: T_Settings
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: 1101331669488027508}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7400000, guid: 961473ba26b4b1942806c224266f8db7, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1102 &1102582640015115930
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: TSettings_
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: 1101824047535165308}
|
|
||||||
- {fileID: 6325091892004037592}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7400000, guid: 9f6fb5723dba03d42b9e8a3c3e9091a5, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1102 &1102656588130233220
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: ISettings
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: 1101118093461196680}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7400000, guid: 8b9f1682ee8026b468ad15885e1ff6a5, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1101 &4268828270460367803
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 1
|
|
||||||
m_ConditionEvent: T_Config
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: 7271406375099633063}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!114 &6019547548074810887
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: d48088ca586ef5a41a42f6564e35b230, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_onEnter:
|
|
||||||
m_PersistentCalls:
|
|
||||||
m_Calls: []
|
|
||||||
m_CallsDirty: 1
|
|
||||||
--- !u!1101 &6325091892004037592
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 6
|
|
||||||
m_ConditionEvent: ContentIndex
|
|
||||||
m_EventTreshold: 1
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: -1711742599587662259}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1101 &6725764225238317576
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 1
|
|
||||||
m_ConditionEvent: T_Settings
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: 1102561020678939018}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1102 &7271406375099633063
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: TMain_Config
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: -8721260600392589857}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7400000, guid: 82867c59112ff5a419fbea2ebff2d3b9, type: 2}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: c96c5f91fd684d14d9d4c09a5f34ee5d
|
|
||||||
timeCreated: 1637144068
|
|
||||||
licenseType: Free
|
|
||||||
NativeFormatImporter:
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,431 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!74 &7400000
|
|
||||||
AnimationClip:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: IConfig
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Legacy: 0
|
|
||||||
m_Compressed: 0
|
|
||||||
m_UseHighQualityCurve: 1
|
|
||||||
m_RotationCurves: []
|
|
||||||
m_CompressedRotationCurves: []
|
|
||||||
m_EulerCurves: []
|
|
||||||
m_PositionCurves: []
|
|
||||||
m_ScaleCurves: []
|
|
||||||
m_FloatCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Contents/Config
|
|
||||||
classID: 1
|
|
||||||
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
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 0
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Contents/MainContents
|
|
||||||
classID: 1
|
|
||||||
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
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 0
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: SettingsOverlay
|
|
||||||
classID: 1
|
|
||||||
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
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 0
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Settings/OverlayBack
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: -1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: -1
|
|
||||||
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_AnchorMin.x
|
|
||||||
path: Contents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 0
|
|
||||||
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_AnchorMax.x
|
|
||||||
path: Contents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_PPtrCurves: []
|
|
||||||
m_SampleRate: 60
|
|
||||||
m_WrapMode: 0
|
|
||||||
m_Bounds:
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
m_Extent: {x: 0, y: 0, z: 0}
|
|
||||||
m_ClipBindingConstant:
|
|
||||||
genericBindings:
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1063882198
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 512889948
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 135068749
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 3949350096
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1301050145
|
|
||||||
attribute: 2089119715
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1301050145
|
|
||||||
attribute: 2711263438
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
pptrCurveMapping: []
|
|
||||||
m_AnimationClipSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
|
||||||
m_AdditiveReferencePoseTime: 0
|
|
||||||
m_StartTime: 0
|
|
||||||
m_StopTime: 0.016666668
|
|
||||||
m_OrientationOffsetY: 0
|
|
||||||
m_Level: 0
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_HasAdditiveReferencePose: 0
|
|
||||||
m_LoopTime: 1
|
|
||||||
m_LoopBlend: 0
|
|
||||||
m_LoopBlendOrientation: 0
|
|
||||||
m_LoopBlendPositionY: 0
|
|
||||||
m_LoopBlendPositionXZ: 0
|
|
||||||
m_KeepOriginalOrientation: 0
|
|
||||||
m_KeepOriginalPositionY: 1
|
|
||||||
m_KeepOriginalPositionXZ: 0
|
|
||||||
m_HeightFromFeet: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_EditorCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Contents/Config
|
|
||||||
classID: 1
|
|
||||||
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
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 0
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Contents/MainContents
|
|
||||||
classID: 1
|
|
||||||
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
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 0
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: SettingsOverlay
|
|
||||||
classID: 1
|
|
||||||
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
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 0
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Settings/OverlayBack
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: -1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: -1
|
|
||||||
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_AnchorMin.x
|
|
||||||
path: Contents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 0
|
|
||||||
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_AnchorMax.x
|
|
||||||
path: Contents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_EulerEditorCurves: []
|
|
||||||
m_HasGenericRootTransform: 0
|
|
||||||
m_HasMotionFloatCurves: 0
|
|
||||||
m_Events: []
|
|
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 2e0c61e29fd90f04b9e41265d93e2029
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 7400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
File diff suppressed because it is too large
Load Diff
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 2162866fb7549724a85cb3c854a136ad
|
|
||||||
timeCreated: 1637144548
|
|
||||||
licenseType: Free
|
|
||||||
NativeFormatImporter:
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,179 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!74 &7400000
|
|
||||||
AnimationClip:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: IQuit
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Legacy: 0
|
|
||||||
m_Compressed: 0
|
|
||||||
m_UseHighQualityCurve: 1
|
|
||||||
m_RotationCurves: []
|
|
||||||
m_CompressedRotationCurves: []
|
|
||||||
m_EulerCurves: []
|
|
||||||
m_PositionCurves: []
|
|
||||||
m_ScaleCurves: []
|
|
||||||
m_FloatCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: Overlay
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Alpha
|
|
||||||
path: Overlay
|
|
||||||
classID: 225
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_PPtrCurves: []
|
|
||||||
m_SampleRate: 60
|
|
||||||
m_WrapMode: 0
|
|
||||||
m_Bounds:
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
m_Extent: {x: 0, y: 0, z: 0}
|
|
||||||
m_ClipBindingConstant:
|
|
||||||
genericBindings:
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1984038178
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1984038178
|
|
||||||
attribute: 1574349066
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 225
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
pptrCurveMapping: []
|
|
||||||
m_AnimationClipSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
|
||||||
m_AdditiveReferencePoseTime: 0
|
|
||||||
m_StartTime: 0
|
|
||||||
m_StopTime: 0.016666668
|
|
||||||
m_OrientationOffsetY: 0
|
|
||||||
m_Level: 0
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_HasAdditiveReferencePose: 0
|
|
||||||
m_LoopTime: 1
|
|
||||||
m_LoopBlend: 0
|
|
||||||
m_LoopBlendOrientation: 0
|
|
||||||
m_LoopBlendPositionY: 0
|
|
||||||
m_LoopBlendPositionXZ: 0
|
|
||||||
m_KeepOriginalOrientation: 0
|
|
||||||
m_KeepOriginalPositionY: 1
|
|
||||||
m_KeepOriginalPositionXZ: 0
|
|
||||||
m_HeightFromFeet: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_EditorCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: Overlay
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Alpha
|
|
||||||
path: Overlay
|
|
||||||
classID: 225
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_EulerEditorCurves: []
|
|
||||||
m_HasGenericRootTransform: 0
|
|
||||||
m_HasMotionFloatCurves: 0
|
|
||||||
m_Events: []
|
|
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 6e50faab4238b5548bb05a7d421f5405
|
|
||||||
timeCreated: 1637145598
|
|
||||||
licenseType: Free
|
|
||||||
NativeFormatImporter:
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,305 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!74 &7400000
|
|
||||||
AnimationClip:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: ISettings
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Legacy: 0
|
|
||||||
m_Compressed: 0
|
|
||||||
m_UseHighQualityCurve: 1
|
|
||||||
m_RotationCurves: []
|
|
||||||
m_CompressedRotationCurves: []
|
|
||||||
m_EulerCurves: []
|
|
||||||
m_PositionCurves: []
|
|
||||||
m_ScaleCurves: []
|
|
||||||
m_FloatCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: SettingsOverlay
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: Settings
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 0
|
|
||||||
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_Pivot.y
|
|
||||||
path: Settings
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Settings/OverlayBack
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_PPtrCurves: []
|
|
||||||
m_SampleRate: 60
|
|
||||||
m_WrapMode: 0
|
|
||||||
m_Bounds:
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
m_Extent: {x: 0, y: 0, z: 0}
|
|
||||||
m_ClipBindingConstant:
|
|
||||||
genericBindings:
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 135068749
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 473154195
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 3949350096
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 473154195
|
|
||||||
attribute: 2952582672
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
pptrCurveMapping: []
|
|
||||||
m_AnimationClipSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
|
||||||
m_AdditiveReferencePoseTime: 0
|
|
||||||
m_StartTime: 0
|
|
||||||
m_StopTime: 0.016666668
|
|
||||||
m_OrientationOffsetY: 0
|
|
||||||
m_Level: 0
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_HasAdditiveReferencePose: 0
|
|
||||||
m_LoopTime: 1
|
|
||||||
m_LoopBlend: 0
|
|
||||||
m_LoopBlendOrientation: 0
|
|
||||||
m_LoopBlendPositionY: 0
|
|
||||||
m_LoopBlendPositionXZ: 0
|
|
||||||
m_KeepOriginalOrientation: 0
|
|
||||||
m_KeepOriginalPositionY: 1
|
|
||||||
m_KeepOriginalPositionXZ: 0
|
|
||||||
m_HeightFromFeet: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_EditorCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: SettingsOverlay
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: Settings
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 0
|
|
||||||
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_Pivot.y
|
|
||||||
path: Settings
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Settings/OverlayBack
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_EulerEditorCurves: []
|
|
||||||
m_HasGenericRootTransform: 0
|
|
||||||
m_HasMotionFloatCurves: 0
|
|
||||||
m_Events: []
|
|
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 8b9f1682ee8026b468ad15885e1ff6a5
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 7400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,179 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!74 &7400000
|
|
||||||
AnimationClip:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: IStartup
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Legacy: 0
|
|
||||||
m_Compressed: 0
|
|
||||||
m_UseHighQualityCurve: 1
|
|
||||||
m_RotationCurves: []
|
|
||||||
m_CompressedRotationCurves: []
|
|
||||||
m_EulerCurves: []
|
|
||||||
m_PositionCurves: []
|
|
||||||
m_ScaleCurves: []
|
|
||||||
m_FloatCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Alpha
|
|
||||||
path: Startup
|
|
||||||
classID: 225
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: Contents
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_PPtrCurves: []
|
|
||||||
m_SampleRate: 60
|
|
||||||
m_WrapMode: 0
|
|
||||||
m_Bounds:
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
m_Extent: {x: 0, y: 0, z: 0}
|
|
||||||
m_ClipBindingConstant:
|
|
||||||
genericBindings:
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1301050145
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 724789610
|
|
||||||
attribute: 1574349066
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 225
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
pptrCurveMapping: []
|
|
||||||
m_AnimationClipSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
|
||||||
m_AdditiveReferencePoseTime: 0
|
|
||||||
m_StartTime: 0
|
|
||||||
m_StopTime: 0.016666668
|
|
||||||
m_OrientationOffsetY: 0
|
|
||||||
m_Level: 0
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_HasAdditiveReferencePose: 0
|
|
||||||
m_LoopTime: 1
|
|
||||||
m_LoopBlend: 0
|
|
||||||
m_LoopBlendOrientation: 0
|
|
||||||
m_LoopBlendPositionY: 0
|
|
||||||
m_LoopBlendPositionXZ: 0
|
|
||||||
m_KeepOriginalOrientation: 0
|
|
||||||
m_KeepOriginalPositionY: 1
|
|
||||||
m_KeepOriginalPositionXZ: 0
|
|
||||||
m_HeightFromFeet: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_EditorCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Alpha
|
|
||||||
path: Startup
|
|
||||||
classID: 225
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.016666668
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: Contents
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_EulerEditorCurves: []
|
|
||||||
m_HasGenericRootTransform: 0
|
|
||||||
m_HasMotionFloatCurves: 0
|
|
||||||
m_Events: []
|
|
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 9d0c0a0c88a0e7a43b77b0065bb64721
|
|
||||||
timeCreated: 1637144134
|
|
||||||
licenseType: Free
|
|
||||||
NativeFormatImporter:
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,305 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!74 &7400000
|
|
||||||
AnimationClip:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: TConfig_Main
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Legacy: 0
|
|
||||||
m_Compressed: 0
|
|
||||||
m_UseHighQualityCurve: 1
|
|
||||||
m_RotationCurves: []
|
|
||||||
m_CompressedRotationCurves: []
|
|
||||||
m_EulerCurves: []
|
|
||||||
m_PositionCurves: []
|
|
||||||
m_ScaleCurves: []
|
|
||||||
m_FloatCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Contents/Config
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Contents/MainContents
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
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_AnchorMax.x
|
|
||||||
path: Contents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: -1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
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_AnchorMin.x
|
|
||||||
path: Contents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_PPtrCurves: []
|
|
||||||
m_SampleRate: 60
|
|
||||||
m_WrapMode: 0
|
|
||||||
m_Bounds:
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
m_Extent: {x: 0, y: 0, z: 0}
|
|
||||||
m_ClipBindingConstant:
|
|
||||||
genericBindings:
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1063882198
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 512889948
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1301050145
|
|
||||||
attribute: 2711263438
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1301050145
|
|
||||||
attribute: 2089119715
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
pptrCurveMapping: []
|
|
||||||
m_AnimationClipSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
|
||||||
m_AdditiveReferencePoseTime: 0
|
|
||||||
m_StartTime: 0
|
|
||||||
m_StopTime: 0.33333334
|
|
||||||
m_OrientationOffsetY: 0
|
|
||||||
m_Level: 0
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_HasAdditiveReferencePose: 0
|
|
||||||
m_LoopTime: 1
|
|
||||||
m_LoopBlend: 0
|
|
||||||
m_LoopBlendOrientation: 0
|
|
||||||
m_LoopBlendPositionY: 0
|
|
||||||
m_LoopBlendPositionXZ: 0
|
|
||||||
m_KeepOriginalOrientation: 0
|
|
||||||
m_KeepOriginalPositionY: 1
|
|
||||||
m_KeepOriginalPositionXZ: 0
|
|
||||||
m_HeightFromFeet: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_EditorCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Contents/Config
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Contents/MainContents
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
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_AnchorMax.x
|
|
||||||
path: Contents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: -1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
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_AnchorMin.x
|
|
||||||
path: Contents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_EulerEditorCurves: []
|
|
||||||
m_HasGenericRootTransform: 0
|
|
||||||
m_HasMotionFloatCurves: 0
|
|
||||||
m_Events: []
|
|
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: d815e4d844e6a1c4d849e96e199f8881
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 7400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,224 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!74 &7400000
|
|
||||||
AnimationClip:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: TMain_Config
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Legacy: 0
|
|
||||||
m_Compressed: 0
|
|
||||||
m_UseHighQualityCurve: 1
|
|
||||||
m_RotationCurves: []
|
|
||||||
m_CompressedRotationCurves: []
|
|
||||||
m_EulerCurves: []
|
|
||||||
m_PositionCurves: []
|
|
||||||
m_ScaleCurves: []
|
|
||||||
m_FloatCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: -1
|
|
||||||
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_AnchorMin.x
|
|
||||||
path: Contents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
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_AnchorMax.x
|
|
||||||
path: Contents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Contents/Config
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_PPtrCurves: []
|
|
||||||
m_SampleRate: 60
|
|
||||||
m_WrapMode: 0
|
|
||||||
m_Bounds:
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
m_Extent: {x: 0, y: 0, z: 0}
|
|
||||||
m_ClipBindingConstant:
|
|
||||||
genericBindings:
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1301050145
|
|
||||||
attribute: 2089119715
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1301050145
|
|
||||||
attribute: 2711263438
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1063882198
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
pptrCurveMapping: []
|
|
||||||
m_AnimationClipSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
|
||||||
m_AdditiveReferencePoseTime: 0
|
|
||||||
m_StartTime: 0
|
|
||||||
m_StopTime: 0.33333334
|
|
||||||
m_OrientationOffsetY: 0
|
|
||||||
m_Level: 0
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_HasAdditiveReferencePose: 0
|
|
||||||
m_LoopTime: 1
|
|
||||||
m_LoopBlend: 0
|
|
||||||
m_LoopBlendOrientation: 0
|
|
||||||
m_LoopBlendPositionY: 0
|
|
||||||
m_LoopBlendPositionXZ: 0
|
|
||||||
m_KeepOriginalOrientation: 0
|
|
||||||
m_KeepOriginalPositionY: 1
|
|
||||||
m_KeepOriginalPositionXZ: 0
|
|
||||||
m_HeightFromFeet: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_EditorCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: -1
|
|
||||||
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_AnchorMin.x
|
|
||||||
path: Contents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
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_AnchorMax.x
|
|
||||||
path: Contents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Contents/Config
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_EulerEditorCurves: []
|
|
||||||
m_HasGenericRootTransform: 0
|
|
||||||
m_HasMotionFloatCurves: 0
|
|
||||||
m_Events: []
|
|
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 82867c59112ff5a419fbea2ebff2d3b9
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 7400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,242 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!74 &7400000
|
|
||||||
AnimationClip:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: TQuit_
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Legacy: 0
|
|
||||||
m_Compressed: 0
|
|
||||||
m_UseHighQualityCurve: 1
|
|
||||||
m_RotationCurves: []
|
|
||||||
m_CompressedRotationCurves: []
|
|
||||||
m_EulerCurves: []
|
|
||||||
m_PositionCurves: []
|
|
||||||
m_ScaleCurves: []
|
|
||||||
m_FloatCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: -6
|
|
||||||
outSlope: -6
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.16666667
|
|
||||||
value: 0
|
|
||||||
inSlope: -6
|
|
||||||
outSlope: -6
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Alpha
|
|
||||||
path: Overlay
|
|
||||||
classID: 225
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.16666667
|
|
||||||
value: 0
|
|
||||||
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_IsActive
|
|
||||||
path: Overlay
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.16666667
|
|
||||||
value: 0
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Overlay/Quit
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_PPtrCurves: []
|
|
||||||
m_SampleRate: 60
|
|
||||||
m_WrapMode: 0
|
|
||||||
m_Bounds:
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
m_Extent: {x: 0, y: 0, z: 0}
|
|
||||||
m_ClipBindingConstant:
|
|
||||||
genericBindings:
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1984038178
|
|
||||||
attribute: 1574349066
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 225
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1984038178
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 3251364855
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
pptrCurveMapping: []
|
|
||||||
m_AnimationClipSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
|
||||||
m_AdditiveReferencePoseTime: 0
|
|
||||||
m_StartTime: 0
|
|
||||||
m_StopTime: 0.16666667
|
|
||||||
m_OrientationOffsetY: 0
|
|
||||||
m_Level: 0
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_HasAdditiveReferencePose: 0
|
|
||||||
m_LoopTime: 1
|
|
||||||
m_LoopBlend: 0
|
|
||||||
m_LoopBlendOrientation: 0
|
|
||||||
m_LoopBlendPositionY: 0
|
|
||||||
m_LoopBlendPositionXZ: 0
|
|
||||||
m_KeepOriginalOrientation: 0
|
|
||||||
m_KeepOriginalPositionY: 1
|
|
||||||
m_KeepOriginalPositionXZ: 0
|
|
||||||
m_HeightFromFeet: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_EditorCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: -6
|
|
||||||
outSlope: -6
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.16666667
|
|
||||||
value: 0
|
|
||||||
inSlope: -6
|
|
||||||
outSlope: -6
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Alpha
|
|
||||||
path: Overlay
|
|
||||||
classID: 225
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.16666667
|
|
||||||
value: 0
|
|
||||||
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_IsActive
|
|
||||||
path: Overlay
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.16666667
|
|
||||||
value: 0
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Overlay/Quit
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_EulerEditorCurves: []
|
|
||||||
m_HasGenericRootTransform: 0
|
|
||||||
m_HasMotionFloatCurves: 0
|
|
||||||
m_Events: []
|
|
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 0cc97e0bf50ad9c4e834c28e6eddf416
|
|
||||||
timeCreated: 1637145877
|
|
||||||
licenseType: Free
|
|
||||||
NativeFormatImporter:
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,368 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!74 &7400000
|
|
||||||
AnimationClip:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: TSettings_
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Legacy: 0
|
|
||||||
m_Compressed: 0
|
|
||||||
m_UseHighQualityCurve: 1
|
|
||||||
m_RotationCurves: []
|
|
||||||
m_CompressedRotationCurves: []
|
|
||||||
m_EulerCurves: []
|
|
||||||
m_PositionCurves: []
|
|
||||||
m_ScaleCurves: []
|
|
||||||
m_FloatCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
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_IsActive
|
|
||||||
path: SettingsOverlay
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: Settings
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.88
|
|
||||||
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_Pivot.y
|
|
||||||
path: Settings
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0.5019608
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
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_Color.a
|
|
||||||
path: SettingsOverlay
|
|
||||||
classID: 114
|
|
||||||
script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Settings/OverlayBack
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_PPtrCurves: []
|
|
||||||
m_SampleRate: 60
|
|
||||||
m_WrapMode: 0
|
|
||||||
m_Bounds:
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
m_Extent: {x: 0, y: 0, z: 0}
|
|
||||||
m_ClipBindingConstant:
|
|
||||||
genericBindings:
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 135068749
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 473154195
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 473154195
|
|
||||||
attribute: 2952582672
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 135068749
|
|
||||||
attribute: 304273561
|
|
||||||
script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
|
||||||
typeID: 114
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 3949350096
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
pptrCurveMapping: []
|
|
||||||
m_AnimationClipSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
|
||||||
m_AdditiveReferencePoseTime: 0
|
|
||||||
m_StartTime: 0
|
|
||||||
m_StopTime: 0.33333334
|
|
||||||
m_OrientationOffsetY: 0
|
|
||||||
m_Level: 0
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_HasAdditiveReferencePose: 0
|
|
||||||
m_LoopTime: 1
|
|
||||||
m_LoopBlend: 0
|
|
||||||
m_LoopBlendOrientation: 0
|
|
||||||
m_LoopBlendPositionY: 0
|
|
||||||
m_LoopBlendPositionXZ: 0
|
|
||||||
m_KeepOriginalOrientation: 0
|
|
||||||
m_KeepOriginalPositionY: 1
|
|
||||||
m_KeepOriginalPositionXZ: 0
|
|
||||||
m_HeightFromFeet: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_EditorCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
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_IsActive
|
|
||||||
path: SettingsOverlay
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: Settings
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.88
|
|
||||||
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_Pivot.y
|
|
||||||
path: Settings
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0.5019608
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
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_Color.a
|
|
||||||
path: SettingsOverlay
|
|
||||||
classID: 114
|
|
||||||
script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Settings/OverlayBack
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_EulerEditorCurves: []
|
|
||||||
m_HasGenericRootTransform: 0
|
|
||||||
m_HasMotionFloatCurves: 0
|
|
||||||
m_Events: []
|
|
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 9f6fb5723dba03d42b9e8a3c3e9091a5
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 7400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,854 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!74 &7400000
|
|
||||||
AnimationClip:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: TStartup_Main
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Legacy: 0
|
|
||||||
m_Compressed: 0
|
|
||||||
m_UseHighQualityCurve: 1
|
|
||||||
m_RotationCurves: []
|
|
||||||
m_CompressedRotationCurves: []
|
|
||||||
m_EulerCurves: []
|
|
||||||
m_PositionCurves: []
|
|
||||||
m_ScaleCurves: []
|
|
||||||
m_FloatCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: -3
|
|
||||||
outSlope: -3
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
inSlope: -3
|
|
||||||
outSlope: -3
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Alpha
|
|
||||||
path: Startup
|
|
||||||
classID: 225
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.083333336
|
|
||||||
value: -0.08
|
|
||||||
inSlope: 0.32
|
|
||||||
outSlope: 0.32
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
inSlope: 0.32
|
|
||||||
outSlope: 0.32
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_AnchorMin.x
|
|
||||||
path: Contents/Sidebar
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.083333336
|
|
||||||
value: 0
|
|
||||||
inSlope: 0.32
|
|
||||||
outSlope: 0.32
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.08
|
|
||||||
inSlope: 0.32
|
|
||||||
outSlope: 0.32
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_AnchorMax.x
|
|
||||||
path: Contents/Sidebar
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.083333336
|
|
||||||
value: 1.08
|
|
||||||
inSlope: -4
|
|
||||||
outSlope: -4
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.08
|
|
||||||
inSlope: -4
|
|
||||||
outSlope: -4
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_AnchorMin.x
|
|
||||||
path: Contents/MainContents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.083333336
|
|
||||||
value: 2
|
|
||||||
inSlope: -4
|
|
||||||
outSlope: -4
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: -4
|
|
||||||
outSlope: -4
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_AnchorMax.x
|
|
||||||
path: Contents/MainContents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1.2
|
|
||||||
inSlope: -0.60000014
|
|
||||||
outSlope: -0.60000014
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: -0.60000014
|
|
||||||
outSlope: -0.60000014
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_AnchorMax.y
|
|
||||||
path: Topbar
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: -3
|
|
||||||
outSlope: -3
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
inSlope: -3
|
|
||||||
outSlope: -3
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Startup
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Contents
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1.05
|
|
||||||
inSlope: -0.5999998
|
|
||||||
outSlope: -0.5999998
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.85
|
|
||||||
inSlope: -0.5999998
|
|
||||||
outSlope: -0.5999998
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_AnchorMin.y
|
|
||||||
path: Topbar
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Topbar
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0.49999997
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.49999997
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Pivot.x
|
|
||||||
path: Settings
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: -0.36
|
|
||||||
outSlope: -0.36
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.88
|
|
||||||
inSlope: -0.36
|
|
||||||
outSlope: -0.36
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Pivot.y
|
|
||||||
path: Settings
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Settings
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_PPtrCurves: []
|
|
||||||
m_SampleRate: 60
|
|
||||||
m_WrapMode: 0
|
|
||||||
m_Bounds:
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
m_Extent: {x: 0, y: 0, z: 0}
|
|
||||||
m_ClipBindingConstant:
|
|
||||||
genericBindings:
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 724789610
|
|
||||||
attribute: 1574349066
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 225
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 2953535754
|
|
||||||
attribute: 2089119715
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 2953535754
|
|
||||||
attribute: 2711263438
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 512889948
|
|
||||||
attribute: 2089119715
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 512889948
|
|
||||||
attribute: 2711263438
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 3745447674
|
|
||||||
attribute: 3600656472
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 724789610
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 3745447674
|
|
||||||
attribute: 193093493
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 473154195
|
|
||||||
attribute: 2952582672
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1301050145
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 3745447674
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 473154195
|
|
||||||
attribute: 3640387206
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 473154195
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
pptrCurveMapping: []
|
|
||||||
m_AnimationClipSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
|
||||||
m_AdditiveReferencePoseTime: 0
|
|
||||||
m_StartTime: 0
|
|
||||||
m_StopTime: 0.33333334
|
|
||||||
m_OrientationOffsetY: 0
|
|
||||||
m_Level: 0
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_HasAdditiveReferencePose: 0
|
|
||||||
m_LoopTime: 1
|
|
||||||
m_LoopBlend: 0
|
|
||||||
m_LoopBlendOrientation: 0
|
|
||||||
m_LoopBlendPositionY: 0
|
|
||||||
m_LoopBlendPositionXZ: 0
|
|
||||||
m_KeepOriginalOrientation: 0
|
|
||||||
m_KeepOriginalPositionY: 1
|
|
||||||
m_KeepOriginalPositionXZ: 0
|
|
||||||
m_HeightFromFeet: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_EditorCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: -3
|
|
||||||
outSlope: -3
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
inSlope: -3
|
|
||||||
outSlope: -3
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Alpha
|
|
||||||
path: Startup
|
|
||||||
classID: 225
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.083333336
|
|
||||||
value: -0.08
|
|
||||||
inSlope: 0.32
|
|
||||||
outSlope: 0.32
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
inSlope: 0.32
|
|
||||||
outSlope: 0.32
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_AnchorMin.x
|
|
||||||
path: Contents/Sidebar
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.083333336
|
|
||||||
value: 0
|
|
||||||
inSlope: 0.32
|
|
||||||
outSlope: 0.32
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.08
|
|
||||||
inSlope: 0.32
|
|
||||||
outSlope: 0.32
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_AnchorMax.x
|
|
||||||
path: Contents/Sidebar
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.083333336
|
|
||||||
value: 1.08
|
|
||||||
inSlope: -4
|
|
||||||
outSlope: -4
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.08
|
|
||||||
inSlope: -4
|
|
||||||
outSlope: -4
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_AnchorMin.x
|
|
||||||
path: Contents/MainContents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.083333336
|
|
||||||
value: 2
|
|
||||||
inSlope: -4
|
|
||||||
outSlope: -4
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: -4
|
|
||||||
outSlope: -4
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_AnchorMax.x
|
|
||||||
path: Contents/MainContents
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1.2
|
|
||||||
inSlope: -0.60000014
|
|
||||||
outSlope: -0.60000014
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: -0.60000014
|
|
||||||
outSlope: -0.60000014
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_AnchorMax.y
|
|
||||||
path: Topbar
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: -3
|
|
||||||
outSlope: -3
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
inSlope: -3
|
|
||||||
outSlope: -3
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Startup
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Contents
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1.05
|
|
||||||
inSlope: -0.5999998
|
|
||||||
outSlope: -0.5999998
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.85
|
|
||||||
inSlope: -0.5999998
|
|
||||||
outSlope: -0.5999998
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_AnchorMin.y
|
|
||||||
path: Topbar
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Topbar
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0.49999997
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.49999997
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Pivot.x
|
|
||||||
path: Settings
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: -0.36
|
|
||||||
outSlope: -0.36
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.88
|
|
||||||
inSlope: -0.36
|
|
||||||
outSlope: -0.36
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Pivot.y
|
|
||||||
path: Settings
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Settings
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_EulerEditorCurves: []
|
|
||||||
m_HasGenericRootTransform: 0
|
|
||||||
m_HasMotionFloatCurves: 0
|
|
||||||
m_Events: []
|
|
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 63a0e2075f5ba8d489d8cd318c14720b
|
|
||||||
timeCreated: 1637144068
|
|
||||||
licenseType: Free
|
|
||||||
NativeFormatImporter:
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,206 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!74 &7400000
|
|
||||||
AnimationClip:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: T_Quit
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Legacy: 0
|
|
||||||
m_Compressed: 0
|
|
||||||
m_UseHighQualityCurve: 1
|
|
||||||
m_RotationCurves: []
|
|
||||||
m_CompressedRotationCurves: []
|
|
||||||
m_EulerCurves: []
|
|
||||||
m_PositionCurves: []
|
|
||||||
m_ScaleCurves: []
|
|
||||||
m_FloatCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: Overlay
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 6
|
|
||||||
outSlope: 6
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.16666667
|
|
||||||
value: 1
|
|
||||||
inSlope: 6
|
|
||||||
outSlope: 6
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Alpha
|
|
||||||
path: Overlay
|
|
||||||
classID: 225
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Overlay/Quit
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_PPtrCurves: []
|
|
||||||
m_SampleRate: 60
|
|
||||||
m_WrapMode: 0
|
|
||||||
m_Bounds:
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
m_Extent: {x: 0, y: 0, z: 0}
|
|
||||||
m_ClipBindingConstant:
|
|
||||||
genericBindings:
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1984038178
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 1984038178
|
|
||||||
attribute: 1574349066
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 225
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 3251364855
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
pptrCurveMapping: []
|
|
||||||
m_AnimationClipSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
|
||||||
m_AdditiveReferencePoseTime: 0
|
|
||||||
m_StartTime: 0
|
|
||||||
m_StopTime: 0.16666667
|
|
||||||
m_OrientationOffsetY: 0
|
|
||||||
m_Level: 0
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_HasAdditiveReferencePose: 0
|
|
||||||
m_LoopTime: 1
|
|
||||||
m_LoopBlend: 0
|
|
||||||
m_LoopBlendOrientation: 0
|
|
||||||
m_LoopBlendPositionY: 0
|
|
||||||
m_LoopBlendPositionXZ: 0
|
|
||||||
m_KeepOriginalOrientation: 0
|
|
||||||
m_KeepOriginalPositionY: 1
|
|
||||||
m_KeepOriginalPositionXZ: 0
|
|
||||||
m_HeightFromFeet: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_EditorCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: Overlay
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 6
|
|
||||||
outSlope: 6
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.16666667
|
|
||||||
value: 1
|
|
||||||
inSlope: 6
|
|
||||||
outSlope: 6
|
|
||||||
tangentMode: 34
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_Alpha
|
|
||||||
path: Overlay
|
|
||||||
classID: 225
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Overlay/Quit
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_EulerEditorCurves: []
|
|
||||||
m_HasGenericRootTransform: 0
|
|
||||||
m_HasMotionFloatCurves: 0
|
|
||||||
m_Events: []
|
|
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: cc249d3462d795b46aff263bc04baee2
|
|
||||||
timeCreated: 1637144561
|
|
||||||
licenseType: Free
|
|
||||||
NativeFormatImporter:
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,368 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!74 &7400000
|
|
||||||
AnimationClip:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: T_Settings
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Legacy: 0
|
|
||||||
m_Compressed: 0
|
|
||||||
m_UseHighQualityCurve: 1
|
|
||||||
m_RotationCurves: []
|
|
||||||
m_CompressedRotationCurves: []
|
|
||||||
m_EulerCurves: []
|
|
||||||
m_PositionCurves: []
|
|
||||||
m_ScaleCurves: []
|
|
||||||
m_FloatCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0.88
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
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_Pivot.y
|
|
||||||
path: Settings
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: Settings
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: SettingsOverlay
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.5019608
|
|
||||||
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_Color.a
|
|
||||||
path: SettingsOverlay
|
|
||||||
classID: 114
|
|
||||||
script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Settings/OverlayBack
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_PPtrCurves: []
|
|
||||||
m_SampleRate: 60
|
|
||||||
m_WrapMode: 0
|
|
||||||
m_Bounds:
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
m_Extent: {x: 0, y: 0, z: 0}
|
|
||||||
m_ClipBindingConstant:
|
|
||||||
genericBindings:
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 473154195
|
|
||||||
attribute: 2952582672
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 224
|
|
||||||
customType: 28
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 135068749
|
|
||||||
attribute: 304273561
|
|
||||||
script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
|
||||||
typeID: 114
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 3949350096
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 473154195
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
path: 135068749
|
|
||||||
attribute: 2086281974
|
|
||||||
script: {fileID: 0}
|
|
||||||
typeID: 1
|
|
||||||
customType: 0
|
|
||||||
isPPtrCurve: 0
|
|
||||||
pptrCurveMapping: []
|
|
||||||
m_AnimationClipSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
|
||||||
m_AdditiveReferencePoseTime: 0
|
|
||||||
m_StartTime: 0
|
|
||||||
m_StopTime: 0.33333334
|
|
||||||
m_OrientationOffsetY: 0
|
|
||||||
m_Level: 0
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_HasAdditiveReferencePose: 0
|
|
||||||
m_LoopTime: 1
|
|
||||||
m_LoopBlend: 0
|
|
||||||
m_LoopBlendOrientation: 0
|
|
||||||
m_LoopBlendPositionY: 0
|
|
||||||
m_LoopBlendPositionXZ: 0
|
|
||||||
m_KeepOriginalOrientation: 0
|
|
||||||
m_KeepOriginalPositionY: 1
|
|
||||||
m_KeepOriginalPositionXZ: 0
|
|
||||||
m_HeightFromFeet: 0
|
|
||||||
m_Mirror: 0
|
|
||||||
m_EditorCurves:
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0.88
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0
|
|
||||||
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_Pivot.y
|
|
||||||
path: Settings
|
|
||||||
classID: 224
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: Settings
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
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_IsActive
|
|
||||||
path: SettingsOverlay
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 0
|
|
||||||
inSlope: 0
|
|
||||||
outSlope: 0
|
|
||||||
tangentMode: 136
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0.33333334
|
|
||||||
outWeight: 0.33333334
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 0.5019608
|
|
||||||
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_Color.a
|
|
||||||
path: SettingsOverlay
|
|
||||||
classID: 114
|
|
||||||
script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
|
||||||
- curve:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Curve:
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
- serializedVersion: 3
|
|
||||||
time: 0.33333334
|
|
||||||
value: 1
|
|
||||||
inSlope: Infinity
|
|
||||||
outSlope: Infinity
|
|
||||||
tangentMode: 103
|
|
||||||
weightedMode: 0
|
|
||||||
inWeight: 0
|
|
||||||
outWeight: 0
|
|
||||||
m_PreInfinity: 2
|
|
||||||
m_PostInfinity: 2
|
|
||||||
m_RotationOrder: 4
|
|
||||||
attribute: m_IsActive
|
|
||||||
path: Settings/OverlayBack
|
|
||||||
classID: 1
|
|
||||||
script: {fileID: 0}
|
|
||||||
m_EulerEditorCurves: []
|
|
||||||
m_HasGenericRootTransform: 0
|
|
||||||
m_HasMotionFloatCurves: 0
|
|
||||||
m_Events: []
|
|
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 961473ba26b4b1942806c224266f8db7
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 7400000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
1073
Assets/Console.unity
1073
Assets/Console.unity
File diff suppressed because it is too large
Load Diff
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 8a36c371ab6077d43ac28fe09b0fe675
|
|
||||||
timeCreated: 1620725915
|
|
||||||
licenseType: Free
|
|
||||||
DefaultImporter:
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -20,13 +20,13 @@ namespace Cryville.Common {
|
|||||||
/// <param name="succeeded">Whether the task has succeeded.</param>
|
/// <param name="succeeded">Whether the task has succeeded.</param>
|
||||||
/// <param name="result">The result.</param>
|
/// <param name="result">The result.</param>
|
||||||
public void Deliver(bool succeeded, T result) {
|
public void Deliver(bool succeeded, T result) {
|
||||||
if (Destination != null) Destination(succeeded, result);
|
Destination?.Invoke(succeeded, result);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Cancels the task.
|
/// Cancels the task.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Cancel() {
|
public void Cancel() {
|
||||||
if (CancelSource != null) CancelSource();
|
CancelSource?.Invoke();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -35,8 +35,8 @@ namespace Cryville.Common {
|
|||||||
return null;
|
return null;
|
||||||
else if (type.IsAssignableFrom(value.GetType()))
|
else if (type.IsAssignableFrom(value.GetType()))
|
||||||
return value;
|
return value;
|
||||||
else if (type.IsEnum && value is string) {
|
else if (type.IsEnum && value is string strValue) {
|
||||||
return Enum.Parse(type, (string)value);
|
return Enum.Parse(type, strValue);
|
||||||
}
|
}
|
||||||
throw new InvalidCastException(string.Format("Cannot cast {0} to {1}", value.GetType(), type));
|
throw new InvalidCastException(string.Format("Cannot cast {0} to {1}", value.GetType(), type));
|
||||||
}
|
}
|
||||||
|
@@ -4,7 +4,7 @@ using System.Diagnostics;
|
|||||||
namespace Cryville.Common {
|
namespace Cryville.Common {
|
||||||
public class Coroutine {
|
public class Coroutine {
|
||||||
readonly IEnumerator<float> _enumerator;
|
readonly IEnumerator<float> _enumerator;
|
||||||
readonly Stopwatch _stopwatch = new Stopwatch();
|
readonly Stopwatch _stopwatch = new();
|
||||||
public float Progress { get; private set; }
|
public float Progress { get; private set; }
|
||||||
public Coroutine(IEnumerator<float> enumerator) {
|
public Coroutine(IEnumerator<float> enumerator) {
|
||||||
_enumerator = enumerator;
|
_enumerator = enumerator;
|
||||||
|
@@ -1,37 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace Cryville.Common.Culture {
|
|
||||||
public static class ScriptUtils {
|
|
||||||
public static string[] Scripts = new string[] { "adlm", "afak", "aghb", "ahom", "arab", "aran", "armi", "armn", "avst", "bali", "bamu", "bass", "batk", "beng", "bhks", "blis", "bopo", "brah", "brai", "bugi", "buhd", "cakm", "cans", "cari", "cham", "cher", "chrs", "cirt", "copt", "cpmn", "cprt", "cyrl", "cyrs", "deva", "diak", "dogr", "dsrt", "dupl", "egyd", "egyh", "egyp", "elba", "elym", "ethi", "geok", "geor", "glag", "gong", "gonm", "goth", "gran", "grek", "gujr", "guru", "hanb", "hang", "hani", "hano", "hans", "hant", "hatr", "hebr", "hira", "hluw", "hmng", "hmnp", "hrkt", "hung", "inds", "ital", "jamo", "java", "jpan", "jurc", "kali", "kana", "khar", "khmr", "khoj", "kitl", "kits", "knda", "kore", "kpel", "kthi", "lana", "laoo", "latf", "latg", "latn", "leke", "lepc", "limb", "lina", "linb", "lisu", "loma", "lyci", "lydi", "mahj", "maka", "mand", "mani", "marc", "maya", "medf", "mend", "merc", "mero", "mlym", "modi", "mong", "moon", "mroo", "mtei", "mult", "mymr", "nand", "narb", "nbat", "newa", "nkdb", "nkgb", "nkoo", "nshu", "ogam", "olck", "orkh", "orya", "osge", "osma", "ougr", "palm", "pauc", "pcun", "pelm", "perm", "phag", "phli", "phlp", "phlv", "phnx", "piqd", "plrd", "prti", "psin", "qaaa", "qaai", "qabx", "ranj", "rjng", "rohg", "roro", "runr", "samr", "sara", "sarb", "saur", "sgnw", "shaw", "shrd", "shui", "sidd", "sind", "sinh", "sogd", "sogo", "sora", "soyo", "sund", "sylo", "syrc", "syre", "syrj", "syrn", "tagb", "takr", "tale", "talu", "taml", "tang", "tavt", "telu", "teng", "tfng", "tglg", "thaa", "thai", "tibt", "tirh", "toto", "ugar", "vaii", "visp", "wara", "wcho", "wole", "xpeo", "xsux", "yezi", "yiii", "zanb", "zinh", "zmth", "zsye", "zsym", "zxxx", "zyyy", "zzzz", };
|
|
||||||
public static string UltimateFallbackScript = "zyyy";
|
|
||||||
public static Dictionary<string, string[]> FallbackScriptMap = new Dictionary<string, string[]> {
|
|
||||||
{ "aran", new string[] { "arab" } }, { "cyrs", new string[] { "cyrl" } },
|
|
||||||
{ "hanb", new string[] { "hant", "bopo" } }, { "hans", new string[] { "hani" } }, { "hant", new string[] { "hani" } },
|
|
||||||
{ "hrkt", new string[] { "hira", "kana" } }, { "jpan", new string[] { "hani", "hira", "kana" } },
|
|
||||||
{ "jamo", new string[] { "hang" } }, { "kore", new string[] { "hang", "hani" } },
|
|
||||||
{ "latf", new string[] { "latn" } }, { "latg", new string[] { "latn" } },
|
|
||||||
{ "syre", new string[] { "syrc" } }, { "syrj", new string[] { "syrc" } }, { "syrn", new string[] { "syrc" } },
|
|
||||||
{ "zsye", new string[] { "zsym" } },
|
|
||||||
};
|
|
||||||
public static void FillKeysWithScripts(IDictionary dict, Func<object> value) {
|
|
||||||
foreach (var s in Scripts) dict.Add(s, value());
|
|
||||||
}
|
|
||||||
public static IEnumerable<string> EnumerateFallbackScripts(string script) {
|
|
||||||
if (string.IsNullOrEmpty(script)) throw new ArgumentNullException("script");
|
|
||||||
script = script.ToLower();
|
|
||||||
if (script == UltimateFallbackScript) {
|
|
||||||
yield return null;
|
|
||||||
yield break;
|
|
||||||
}
|
|
||||||
string[] fblist;
|
|
||||||
if (FallbackScriptMap.TryGetValue(script, out fblist)) {
|
|
||||||
foreach (var fb in fblist) {
|
|
||||||
yield return fb;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else yield return UltimateFallbackScript;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -16,13 +16,11 @@ namespace Cryville.Common.Font {
|
|||||||
}
|
}
|
||||||
public void Close() { Reader.Close(); }
|
public void Close() { Reader.Close(); }
|
||||||
|
|
||||||
public static FontFile Create(FileInfo file) {
|
public static FontFile Create(FileInfo file) => file.Extension switch {
|
||||||
switch (file.Extension) {
|
".ttf" or ".otf" => new FontFileTTF(file),
|
||||||
case ".ttf": case ".otf": return new FontFileTTF(file);
|
".ttc" or ".otc" => new FontFileTTC(file),
|
||||||
case ".ttc": case ".otc": return new FontFileTTC(file);
|
_ => null,
|
||||||
default: return null;
|
};
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Enumerator GetEnumerator() {
|
public Enumerator GetEnumerator() {
|
||||||
return new Enumerator(this);
|
return new Enumerator(this);
|
||||||
@@ -42,7 +40,7 @@ namespace Cryville.Common.Font {
|
|||||||
_index = -1;
|
_index = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Typeface Current {
|
public readonly Typeface Current {
|
||||||
get {
|
get {
|
||||||
if (_index < 0)
|
if (_index < 0)
|
||||||
throw new InvalidOperationException(_index == -1 ? "Enum not started" : "Enum ended");
|
throw new InvalidOperationException(_index == -1 ? "Enum not started" : "Enum ended");
|
||||||
@@ -50,7 +48,7 @@ namespace Cryville.Common.Font {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
object IEnumerator.Current { get { return Current; } }
|
readonly object IEnumerator.Current => Current;
|
||||||
|
|
||||||
public void Dispose() {
|
public void Dispose() {
|
||||||
_index = -2;
|
_index = -2;
|
||||||
|
@@ -4,24 +4,25 @@ using System.Linq;
|
|||||||
|
|
||||||
namespace Cryville.Common.Font {
|
namespace Cryville.Common.Font {
|
||||||
public abstract class FontManager {
|
public abstract class FontManager {
|
||||||
public IReadOnlyDictionary<string, IReadOnlyCollection<Typeface>> MapFullNameToTypeface { get; private set; }
|
public IReadOnlyDictionary<string, Typeface> MapFullNameToTypeface { get; private set; }
|
||||||
public IReadOnlyDictionary<string, IReadOnlyCollection<Typeface>> MapNameToTypefaces { get; private set; }
|
public IReadOnlyDictionary<string, IReadOnlyCollection<Typeface>> MapNameToTypefaces { get; private set; }
|
||||||
public FontManager() {
|
public FontManager() {
|
||||||
var map1 = new Dictionary<string, List<Typeface>>();
|
var map1 = new Dictionary<string, Typeface>();
|
||||||
var map2 = new Dictionary<string, List<Typeface>>();
|
var map2 = new Dictionary<string, List<Typeface>>();
|
||||||
foreach (var f in EnumerateAllTypefaces()) {
|
foreach (var f in EnumerateAllTypefaces()) {
|
||||||
List<Typeface> set1;
|
if (!map1.ContainsKey(f.FullName)) {
|
||||||
if (!map1.TryGetValue(f.FullName, out set1)) {
|
map1.Add(f.FullName, f);
|
||||||
map1.Add(f.FullName, set1 = new List<Typeface>());
|
|
||||||
}
|
}
|
||||||
set1.Add(f);
|
else {
|
||||||
List<Typeface> set2;
|
Shared.Logger.Log(3, "UI", "Discarding a font with a duplicate full name {0}", f.FullName);
|
||||||
if (!map2.TryGetValue(f.FamilyName, out set2)) {
|
continue;
|
||||||
|
}
|
||||||
|
if (!map2.TryGetValue(f.FamilyName, out List<Typeface> set2)) {
|
||||||
map2.Add(f.FamilyName, set2 = new List<Typeface>());
|
map2.Add(f.FamilyName, set2 = new List<Typeface>());
|
||||||
}
|
}
|
||||||
set2.Add(f);
|
set2.Add(f);
|
||||||
}
|
}
|
||||||
MapFullNameToTypeface = map1.ToDictionary(i => i.Key, i => (IReadOnlyCollection<Typeface>)i.Value);
|
MapFullNameToTypeface = map1;
|
||||||
MapNameToTypefaces = map2.ToDictionary(i => i.Key, i => (IReadOnlyCollection<Typeface>)i.Value);
|
MapNameToTypefaces = map2.ToDictionary(i => i.Key, i => (IReadOnlyCollection<Typeface>)i.Value);
|
||||||
}
|
}
|
||||||
protected abstract IEnumerable<Typeface> EnumerateAllTypefaces();
|
protected abstract IEnumerable<Typeface> EnumerateAllTypefaces();
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
using Cryville.Common.Culture;
|
using Cryville.Culture;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -7,20 +7,22 @@ namespace Cryville.Common.Font {
|
|||||||
public abstract class FontMatcher {
|
public abstract class FontMatcher {
|
||||||
protected FontManager Manager { get; private set; }
|
protected FontManager Manager { get; private set; }
|
||||||
public FontMatcher(FontManager manager) { Manager = manager; }
|
public FontMatcher(FontManager manager) { Manager = manager; }
|
||||||
public abstract IEnumerable<Typeface> MatchScript(string script = null, bool distinctFamily = false);
|
public abstract IEnumerable<Typeface> MatchLanguage(LanguageId lang, bool distinctFamily = false);
|
||||||
}
|
}
|
||||||
public class FallbackListFontMatcher : FontMatcher {
|
public class FallbackListFontMatcher : FontMatcher {
|
||||||
public Dictionary<string, List<string>> MapScriptToTypefaces = new Dictionary<string, List<string>>();
|
readonly LanguageMatching _matcher;
|
||||||
|
static readonly string UltimateFallbackScript = "zzzz";
|
||||||
|
public Dictionary<string, List<string>> MapScriptToTypefaces = new();
|
||||||
public static Dictionary<string, List<string>> GetDefaultWindowsFallbackMap() {
|
public static Dictionary<string, List<string>> GetDefaultWindowsFallbackMap() {
|
||||||
var map = new Dictionary<string, List<string>>();
|
var map = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
|
||||||
ScriptUtils.FillKeysWithScripts(map, () => new List<string>());
|
FillKeysWithScripts(map, () => new List<string>());
|
||||||
// Reference: https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/platform/fonts/win/font_fallback_win.cc
|
// Reference: https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/platform/fonts/win/font_fallback_win.cc
|
||||||
map["zyyy"].Insert(0, "SimSun"); // Custom
|
map[UltimateFallbackScript].Insert(0, "SimSun"); // Custom
|
||||||
map["zyyy"].Insert(0, "SimHei"); // Custom
|
map[UltimateFallbackScript].Insert(0, "SimHei"); // Custom
|
||||||
map["zyyy"].Insert(0, "Microsoft YaHei"); // Custom
|
map[UltimateFallbackScript].Insert(0, "Microsoft YaHei"); // Custom
|
||||||
map["zyyy"].Insert(0, "Arial");
|
map[UltimateFallbackScript].Insert(0, "Arial");
|
||||||
map["zyyy"].Insert(0, "Times New Roman");
|
map[UltimateFallbackScript].Insert(0, "Times New Roman");
|
||||||
map["zyyy"].Insert(0, "Segoe UI"); // Custom
|
map[UltimateFallbackScript].Insert(0, "Segoe UI"); // Custom
|
||||||
map["arab"].Insert(0, "Tahoma");
|
map["arab"].Insert(0, "Tahoma");
|
||||||
map["cyrl"].Insert(0, "Times New Roman");
|
map["cyrl"].Insert(0, "Times New Roman");
|
||||||
map["grek"].Insert(0, "Times New Roman");
|
map["grek"].Insert(0, "Times New Roman");
|
||||||
@@ -55,6 +57,7 @@ namespace Cryville.Common.Font {
|
|||||||
map["cher"].Insert(0, "Plantagenet");
|
map["cher"].Insert(0, "Plantagenet");
|
||||||
map["ethi"].Insert(0, "Nyala");
|
map["ethi"].Insert(0, "Nyala");
|
||||||
map["khmr"].Insert(0, "DaunPenh MoolBoran");
|
map["khmr"].Insert(0, "DaunPenh MoolBoran");
|
||||||
|
map["kore"].Insert(0, "Malgun Gothic"); // Reference: https://en.wikipedia.org/wiki/List_of_typefaces_included_with_Microsoft_Windows
|
||||||
map["laoo"].Insert(0, "DokChampa");
|
map["laoo"].Insert(0, "DokChampa");
|
||||||
map["mong"].Insert(0, "Mongolian Baiti");
|
map["mong"].Insert(0, "Mongolian Baiti");
|
||||||
map["orya"].Insert(0, "Kalinga");
|
map["orya"].Insert(0, "Kalinga");
|
||||||
@@ -158,12 +161,12 @@ namespace Cryville.Common.Font {
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
public static Dictionary<string, List<string>> GetDefaultAndroidFallbackMap() {
|
public static Dictionary<string, List<string>> GetDefaultAndroidFallbackMap() {
|
||||||
var map = new Dictionary<string, List<string>>();
|
var map = new Dictionary<string, List<string>>(StringComparer.OrdinalIgnoreCase);
|
||||||
ScriptUtils.FillKeysWithScripts(map, () => new List<string>());
|
FillKeysWithScripts(map, () => new List<string>());
|
||||||
map["zyyy"].Insert(0, "Noto Sans CJK TC"); // TODO Modify default fallback
|
map[UltimateFallbackScript].Insert(0, "Noto Sans CJK TC"); // TODO Modify default fallback
|
||||||
map["zyyy"].Insert(0, "Noto Sans CJK JP");
|
map[UltimateFallbackScript].Insert(0, "Noto Sans CJK JP");
|
||||||
map["zyyy"].Insert(0, "Noto Sans CJK SC");
|
map[UltimateFallbackScript].Insert(0, "Noto Sans CJK SC");
|
||||||
map["zyyy"].Insert(0, "Roboto");
|
map[UltimateFallbackScript].Insert(0, "Roboto");
|
||||||
map["zsye"].Insert(0, "Noto Color Emoji");
|
map["zsye"].Insert(0, "Noto Color Emoji");
|
||||||
map["zsye"].Add("Noto Color Emoji Flags");
|
map["zsye"].Add("Noto Color Emoji Flags");
|
||||||
map["arab"].Insert(0, "Noto Naskh Arabic");
|
map["arab"].Insert(0, "Noto Naskh Arabic");
|
||||||
@@ -275,9 +278,9 @@ namespace Cryville.Common.Font {
|
|||||||
map["sund"].Insert(0, "Noto Sans Sundanese");
|
map["sund"].Insert(0, "Noto Sans Sundanese");
|
||||||
map["sylo"].Insert(0, "Noto Sans Syloti Nagri");
|
map["sylo"].Insert(0, "Noto Sans Syloti Nagri");
|
||||||
map["zsym"].Insert(0, "Noto Sans Symbols");
|
map["zsym"].Insert(0, "Noto Sans Symbols");
|
||||||
map["syrn"].Insert(0, "Noto Sans Syriac Eastern");
|
map["syrc"].Add("Noto Sans Syriac Eastern");
|
||||||
map["syre"].Insert(0, "Noto Sans Syriac Estrangela");
|
map["syrc"].Add("Noto Sans Syriac Western");
|
||||||
map["syrj"].Insert(0, "Noto Sans Syriac Western");
|
map["syrc"].Add("Noto Sans Syriac Estrangela");
|
||||||
map["tglg"].Insert(0, "Noto Sans Tagalog");
|
map["tglg"].Insert(0, "Noto Sans Tagalog");
|
||||||
map["tagb"].Insert(0, "Noto Sans Tagbanwa");
|
map["tagb"].Insert(0, "Noto Sans Tagbanwa");
|
||||||
map["tale"].Insert(0, "Noto Sans Tai Le");
|
map["tale"].Insert(0, "Noto Sans Tai Le");
|
||||||
@@ -296,33 +299,46 @@ namespace Cryville.Common.Font {
|
|||||||
map["yiii"].Insert(0, "Noto Sans Yi");
|
map["yiii"].Insert(0, "Noto Sans Yi");
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
public FallbackListFontMatcher(FontManager manager) : base(manager) { }
|
static void FillKeysWithScripts<T>(IDictionary<string, T> map, Func<T> value) {
|
||||||
public override IEnumerable<Typeface> MatchScript(string script = null, bool distinctFamily = false) {
|
foreach (var s in IdValidity.Enumerate("script")) map.Add(s, value());
|
||||||
if (string.IsNullOrEmpty(script)) script = ScriptUtils.UltimateFallbackScript;
|
}
|
||||||
List<string> candidates;
|
|
||||||
IEnumerable<string> candidateScripts = new string[] { script };
|
public FallbackListFontMatcher(LanguageMatching matcher, FontManager manager) : base(manager) {
|
||||||
while (candidateScripts != null) {
|
_matcher = matcher;
|
||||||
foreach (var candidateScript in candidateScripts) {
|
}
|
||||||
if (MapScriptToTypefaces.TryGetValue(candidateScript, out candidates)) {
|
public override IEnumerable<Typeface> MatchLanguage(LanguageId lang, bool distinctFamily = false) {
|
||||||
foreach (var candidate in candidates) {
|
var supported = MapScriptToTypefaces.Keys.Select(i => new LanguageId(i)).ToList();
|
||||||
IReadOnlyCollection<Typeface> typefaces1;
|
bool flag = false;
|
||||||
if (Manager.MapFullNameToTypeface.TryGetValue(candidate, out typefaces1)) {
|
while (_matcher.Match(lang, supported, out var match, out var distance)) {
|
||||||
foreach (var typeface in typefaces1) {
|
if (distance > 40) break;
|
||||||
yield return typeface;
|
Shared.Logger.Log(0, "UI", "Matching fonts for language {0}, distance = {1}", match, distance);
|
||||||
}
|
if (match.Script.Equals(UltimateFallbackScript, StringComparison.OrdinalIgnoreCase)) {
|
||||||
}
|
flag = true;
|
||||||
if (distinctFamily) continue;
|
}
|
||||||
IReadOnlyCollection<Typeface> typefaces2;
|
var candidates = MapScriptToTypefaces[match.Script];
|
||||||
if (Manager.MapNameToTypefaces.TryGetValue(candidate, out typefaces2)) {
|
foreach (var typeface in EnumerateTypefaces(candidates, distinctFamily)) {
|
||||||
foreach (var typeface in typefaces2) {
|
yield return typeface;
|
||||||
if (typefaces1.Contains(typeface)) continue;
|
}
|
||||||
yield return typeface;
|
supported.Remove(match);
|
||||||
}
|
}
|
||||||
}
|
if (flag) yield break;
|
||||||
}
|
Shared.Logger.Log(0, "UI", "Matching fallback fonts");
|
||||||
|
foreach (var typeface in EnumerateTypefaces(MapScriptToTypefaces[UltimateFallbackScript], distinctFamily)) {
|
||||||
|
yield return typeface;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
IEnumerable<Typeface> EnumerateTypefaces(List<string> candidates, bool distinctFamily) {
|
||||||
|
foreach (var candidate in candidates) {
|
||||||
|
if (Manager.MapFullNameToTypeface.TryGetValue(candidate, out var typeface1)) {
|
||||||
|
yield return typeface1;
|
||||||
|
}
|
||||||
|
if (distinctFamily) continue;
|
||||||
|
if (Manager.MapNameToTypefaces.TryGetValue(candidate, out IReadOnlyCollection<Typeface> typefaces2)) {
|
||||||
|
foreach (var typeface in typefaces2) {
|
||||||
|
if (typeface1 == typeface) continue;
|
||||||
|
yield return typeface;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
candidateScripts = ScriptUtils.EnumerateFallbackScripts(script);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
|
#pragma warning disable IDE0049
|
||||||
namespace Cryville.Common.Font {
|
namespace Cryville.Common.Font {
|
||||||
public abstract class FontTable<T> {
|
public abstract class FontTable<T> {
|
||||||
protected UInt32 Offset { get; private set; }
|
protected UInt32 Offset { get; private set; }
|
||||||
@@ -24,15 +25,18 @@ namespace Cryville.Common.Font {
|
|||||||
readonly UInt16 majorVersion;
|
readonly UInt16 majorVersion;
|
||||||
readonly UInt16 minorVersion;
|
readonly UInt16 minorVersion;
|
||||||
readonly UInt32 numFonts;
|
readonly UInt32 numFonts;
|
||||||
readonly List<UInt32> tableDirectoryOffsets = new List<UInt32>();
|
readonly List<UInt32> tableDirectoryOffsets = new();
|
||||||
|
#pragma warning disable IDE0052 // Reserved
|
||||||
readonly String dsigTag;
|
readonly String dsigTag;
|
||||||
readonly UInt32 dsigLength;
|
readonly UInt32 dsigLength;
|
||||||
readonly UInt32 dsigOffset;
|
readonly UInt32 dsigOffset;
|
||||||
|
#pragma warning restore IDE0052 // Reserved
|
||||||
public TTCHeader(BinaryReader reader, UInt32 offset) : base(reader, offset) {
|
public TTCHeader(BinaryReader reader, UInt32 offset) : base(reader, offset) {
|
||||||
ttcTag = reader.ReadTag();
|
ttcTag = reader.ReadTag();
|
||||||
if (ttcTag != "ttcf") throw new NotImplementedException();
|
if (ttcTag != "ttcf") throw new NotSupportedException();
|
||||||
majorVersion = reader.ReadUInt16();
|
majorVersion = reader.ReadUInt16();
|
||||||
minorVersion = reader.ReadUInt16();
|
minorVersion = reader.ReadUInt16();
|
||||||
|
if (minorVersion != 0) throw new NotSupportedException();
|
||||||
numFonts = reader.ReadUInt32();
|
numFonts = reader.ReadUInt32();
|
||||||
for (UInt32 i = 0; i < numFonts; i++) tableDirectoryOffsets.Add(reader.ReadUInt32());
|
for (UInt32 i = 0; i < numFonts; i++) tableDirectoryOffsets.Add(reader.ReadUInt32());
|
||||||
if (majorVersion == 2) {
|
if (majorVersion == 2) {
|
||||||
@@ -52,12 +56,16 @@ namespace Cryville.Common.Font {
|
|||||||
public sealed class TableDirectory : FontTable<TableRecord, object> {
|
public sealed class TableDirectory : FontTable<TableRecord, object> {
|
||||||
readonly UInt32 sfntVersion;
|
readonly UInt32 sfntVersion;
|
||||||
readonly UInt16 numTables;
|
readonly UInt16 numTables;
|
||||||
|
#pragma warning disable IDE0052 // Reserved
|
||||||
readonly UInt16 searchRange;
|
readonly UInt16 searchRange;
|
||||||
readonly UInt16 entrySelector;
|
readonly UInt16 entrySelector;
|
||||||
readonly UInt16 rangeShift;
|
readonly UInt16 rangeShift;
|
||||||
readonly List<TableRecord> tableRecords = new List<TableRecord>();
|
#pragma warning restore IDE0052 // Reserved
|
||||||
|
readonly List<TableRecord> tableRecords = new();
|
||||||
public TableDirectory(BinaryReader reader, UInt32 offset) : base(reader, offset) {
|
public TableDirectory(BinaryReader reader, UInt32 offset) : base(reader, offset) {
|
||||||
sfntVersion = reader.ReadUInt32();
|
sfntVersion = reader.ReadUInt32();
|
||||||
|
if (sfntVersion != 0x00010000 && sfntVersion != 0x4F54544F &&
|
||||||
|
sfntVersion != 0x74727565 && sfntVersion != 0x74797031) throw new NotSupportedException();
|
||||||
numTables = reader.ReadUInt16();
|
numTables = reader.ReadUInt16();
|
||||||
searchRange = reader.ReadUInt16();
|
searchRange = reader.ReadUInt16();
|
||||||
entrySelector = reader.ReadUInt16();
|
entrySelector = reader.ReadUInt16();
|
||||||
@@ -73,13 +81,11 @@ namespace Cryville.Common.Font {
|
|||||||
public override IReadOnlyList<TableRecord> GetItems() {
|
public override IReadOnlyList<TableRecord> GetItems() {
|
||||||
return tableRecords;
|
return tableRecords;
|
||||||
}
|
}
|
||||||
public override object GetSubTable(TableRecord item) {
|
public override object GetSubTable(TableRecord item) => item.tableTag switch {
|
||||||
switch (item.tableTag) {
|
"name" => new NameTable(Reader, item.offset),
|
||||||
case "name": return new NameTable(Reader, item.offset);
|
"meta" => new MetaTable(Reader, item.offset),
|
||||||
case "meta": return new MetaTable(Reader, item.offset);
|
_ => throw new NotImplementedException(),
|
||||||
default: throw new NotImplementedException();
|
};
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
public struct TableRecord {
|
public struct TableRecord {
|
||||||
public string tableTag;
|
public string tableTag;
|
||||||
@@ -91,56 +97,71 @@ namespace Cryville.Common.Font {
|
|||||||
readonly UInt16 version;
|
readonly UInt16 version;
|
||||||
readonly UInt16 count;
|
readonly UInt16 count;
|
||||||
readonly UInt16 storageOffset;
|
readonly UInt16 storageOffset;
|
||||||
readonly List<NameRecord> nameRecord = new List<NameRecord>();
|
readonly List<NameRecord> nameRecord = new();
|
||||||
readonly UInt16 langTagCount;
|
readonly UInt16 langTagCount;
|
||||||
readonly List<LangTagRecord> langTagRecord = new List<LangTagRecord>();
|
readonly List<LangTagRecord> langTagRecord = new();
|
||||||
public NameTable(BinaryReader reader, UInt32 offset) : base(reader, offset) {
|
public NameTable(BinaryReader reader, UInt32 offset) : base(reader, offset) {
|
||||||
version = reader.ReadUInt16();
|
version = reader.ReadUInt16();
|
||||||
count = reader.ReadUInt16();
|
count = reader.ReadUInt16();
|
||||||
storageOffset = reader.ReadUInt16();
|
storageOffset = reader.ReadUInt16();
|
||||||
for (UInt16 i = 0; i < count; i++)
|
for (UInt16 i = 0; i < count; i++)
|
||||||
nameRecord.Add(new NameRecord {
|
nameRecord.Add(new NameRecord(
|
||||||
platformID = reader.ReadUInt16(),
|
reader.ReadUInt16(),
|
||||||
encodingID = reader.ReadUInt16(),
|
reader.ReadUInt16(),
|
||||||
languageID = reader.ReadUInt16(),
|
reader.ReadUInt16(),
|
||||||
nameID = (NameID)reader.ReadUInt16(),
|
(NameID)reader.ReadUInt16(),
|
||||||
length = reader.ReadUInt16(),
|
reader.ReadUInt16(),
|
||||||
stringOffset = reader.ReadUInt16(),
|
reader.ReadUInt16()
|
||||||
});
|
));
|
||||||
if (version == 1) {
|
if (version == 1) {
|
||||||
langTagCount = reader.ReadUInt16();
|
langTagCount = reader.ReadUInt16();
|
||||||
for (UInt16 i = 0; i < langTagCount; i++)
|
for (UInt16 i = 0; i < langTagCount; i++)
|
||||||
langTagRecord.Add(new LangTagRecord {
|
langTagRecord.Add(new LangTagRecord(
|
||||||
length = reader.ReadUInt16(),
|
reader.ReadUInt16(),
|
||||||
langTagOffset = reader.ReadUInt16(),
|
reader.ReadUInt16()
|
||||||
});
|
));
|
||||||
|
}
|
||||||
|
foreach (var i in nameRecord)
|
||||||
|
i.Load(reader, offset + storageOffset);
|
||||||
|
if (version == 1) {
|
||||||
|
foreach (var i in langTagRecord)
|
||||||
|
i.Load(reader, offset + storageOffset);
|
||||||
}
|
}
|
||||||
UInt32 origin = (UInt32)reader.BaseStream.Position;
|
|
||||||
for (int i = 0; i < nameRecord.Count; i++) nameRecord[i] = nameRecord[i].Load(reader, origin);
|
|
||||||
for (int i = 0; i < langTagRecord.Count; i++) langTagRecord[i] = langTagRecord[i].Load(reader, origin);
|
|
||||||
}
|
}
|
||||||
public sealed override IReadOnlyList<NameRecord> GetItems() {
|
public sealed override IReadOnlyList<NameRecord> GetItems() {
|
||||||
return nameRecord;
|
return nameRecord;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public struct NameRecord {
|
public class NameRecord {
|
||||||
public UInt16 platformID;
|
public UInt16 PlatformID { get; private set; }
|
||||||
public UInt16 encodingID;
|
public UInt16 EncodingID { get; private set; }
|
||||||
public UInt16 languageID;
|
public UInt16 LanguageID { get; private set; }
|
||||||
public NameID nameID;
|
public NameID NameID { get; private set; }
|
||||||
public UInt16 length;
|
public UInt16 Length { get; private set; }
|
||||||
public UInt16 stringOffset;
|
public UInt16 StringOffset { get; private set; }
|
||||||
public String value { get; private set; }
|
public String Value { get; private set; }
|
||||||
public NameRecord Load(BinaryReader reader, UInt32 origin) {
|
public NameRecord(UInt16 platformID, UInt16 encodingID, UInt16 languageID, NameID nameID, UInt16 length, UInt16 stringOffset) {
|
||||||
reader.BaseStream.Position = origin + stringOffset;
|
PlatformID = platformID;
|
||||||
|
EncodingID = encodingID;
|
||||||
|
LanguageID = languageID;
|
||||||
|
NameID = nameID;
|
||||||
|
Length = length;
|
||||||
|
StringOffset = stringOffset;
|
||||||
|
}
|
||||||
|
public void Load(BinaryReader reader, UInt32 origin) {
|
||||||
|
reader.BaseStream.Position = origin + StringOffset;
|
||||||
Encoding encoding;
|
Encoding encoding;
|
||||||
switch (platformID) {
|
try {
|
||||||
case 0: encoding = Encoding.BigEndianUnicode; break;
|
switch (PlatformID) {
|
||||||
case 3: encoding = Encoding.BigEndianUnicode; break;
|
case 0: encoding = Encoding.BigEndianUnicode; break;
|
||||||
default: return this;
|
case 1: encoding = Encoding.GetEncoding(10000 + EncodingID); break;
|
||||||
|
case 3: encoding = Encoding.BigEndianUnicode; break;
|
||||||
|
default: return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
value = encoding.GetString(reader.ReadBytes(length));
|
catch (NotSupportedException) { return; }
|
||||||
return this;
|
catch (ArgumentException) { return; }
|
||||||
|
Value = encoding.GetString(reader.ReadBytes(Length));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public enum NameID : UInt16 {
|
public enum NameID : UInt16 {
|
||||||
@@ -171,47 +192,58 @@ namespace Cryville.Common.Font {
|
|||||||
DarkBackgroundPalette = 24,
|
DarkBackgroundPalette = 24,
|
||||||
VariationsPostScriptNamePrefix = 25,
|
VariationsPostScriptNamePrefix = 25,
|
||||||
}
|
}
|
||||||
public struct LangTagRecord {
|
public class LangTagRecord {
|
||||||
public UInt16 length;
|
public UInt16 Length { get; private set; }
|
||||||
public UInt16 langTagOffset;
|
public UInt16 LangTagOffset { get; private set; }
|
||||||
public String value { get; private set; }
|
public String Value { get; private set; }
|
||||||
public LangTagRecord Load(BinaryReader reader, UInt32 origin) {
|
public LangTagRecord(UInt16 length, UInt16 langTagOffset) {
|
||||||
reader.BaseStream.Position = origin + langTagOffset;
|
Length = length;
|
||||||
value = Encoding.BigEndianUnicode.GetString(reader.ReadBytes(length));
|
LangTagOffset = langTagOffset;
|
||||||
return this;
|
}
|
||||||
|
public void Load(BinaryReader reader, UInt32 origin) {
|
||||||
|
reader.BaseStream.Position = origin + LangTagOffset;
|
||||||
|
Value = Encoding.BigEndianUnicode.GetString(reader.ReadBytes(Length));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public sealed class MetaTable : FontTable<DataMap> {
|
public sealed class MetaTable : FontTable<DataMap> {
|
||||||
readonly UInt32 version;
|
readonly UInt32 version;
|
||||||
|
#pragma warning disable IDE0052 // Reserved
|
||||||
readonly UInt32 flags;
|
readonly UInt32 flags;
|
||||||
|
#pragma warning restore IDE0052 // Reserved
|
||||||
readonly UInt32 dataMapCount;
|
readonly UInt32 dataMapCount;
|
||||||
readonly List<DataMap> dataMaps = new List<DataMap>();
|
readonly List<DataMap> dataMaps = new();
|
||||||
public MetaTable(BinaryReader reader, UInt32 offset) : base(reader, offset) {
|
public MetaTable(BinaryReader reader, UInt32 offset) : base(reader, offset) {
|
||||||
version = reader.ReadUInt32();
|
version = reader.ReadUInt32();
|
||||||
|
if (version != 1) throw new NotSupportedException();
|
||||||
flags = reader.ReadUInt32();
|
flags = reader.ReadUInt32();
|
||||||
reader.ReadUInt32();
|
reader.ReadUInt32();
|
||||||
dataMapCount = reader.ReadUInt32();
|
dataMapCount = reader.ReadUInt32();
|
||||||
for (UInt32 i = 0; i < dataMapCount; i++)
|
for (UInt32 i = 0; i < dataMapCount; i++)
|
||||||
dataMaps.Add(new DataMap {
|
dataMaps.Add(new DataMap (
|
||||||
tag = reader.ReadTag(),
|
reader.ReadTag(),
|
||||||
dataOffset = reader.ReadUInt32(),
|
reader.ReadUInt32(),
|
||||||
dataLength = reader.ReadUInt32(),
|
reader.ReadUInt32()
|
||||||
});
|
));
|
||||||
for (int i = 0; i < dataMaps.Count; i++) dataMaps[i] = dataMaps[i].Load(reader, offset);
|
foreach (var i in dataMaps)
|
||||||
|
i.Load(reader, offset);
|
||||||
}
|
}
|
||||||
public sealed override IReadOnlyList<DataMap> GetItems() {
|
public sealed override IReadOnlyList<DataMap> GetItems() {
|
||||||
return dataMaps;
|
return dataMaps;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public struct DataMap {
|
public class DataMap {
|
||||||
public String tag;
|
public String Tag { get; private set; }
|
||||||
public UInt32 dataOffset;
|
public UInt32 DataOffset { get; private set; }
|
||||||
public UInt32 dataLength;
|
public UInt32 DataLength { get; private set; }
|
||||||
public String value { get; private set; }
|
public String Value { get; private set; }
|
||||||
public DataMap Load(BinaryReader reader, UInt32 origin) {
|
public DataMap(String tag, UInt32 dataOffset, UInt32 dataLength) {
|
||||||
reader.BaseStream.Position = origin + dataOffset;
|
Tag = tag;
|
||||||
value = Encoding.ASCII.GetString(reader.ReadBytes((int)dataLength));
|
DataOffset = dataOffset;
|
||||||
return this;
|
DataLength = dataLength;
|
||||||
|
}
|
||||||
|
public void Load(BinaryReader reader, UInt32 origin) {
|
||||||
|
reader.BaseStream.Position = origin + DataOffset;
|
||||||
|
Value = Encoding.ASCII.GetString(reader.ReadBytes((int)DataLength));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public static class BinaryReaderExtensions {
|
public static class BinaryReaderExtensions {
|
||||||
|
@@ -23,9 +23,9 @@ namespace Cryville.Common.Font {
|
|||||||
protected override void GetName(BinaryReader reader) {
|
protected override void GetName(BinaryReader reader) {
|
||||||
var dir = new TableDirectory(reader, (uint)reader.BaseStream.Position);
|
var dir = new TableDirectory(reader, (uint)reader.BaseStream.Position);
|
||||||
var nameTable = (NameTable)dir.GetSubTable((from i in dir.GetItems() where i.tableTag == "name" select i).Single());
|
var nameTable = (NameTable)dir.GetSubTable((from i in dir.GetItems() where i.tableTag == "name" select i).Single());
|
||||||
FamilyName = (from i in nameTable.GetItems() where i.nameID == NameID.FontFamilyName && i.value != null select i.value).First();
|
FamilyName = (from i in nameTable.GetItems() where i.NameID == NameID.FontFamilyName && i.Value != null select i.Value).First();
|
||||||
SubfamilyName = (from i in nameTable.GetItems() where i.nameID == NameID.FontSubfamilyName && i.value != null select i.value).First();
|
SubfamilyName = (from i in nameTable.GetItems() where i.NameID == NameID.FontSubfamilyName && i.Value != null select i.Value).First();
|
||||||
FullName = (from i in nameTable.GetItems() where i.nameID == NameID.FullFontName && i.value != null select i.value).First();
|
FullName = (from i in nameTable.GetItems() where i.NameID == NameID.FullFontName && i.Value != null select i.Value).First();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -25,7 +25,7 @@ namespace Cryville.Common {
|
|||||||
/// <param name="encoding">The encoding of the string.</param>
|
/// <param name="encoding">The encoding of the string.</param>
|
||||||
/// <returns>The string read from the reader.</returns>
|
/// <returns>The string read from the reader.</returns>
|
||||||
public static string ReadUInt16String(this BinaryReader reader, Encoding encoding = null) {
|
public static string ReadUInt16String(this BinaryReader reader, Encoding encoding = null) {
|
||||||
if (encoding == null) encoding = Encoding.UTF8;
|
encoding ??= Encoding.UTF8;
|
||||||
var len = reader.ReadUInt16();
|
var len = reader.ReadUInt16();
|
||||||
byte[] buffer = reader.ReadBytes(len);
|
byte[] buffer = reader.ReadBytes(len);
|
||||||
return encoding.GetString(buffer);
|
return encoding.GetString(buffer);
|
||||||
@@ -38,7 +38,7 @@ namespace Cryville.Common {
|
|||||||
/// <param name="value">The string to write by the writer.</param>
|
/// <param name="value">The string to write by the writer.</param>
|
||||||
/// <param name="encoding">The encoding of the string.</param>
|
/// <param name="encoding">The encoding of the string.</param>
|
||||||
public static void WriteUInt16String(this BinaryWriter writer, string value, Encoding encoding = null) {
|
public static void WriteUInt16String(this BinaryWriter writer, string value, Encoding encoding = null) {
|
||||||
if (encoding == null) encoding = Encoding.UTF8;
|
encoding ??= Encoding.UTF8;
|
||||||
byte[] buffer = encoding.GetBytes(value);
|
byte[] buffer = encoding.GetBytes(value);
|
||||||
writer.Write((ushort)buffer.Length);
|
writer.Write((ushort)buffer.Length);
|
||||||
writer.Write(buffer);
|
writer.Write(buffer);
|
||||||
|
@@ -2,26 +2,26 @@ using System;
|
|||||||
|
|
||||||
namespace Cryville.Common {
|
namespace Cryville.Common {
|
||||||
public struct Identifier : IEquatable<Identifier> {
|
public struct Identifier : IEquatable<Identifier> {
|
||||||
public static Identifier Empty = new Identifier(0);
|
public static Identifier Empty = new(0);
|
||||||
public int Key { get; private set; }
|
public int Key { get; private set; }
|
||||||
public object Name { get { return IdentifierManager.Shared.Retrieve(Key); } }
|
public readonly object Name => IdentifierManager.Shared.Retrieve(Key);
|
||||||
public Identifier(int key) {
|
public Identifier(int key) {
|
||||||
Key = key;
|
Key = key;
|
||||||
}
|
}
|
||||||
public Identifier(object name) {
|
public Identifier(object name) {
|
||||||
Key = IdentifierManager.Shared.Request(name);
|
Key = IdentifierManager.Shared.Request(name);
|
||||||
}
|
}
|
||||||
public override bool Equals(object obj) {
|
public override readonly bool Equals(object obj) {
|
||||||
if (obj == null || !(obj is Identifier)) return false;
|
if (obj == null || obj is not Identifier other) return false;
|
||||||
return Equals((Identifier)obj);
|
return Equals(other);
|
||||||
}
|
}
|
||||||
public bool Equals(Identifier other) {
|
public readonly bool Equals(Identifier other) {
|
||||||
return Key == other.Key;
|
return Key == other.Key;
|
||||||
}
|
}
|
||||||
public override int GetHashCode() {
|
public override readonly int GetHashCode() {
|
||||||
return Key;
|
return Key;
|
||||||
}
|
}
|
||||||
public override string ToString() {
|
public override readonly string ToString() {
|
||||||
if (Key == 0) return "";
|
if (Key == 0) return "";
|
||||||
return Name.ToString();
|
return Name.ToString();
|
||||||
}
|
}
|
||||||
|
@@ -42,13 +42,13 @@ namespace Cryville.Common.Math {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Performs dot operation with a <see cref="System.Single" /> column vector.
|
/// Performs dot operation with a <see cref="float" /> column vector.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="lhs">The lefthand column vector.</param>
|
/// <param name="lhs">The lefthand column vector.</param>
|
||||||
/// <param name="o">The vector operator.</param>
|
/// <param name="o">The vector operator.</param>
|
||||||
/// <returns>The result of the dot operation.</returns>
|
/// <returns>The result of the dot operation.</returns>
|
||||||
public T Dot(ColumnVector<float> lhs, IVectorOperator<T> o) {
|
public T Dot(ColumnVector<float> lhs, IVectorOperator<T> o) {
|
||||||
T res = default(T);
|
T res = default;
|
||||||
for (var i = 0; i < Size; i++)
|
for (var i = 0; i < Size; i++)
|
||||||
res = o.Add(res, o.ScalarMultiply(lhs[i], content[i]));
|
res = o.Add(res, o.ScalarMultiply(lhs[i], content[i]));
|
||||||
return res;
|
return res;
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: f8303a3eeefeacf4ca0c02b5d32e0cff
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1621071543
|
|
||||||
licenseType: Free
|
|
||||||
DefaultImporter:
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,157 +0,0 @@
|
|||||||
using Cryville.Common.Logging;
|
|
||||||
using Microsoft.Win32;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Globalization;
|
|
||||||
using System.IO;
|
|
||||||
using System.Net.Sockets;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace Cryville.Common.Network.Http11 {
|
|
||||||
public class Http11Client : IDisposable {
|
|
||||||
private readonly string _directHost;
|
|
||||||
protected string DirectHost { get { return _directHost; } }
|
|
||||||
|
|
||||||
private readonly int _directPort;
|
|
||||||
protected int DirectPort { get { return _directPort; } }
|
|
||||||
|
|
||||||
readonly Uri _baseUri;
|
|
||||||
readonly int origPort;
|
|
||||||
|
|
||||||
protected const string Version = "HTTP/1.1";
|
|
||||||
protected TcpClient TcpClient { get; private set; }
|
|
||||||
protected Stream RawTcpStream { get { return TcpClient.GetStream(); } }
|
|
||||||
protected virtual Stream Stream { get { return TcpClient.GetStream(); } }
|
|
||||||
protected virtual string WindowsProxyProtocolName { get { return "http"; } }
|
|
||||||
|
|
||||||
private readonly bool _proxied = false;
|
|
||||||
|
|
||||||
public Dictionary<string, string> Headers { get; set; }
|
|
||||||
|
|
||||||
public Http11Client(Uri baseUri, int port = 80) {
|
|
||||||
_directHost = baseUri.Host;
|
|
||||||
_directPort = port;
|
|
||||||
_baseUri = baseUri;
|
|
||||||
origPort = _baseUri.Port;
|
|
||||||
Headers = new Dictionary<string, string>();
|
|
||||||
_proxied = GetProxy(ref _directHost, ref _directPort);
|
|
||||||
Logger.Log("main", 0, "Network", "Connecting to {0}:{1}", DirectHost, DirectPort);
|
|
||||||
TcpClient = new TcpClient(DirectHost, DirectPort);
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Connect() {
|
|
||||||
if (_proxied) {
|
|
||||||
Request(RawTcpStream, "CONNECT", string.Format(CultureInfo.InvariantCulture, "{0}:{1}", _baseUri.Host, origPort));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Close() {
|
|
||||||
TcpClient.Close();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Dispose() {
|
|
||||||
Dispose(true);
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose(bool disposing) {
|
|
||||||
if (disposing) {
|
|
||||||
Close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Http11Response Request(string method, Uri uri, string body = null, Encoding encoding = null) {
|
|
||||||
string struri = GetUri(uri).PathAndQuery;
|
|
||||||
return Request(Stream, method, struri, body, encoding);
|
|
||||||
}
|
|
||||||
|
|
||||||
Http11Response Request(Stream stream, string method, string uri, string body = null, Encoding encoding = null) {
|
|
||||||
var headers = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
|
||||||
foreach (var h in Headers)
|
|
||||||
headers.Add(h.Key, h.Value);
|
|
||||||
headers["Host"] = _baseUri.Host;
|
|
||||||
byte[] payload = null;
|
|
||||||
if (body != null) {
|
|
||||||
if (encoding == null)
|
|
||||||
encoding = Encoding.UTF8;
|
|
||||||
payload = encoding.GetBytes(body);
|
|
||||||
headers.Add("Content-Encoding", encoding.EncodingName);
|
|
||||||
headers.Add("Content-Length", payload.Length.ToString(CultureInfo.InvariantCulture));
|
|
||||||
}
|
|
||||||
using (var writer = new StreamWriter(stream, Encoding.ASCII, 1024, true)) {
|
|
||||||
writer.Write(method);
|
|
||||||
writer.Write(' ');
|
|
||||||
writer.Write(uri);
|
|
||||||
writer.Write(' ');
|
|
||||||
writer.Write(Version);
|
|
||||||
writer.Write("\r\n");
|
|
||||||
foreach (var header in headers) {
|
|
||||||
writer.Write(header.Key);
|
|
||||||
writer.Write(':');
|
|
||||||
writer.Write(header.Value);
|
|
||||||
writer.Write("\r\n");
|
|
||||||
}
|
|
||||||
writer.Write("\r\n");
|
|
||||||
if (payload != null) writer.Write(payload);
|
|
||||||
writer.Flush();
|
|
||||||
}
|
|
||||||
var response = new Http11Response(stream);
|
|
||||||
Logger.Log("main", 0, "Network", "{0}", response);
|
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected bool GetProxy(ref string host, ref int port) {
|
|
||||||
// TODO use winhttp.dll
|
|
||||||
if (Environment.OSVersion.Platform == PlatformID.Win32NT) {
|
|
||||||
var reg = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Internet Settings");
|
|
||||||
var proxyEnable = (int)reg.GetValue("ProxyEnable");
|
|
||||||
if (proxyEnable == 0) return false;
|
|
||||||
var proxyStr = (string)reg.GetValue("ProxyServer");
|
|
||||||
if (!string.IsNullOrEmpty(proxyStr)) {
|
|
||||||
string[] proxies = proxyStr.Split(';');
|
|
||||||
foreach (var p in proxies) {
|
|
||||||
if (!p.Contains('=')) {
|
|
||||||
string[] s = p.Split(':');
|
|
||||||
host = s[0];
|
|
||||||
port = int.Parse(s[1]);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else if (p.StartsWith(WindowsProxyProtocolName + "=")) {
|
|
||||||
string[] s = p.Split('=', ':');
|
|
||||||
host = s[1];
|
|
||||||
port = int.Parse(s[2]);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected Uri GetUri(string path) {
|
|
||||||
Uri address;
|
|
||||||
if (_baseUri != null) {
|
|
||||||
if (!Uri.TryCreate(_baseUri, path, out address)) {
|
|
||||||
return new Uri(Path.GetFullPath(path));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
if (!Uri.TryCreate(path, UriKind.Absolute, out address)) {
|
|
||||||
return new Uri(Path.GetFullPath(path));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return GetUri(address);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected Uri GetUri(Uri address) {
|
|
||||||
if (address == null) {
|
|
||||||
throw new ArgumentNullException("address");
|
|
||||||
}
|
|
||||||
Uri uri = address;
|
|
||||||
if (!address.IsAbsoluteUri && _baseUri != null && !Uri.TryCreate(_baseUri, address, out uri)) {
|
|
||||||
return address;
|
|
||||||
}
|
|
||||||
return uri;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,71 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace Cryville.Common.Network.Http11 {
|
|
||||||
public class Http11Response : IDisposable {
|
|
||||||
static readonly char[] spchar = new char[]{ ' ' };
|
|
||||||
public string HttpVersion { get; private set; }
|
|
||||||
public string StatusCode { get; private set; }
|
|
||||||
public string ReasonPhase { get; private set; }
|
|
||||||
public Dictionary<string, string> Headers { get; private set; }
|
|
||||||
public Http11ResponseStream MessageBody { get; private set; }
|
|
||||||
internal Http11Response(Stream stream) {
|
|
||||||
var reader = new BinaryReader(stream, Encoding.ASCII);
|
|
||||||
var statu_line = ReadLine(reader).Split(spchar, 3);
|
|
||||||
HttpVersion = statu_line[0];
|
|
||||||
StatusCode = statu_line[1];
|
|
||||||
ReasonPhase = statu_line[2];
|
|
||||||
Headers = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
|
||||||
while (ParseHeader(reader, Headers)) ;
|
|
||||||
if (Headers.ContainsKey("content-length")) {
|
|
||||||
int length = int.Parse(Headers["content-length"]);
|
|
||||||
MessageBody = new Http11ResponseBlockStream(reader, length);
|
|
||||||
}
|
|
||||||
else if (Headers.ContainsKey("transfer-encoding") && Headers["transfer-encoding"] == "chunked") {
|
|
||||||
MessageBody = new Http11ResponseChunkedStream(reader);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Dispose() {
|
|
||||||
Dispose(true);
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose(bool disposing) {
|
|
||||||
if (disposing) {
|
|
||||||
MessageBody.Dispose();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public override string ToString() {
|
|
||||||
return string.Format("<{0} {1} {2}>", HttpVersion, StatusCode, ReasonPhase);
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static bool ParseHeader(BinaryReader reader, Dictionary<string, string> headers) {
|
|
||||||
// TODO Multiline header
|
|
||||||
var header = ReadLine(reader);
|
|
||||||
if (header == "") return false;
|
|
||||||
var s = header.Split(':', 2);
|
|
||||||
string field_name = s[0].Trim().ToLower();
|
|
||||||
string field_value = s[1].Trim();
|
|
||||||
if (headers.ContainsKey(field_name)) headers[field_name] += "," + field_value;
|
|
||||||
else headers.Add(field_name, field_value);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
internal static string ReadLine(BinaryReader reader) {
|
|
||||||
StringBuilder result = new StringBuilder();
|
|
||||||
char c;
|
|
||||||
while (true) {
|
|
||||||
c = reader.ReadChar();
|
|
||||||
if (c == '\r') break;
|
|
||||||
result.Append(c);
|
|
||||||
}
|
|
||||||
// TODO Unseekable
|
|
||||||
reader.ReadByte();
|
|
||||||
return result.ToString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,130 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Globalization;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace Cryville.Common.Network.Http11 {
|
|
||||||
public abstract class Http11ResponseStream : Stream {
|
|
||||||
public override bool CanRead { get { return true; } }
|
|
||||||
|
|
||||||
public override bool CanSeek { get { return false; } }
|
|
||||||
|
|
||||||
public override bool CanWrite { get { return false; } }
|
|
||||||
|
|
||||||
public override long Length { get { throw new NotSupportedException(); } }
|
|
||||||
|
|
||||||
public override long Position {
|
|
||||||
get { throw new NotSupportedException(); }
|
|
||||||
set { throw new NotSupportedException(); }
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Flush() { }
|
|
||||||
|
|
||||||
public abstract byte[] ReadToEnd();
|
|
||||||
|
|
||||||
public override long Seek(long offset, SeekOrigin origin) {
|
|
||||||
throw new NotSupportedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void SetLength(long value) {
|
|
||||||
throw new NotSupportedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Write(byte[] buffer, int offset, int count) {
|
|
||||||
throw new NotSupportedException();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
internal sealed class Http11ResponseBlockStream : Http11ResponseStream {
|
|
||||||
readonly BinaryReader _reader;
|
|
||||||
readonly int _length;
|
|
||||||
int _pos = 0;
|
|
||||||
internal Http11ResponseBlockStream(BinaryReader reader, int length) {
|
|
||||||
_reader = reader;
|
|
||||||
_length = length;
|
|
||||||
}
|
|
||||||
public override int Read(byte[] buffer, int offset, int count) {
|
|
||||||
int recv = 0;
|
|
||||||
int recv_len = System.Math.Min(count, _length - _pos);
|
|
||||||
if (recv_len == 0) return 0;
|
|
||||||
while (recv < recv_len) {
|
|
||||||
recv += _reader.Read(buffer, offset + recv, count - recv);
|
|
||||||
}
|
|
||||||
_pos += recv_len;
|
|
||||||
return recv_len;
|
|
||||||
}
|
|
||||||
public override byte[] ReadToEnd() {
|
|
||||||
byte[] buffer = new byte[_length - _pos];
|
|
||||||
Read(buffer, 0, buffer.Length);
|
|
||||||
return buffer;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
internal sealed class Http11ResponseChunkedStream : Http11ResponseStream {
|
|
||||||
readonly BinaryReader _reader;
|
|
||||||
byte[] _chunk = null;
|
|
||||||
int _pos = 0;
|
|
||||||
internal Http11ResponseChunkedStream(BinaryReader reader) {
|
|
||||||
_reader = reader;
|
|
||||||
ReadChunk();
|
|
||||||
}
|
|
||||||
public void ReadChunk() {
|
|
||||||
if (_chunk != null && _chunk.Length == 0) return;
|
|
||||||
string[] chunkHeader = Http11Response.ReadLine(_reader).Split(';');
|
|
||||||
int chunkSize;
|
|
||||||
if (!int.TryParse(chunkHeader[0], NumberStyles.HexNumber, CultureInfo.InvariantCulture, out chunkSize))
|
|
||||||
throw new IOException("Corrupted chunk received");
|
|
||||||
if (chunkSize == 0) {
|
|
||||||
_chunk = new byte[0];
|
|
||||||
// TODO TE Header, now just discard
|
|
||||||
var headers = new Dictionary<string, string>();
|
|
||||||
while (Http11Response.ParseHeader(_reader, headers)) ;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
_chunk = new byte[chunkSize];
|
|
||||||
int recv = 0;
|
|
||||||
while (recv < chunkSize) {
|
|
||||||
recv += _reader.Read(_chunk, recv, chunkSize - recv);
|
|
||||||
}
|
|
||||||
_pos = 0;
|
|
||||||
if (Http11Response.ReadLine(_reader) != "")
|
|
||||||
throw new IOException("Corrupted chunk received");
|
|
||||||
}
|
|
||||||
public override int Read(byte[] buffer, int offset, int count) {
|
|
||||||
if (_chunk.Length == 0) return 0;
|
|
||||||
int recv = 0;
|
|
||||||
while (true) {
|
|
||||||
if (count - recv <= _chunk.Length - _pos) break;
|
|
||||||
Array.Copy(_chunk, _pos, buffer, recv, _chunk.Length - _pos);
|
|
||||||
recv += _chunk.Length - _pos;
|
|
||||||
ReadChunk();
|
|
||||||
if (_chunk.Length == 0) return recv;
|
|
||||||
}
|
|
||||||
Array.Copy(_chunk, _pos, buffer, recv, count - recv);
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
public override byte[] ReadToEnd() {
|
|
||||||
if (_chunk.Length == 0) return new byte[0];
|
|
||||||
List<byte[]> segs = new List<byte[]>();
|
|
||||||
while (true) {
|
|
||||||
if (_pos != 0) {
|
|
||||||
var buffer = new byte[_chunk.Length - _pos];
|
|
||||||
Array.Copy(_chunk, _pos, buffer, 0, buffer.Length);
|
|
||||||
segs.Add(buffer);
|
|
||||||
}
|
|
||||||
else segs.Add(_chunk);
|
|
||||||
ReadChunk();
|
|
||||||
if (_chunk.Length == 0) {
|
|
||||||
var result = new byte[segs.Sum(i => i.Length)];
|
|
||||||
int p = 0;
|
|
||||||
foreach (var i in segs) {
|
|
||||||
Array.Copy(i, 0, result, p, i.Length);
|
|
||||||
p += i.Length;
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,33 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
namespace Cryville.Common.Network.Http11 {
|
|
||||||
public class Https11Client : Http11Client {
|
|
||||||
readonly TlsClient _tlsClient;
|
|
||||||
|
|
||||||
protected override Stream Stream {
|
|
||||||
get {
|
|
||||||
return _tlsClient.Stream;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
protected override string WindowsProxyProtocolName {
|
|
||||||
get {
|
|
||||||
return "https";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Https11Client(Uri baseUri) : base(baseUri, 443) {
|
|
||||||
_tlsClient = new TlsClient(RawTcpStream, baseUri.Host);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Connect() {
|
|
||||||
base.Connect();
|
|
||||||
_tlsClient.Connect();
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void Close() {
|
|
||||||
_tlsClient.Close();
|
|
||||||
base.Close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: c5c233e6228ce204fa1a9724c48ac8fe
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,96 +0,0 @@
|
|||||||
using Org.BouncyCastle.Security;
|
|
||||||
using Org.BouncyCastle.Tls;
|
|
||||||
using Org.BouncyCastle.Tls.Crypto;
|
|
||||||
using Org.BouncyCastle.Tls.Crypto.Impl.BC;
|
|
||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using BcTlsClient = Org.BouncyCastle.Tls.TlsClient;
|
|
||||||
|
|
||||||
namespace Cryville.Common.Network {
|
|
||||||
public class TlsClient : IDisposable {
|
|
||||||
readonly TlsClientProtocol _protocol;
|
|
||||||
readonly BcTlsClient _tlsClient;
|
|
||||||
public Stream Stream { get; private set; }
|
|
||||||
public TlsClient(Stream baseStream, string hostname) {
|
|
||||||
_protocol = new TlsClientProtocol(baseStream);
|
|
||||||
_tlsClient = new InternalTlsClient(hostname, new BcTlsCrypto(new SecureRandom()));
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Connect() {
|
|
||||||
_protocol.Connect(_tlsClient);
|
|
||||||
Stream = _protocol.Stream;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Close() {
|
|
||||||
_protocol.Close();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Dispose() {
|
|
||||||
Dispose(true);
|
|
||||||
GC.SuppressFinalize(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void Dispose(bool disposing) {
|
|
||||||
if (disposing) {
|
|
||||||
Close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private class InternalTlsClient : DefaultTlsClient {
|
|
||||||
readonly string _host;
|
|
||||||
|
|
||||||
public InternalTlsClient(string host, TlsCrypto crypto) : base(crypto) {
|
|
||||||
_host = host;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override ProtocolVersion[] GetSupportedVersions() {
|
|
||||||
return ProtocolVersion.TLSv13.DownTo(ProtocolVersion.TLSv12);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override IList GetProtocolNames() {
|
|
||||||
IList list = new ArrayList {
|
|
||||||
ProtocolName.Http_1_1
|
|
||||||
};
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static readonly int[] supportedCipherSuites = {
|
|
||||||
CipherSuite.TLS_AES_128_GCM_SHA256,
|
|
||||||
CipherSuite.TLS_AES_256_GCM_SHA384,
|
|
||||||
CipherSuite.TLS_CHACHA20_POLY1305_SHA256,
|
|
||||||
CipherSuite.TLS_AES_128_CCM_SHA256,
|
|
||||||
CipherSuite.TLS_AES_128_CCM_8_SHA256,
|
|
||||||
};
|
|
||||||
protected override int[] GetSupportedCipherSuites() {
|
|
||||||
return base.GetSupportedCipherSuites().Union(supportedCipherSuites).ToArray();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override IList GetSupportedSignatureAlgorithms() {
|
|
||||||
var result = base.GetSupportedSignatureAlgorithms();
|
|
||||||
result.Add(SignatureAndHashAlgorithm.ecdsa_brainpoolP256r1tls13_sha256);
|
|
||||||
result.Add(SignatureAndHashAlgorithm.ecdsa_brainpoolP384r1tls13_sha384);
|
|
||||||
result.Add(SignatureAndHashAlgorithm.ecdsa_brainpoolP512r1tls13_sha512);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override IList GetSniServerNames() {
|
|
||||||
return new ArrayList { new ServerName(0, Encoding.ASCII.GetBytes(_host)) };
|
|
||||||
}
|
|
||||||
|
|
||||||
public override TlsAuthentication GetAuthentication() {
|
|
||||||
return new NullTlsAuthentication();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private class NullTlsAuthentication : TlsAuthentication {
|
|
||||||
public TlsCredentials GetClientCredentials(CertificateRequest certificateRequest) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void NotifyServerCertificate(TlsServerCertificate serverCertificate) { }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,12 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: c9c242bb90fc1cc479a8df1407f21940
|
|
||||||
timeCreated: 1622021660
|
|
||||||
licenseType: Free
|
|
||||||
MonoImporter:
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -56,9 +56,9 @@ namespace Cryville.Common.Pdt {
|
|||||||
while (ip != null) {
|
while (ip != null) {
|
||||||
bool nextFlag = false;
|
bool nextFlag = false;
|
||||||
var i = ip.Value;
|
var i = ip.Value;
|
||||||
if (i is PdtInstruction.Operate) {
|
if (i is PdtInstruction.Operate iop) {
|
||||||
int fc0 = _framecount;
|
int fc0 = _framecount;
|
||||||
int fc1 = ((PdtInstruction.Operate)i).Signature.ParamCount;
|
int fc1 = iop.Signature.ParamCount;
|
||||||
try { i.Execute(this, ref ip); } catch (Exception) { }
|
try { i.Execute(this, ref ip); } catch (Exception) { }
|
||||||
if (fc0 - _framecount == fc1) {
|
if (fc0 - _framecount == fc1) {
|
||||||
unsafe {
|
unsafe {
|
||||||
@@ -77,8 +77,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (i is PdtInstruction.Collapse) {
|
else if (i is PdtInstruction.Collapse t) {
|
||||||
var t = (PdtInstruction.Collapse)i;
|
|
||||||
try {
|
try {
|
||||||
var pins = ip;
|
var pins = ip;
|
||||||
i.Execute(this, ref ip);
|
i.Execute(this, ref ip);
|
||||||
@@ -133,15 +132,14 @@ namespace Cryville.Common.Pdt {
|
|||||||
exp.IsConstant = true;
|
exp.IsConstant = true;
|
||||||
exp.IsPotentialConstant = true;
|
exp.IsPotentialConstant = true;
|
||||||
for (var ins = il.First; ins != null; ins = ins.Next) {
|
for (var ins = il.First; ins != null; ins = ins.Next) {
|
||||||
if (!(ins.Value is PdtInstruction.PushConstant)) {
|
if (ins.Value is not PdtInstruction.PushConstant) {
|
||||||
exp.IsConstant = false;
|
exp.IsConstant = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void ReplaceIP(LinkedList<PdtInstruction> il, ref LinkedListNode<PdtInstruction> ip, PdtInstruction ins, Dictionary<LinkedListNode<PdtInstruction>, List<PdtInstruction.Collapse>> cols) {
|
void ReplaceIP(LinkedList<PdtInstruction> il, ref LinkedListNode<PdtInstruction> ip, PdtInstruction ins, Dictionary<LinkedListNode<PdtInstruction>, List<PdtInstruction.Collapse>> cols) {
|
||||||
List<PdtInstruction.Collapse> cins;
|
if (cols.TryGetValue(ip, out List<PdtInstruction.Collapse> cins)) cols.Remove(ip);
|
||||||
if (cols.TryGetValue(ip, out cins)) cols.Remove(ip);
|
|
||||||
ip = il.AddAfter(ip, ins);
|
ip = il.AddAfter(ip, ins);
|
||||||
il.Remove(ip.Previous);
|
il.Remove(ip.Previous);
|
||||||
if (cins != null) cols.Add(ip, cins);
|
if (cins != null) cols.Add(ip, cins);
|
||||||
@@ -163,8 +161,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
}
|
}
|
||||||
internal unsafe void PushVariable(int name, bool forced) {
|
internal unsafe void PushVariable(int name, bool forced) {
|
||||||
fixed (StackFrame* frame = &_stack[_framecount++]) {
|
fixed (StackFrame* frame = &_stack[_framecount++]) {
|
||||||
byte[] value;
|
GetVariable(name, forced, out frame->Type, out byte[] value);
|
||||||
GetVariable(name, forced, out frame->Type, out value);
|
|
||||||
frame->Offset = _goffset;
|
frame->Offset = _goffset;
|
||||||
frame->Length = value.Length;
|
frame->Length = value.Length;
|
||||||
Array.Copy(value, 0, _mem, _goffset, value.Length);
|
Array.Copy(value, 0, _mem, _goffset, value.Length);
|
||||||
|
@@ -114,7 +114,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
public partial class PdtInterpreter {
|
public partial class PdtInterpreter {
|
||||||
static readonly Dictionary<char, int> OP_PRIORITY = new Dictionary<char, int> {
|
static readonly Dictionary<char, int> OP_PRIORITY = new() {
|
||||||
{ '@', 7 },
|
{ '@', 7 },
|
||||||
{ '*', 6 }, { '/', 6 }, { '%', 6 },
|
{ '*', 6 }, { '/', 6 }, { '%', 6 },
|
||||||
{ '+', 5 }, { '-', 5 },
|
{ '+', 5 }, { '-', 5 },
|
||||||
@@ -125,7 +125,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
{ ',', 0 },
|
{ ',', 0 },
|
||||||
{ '$', -1 },
|
{ '$', -1 },
|
||||||
};
|
};
|
||||||
static readonly Dictionary<char, int> OP_TYPE = new Dictionary<char, int> {
|
static readonly Dictionary<char, int> OP_TYPE = new() {
|
||||||
{ '@', 0 },
|
{ '@', 0 },
|
||||||
{ '*', 0 }, { '/', 0 }, { '%', 0 },
|
{ '*', 0 }, { '/', 0 }, { '%', 0 },
|
||||||
{ '+', 0 }, { '-', 0 },
|
{ '+', 0 }, { '-', 0 },
|
||||||
@@ -140,24 +140,24 @@ namespace Cryville.Common.Pdt {
|
|||||||
PdtExpToken GetToken() {
|
PdtExpToken GetToken() {
|
||||||
ws();
|
ws();
|
||||||
var result = new PdtExpToken {
|
var result = new PdtExpToken {
|
||||||
Type = ct & 0x0fe0
|
Type = ct & (CharCategory)0x0fe0
|
||||||
};
|
};
|
||||||
switch (result.Type) {
|
switch (result.Type) {
|
||||||
case 0x0020: result.Value = GetIdentifier(); break;
|
case CharCategory.IdentifierBegin: result.Value = GetIdentifier(); break;
|
||||||
case 0x0040: result.Value = GetNumber(); break;
|
case CharCategory.Digit : result.Value = GetNumber(); break;
|
||||||
case 0x0100: result.Value = GetString(); break;
|
case CharCategory.StringDelimiter: result.Value = GetString(); break;
|
||||||
default: result.Value = cc.ToString(); Position++; break;
|
default: result.Value = cc.ToString(); Position++; break;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
private struct PdtExpToken {
|
private struct PdtExpToken {
|
||||||
public int Type { get; set; }
|
public CharCategory Type { get; set; }
|
||||||
public string Value { get; set; }
|
public string Value { get; set; }
|
||||||
public override string ToString() {
|
public override readonly string ToString() {
|
||||||
return string.Format("0x{0:x4}: {1}", Type, Value);
|
return string.Format("0x{0:x4}: {1}", Type, Value);
|
||||||
}
|
}
|
||||||
public static readonly PdtExpToken EmptyOperator = new PdtExpToken {
|
public static readonly PdtExpToken EmptyOperator = new() {
|
||||||
Type = 0x0080,
|
Type = CharCategory.Operator,
|
||||||
Value = "$",
|
Value = "$",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -192,7 +192,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
t2 = InterpretExpBlock(ins);
|
t2 = InterpretExpBlock(ins);
|
||||||
panic:
|
panic:
|
||||||
switch (t2.Type) {
|
switch (t2.Type) {
|
||||||
case 0x0080:
|
case CharCategory.Operator:
|
||||||
if (OP_TYPE[t1.Value[0]] != -1) {
|
if (OP_TYPE[t1.Value[0]] != -1) {
|
||||||
int p1 = OP_PRIORITY[t1.Value[0]];
|
int p1 = OP_PRIORITY[t1.Value[0]];
|
||||||
int p2 = OP_PRIORITY[t2.Value[0]];
|
int p2 = OP_PRIORITY[t2.Value[0]];
|
||||||
@@ -213,11 +213,11 @@ namespace Cryville.Common.Pdt {
|
|||||||
}
|
}
|
||||||
t1 = t2;
|
t1 = t2;
|
||||||
break;
|
break;
|
||||||
case 0x0400:
|
case CharCategory.ClosingBracket:
|
||||||
if (enc == -2) throw new FormatException("Expression not enclosed correctly: Too many closing brackets");
|
if (enc == -2) throw new FormatException("Expression not enclosed correctly: Too many closing brackets");
|
||||||
if (ins.Count == insc0) pc = 0;
|
if (ins.Count == insc0) pc = 0;
|
||||||
goto exit;
|
goto exit;
|
||||||
case 0x0800:
|
case CharCategory.EndOfExpression:
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -240,7 +240,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <returns>The expression token following this expression block.</returns>
|
/// <returns>The expression token following this expression block.</returns>
|
||||||
PdtExpToken InterpretExpBlock(LinkedList<PdtInstruction> ins) {
|
PdtExpToken InterpretExpBlock(LinkedList<PdtInstruction> ins) {
|
||||||
var t = GetToken();
|
var t = GetToken();
|
||||||
if (t.Type == 0x0080) {
|
if (t.Type == CharCategory.Operator) {
|
||||||
var r = InterpretExpBlock(ins);
|
var r = InterpretExpBlock(ins);
|
||||||
ins.AddLast(new PdtInstruction.Operate(t.Value, 1));
|
ins.AddLast(new PdtInstruction.Operate(t.Value, 1));
|
||||||
return r;
|
return r;
|
||||||
@@ -248,28 +248,27 @@ namespace Cryville.Common.Pdt {
|
|||||||
bool flag = false;
|
bool flag = false;
|
||||||
PdtExpToken? buf = null;
|
PdtExpToken? buf = null;
|
||||||
while (true) {
|
while (true) {
|
||||||
if (buf != null && t.Type != 0x0200) {
|
if (buf != null && t.Type != CharCategory.OpeningBracket) {
|
||||||
PdtExpression def;
|
if (defs.TryGetValue(buf.Value.Value, out PdtExpression def)) {
|
||||||
if (defs.TryGetValue(buf.Value.Value, out def)) {
|
|
||||||
foreach (var i in def.Instructions) ins.AddLast(i);
|
foreach (var i in def.Instructions) ins.AddLast(i);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var name = buf.Value.Value;
|
var name = buf.Value.Value;
|
||||||
if (name[0] == '?') ins.AddLast(new PdtInstruction.PushVariable(name.Substring(1), true));
|
if (name[0] == '?') ins.AddLast(new PdtInstruction.PushVariable(name[1..], true));
|
||||||
else ins.AddLast(new PdtInstruction.PushVariable(name));
|
else ins.AddLast(new PdtInstruction.PushVariable(name));
|
||||||
}
|
}
|
||||||
buf = null;
|
buf = null;
|
||||||
TryPushAdjMul(ins, ref flag);
|
TryPushAdjMul(ins, ref flag);
|
||||||
}
|
}
|
||||||
switch (t.Type) {
|
switch (t.Type) {
|
||||||
case 0x0020:
|
case CharCategory.IdentifierBegin:
|
||||||
buf = t;
|
buf = t;
|
||||||
break;
|
break;
|
||||||
case 0x0040:
|
case CharCategory.Digit:
|
||||||
float num = float.Parse(t.Value);
|
float num = float.Parse(t.Value);
|
||||||
ins.AddLast(new PdtInstruction.PushConstant(PdtInternalType.Number, BitConverter.GetBytes(num)));
|
ins.AddLast(new PdtInstruction.PushConstant(PdtInternalType.Number, BitConverter.GetBytes(num)));
|
||||||
break;
|
break;
|
||||||
case 0x0100:
|
case CharCategory.StringDelimiter:
|
||||||
int strlen = t.Value.Length;
|
int strlen = t.Value.Length;
|
||||||
unsafe {
|
unsafe {
|
||||||
var strbuf = new byte[strlen * sizeof(char) + sizeof(int)];
|
var strbuf = new byte[strlen * sizeof(char) + sizeof(int)];
|
||||||
@@ -280,7 +279,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
ins.AddLast(new PdtInstruction.PushConstant(PdtInternalType.String, strbuf));
|
ins.AddLast(new PdtInstruction.PushConstant(PdtInternalType.String, strbuf));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0x0200:
|
case CharCategory.OpeningBracket:
|
||||||
int pc;
|
int pc;
|
||||||
InterpretExp(ins, -1, out pc);
|
InterpretExp(ins, -1, out pc);
|
||||||
if (buf != null) {
|
if (buf != null) {
|
||||||
|
@@ -1,11 +1,10 @@
|
|||||||
using Cryville.Common.Collections;
|
using Cryville.Common.Collections;
|
||||||
using Cryville.Common.Logging;
|
|
||||||
using Cryville.Common.Reflection;
|
using Cryville.Common.Reflection;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text;
|
||||||
using CMath = System.Math;
|
using CMath = System.Math;
|
||||||
|
|
||||||
namespace Cryville.Common.Pdt {
|
namespace Cryville.Common.Pdt {
|
||||||
@@ -13,23 +12,19 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// Interpreter for Property Definition Tree (PDT) file format.
|
/// Interpreter for Property Definition Tree (PDT) file format.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class PdtInterpreter {
|
public partial class PdtInterpreter {
|
||||||
/// <summary>
|
[Flags]
|
||||||
/// The character category map.
|
protected enum CharCategory {
|
||||||
/// </summary>
|
WhiteSpace = 0x0001,
|
||||||
/// <remarks>
|
Identifier = 0x0010,
|
||||||
/// <list type="bullet">
|
IdentifierBegin = 0x0020,
|
||||||
/// <item><term><c>0x0001</c></term><description>White Space</description></item>
|
Digit = 0x0040,
|
||||||
/// <item><term><c>0x0010</c></term><description>Identifier</description></item>
|
Operator = 0x0080,
|
||||||
/// <item><term><c>0x0020</c></term><description>Identifier Begin</description></item>
|
StringDelimiter = 0x0100,
|
||||||
/// <item><term><c>0x0040</c></term><description>Digit</description></item>
|
OpeningBracket = 0x0200,
|
||||||
/// <item><term><c>0x0080</c></term><description>Operator</description></item>
|
ClosingBracket = 0x0400,
|
||||||
/// <item><term><c>0x0100</c></term><description>String</description></item>
|
EndOfExpression = 0x0800,
|
||||||
/// <item><term><c>0x0200</c></term><description>Opening Bracket</description></item>
|
EndOfKey = 0x1000,
|
||||||
/// <item><term><c>0x0400</c></term><description>Closing Bracket</description></item>
|
}
|
||||||
/// <item><term><c>0x0800</c></term><description>End of Expression</description></item>
|
|
||||||
/// <item><term><c>0x1000</c></term><description>End of Key</description></item>
|
|
||||||
/// </list>
|
|
||||||
/// </remarks>
|
|
||||||
static readonly int[] cm = new int[] {
|
static readonly int[] cm = new int[] {
|
||||||
// 0 1 2 3 4 5 6 7 8 9 A B C D E F
|
// 0 1 2 3 4 5 6 7 8 9 A B C D E F
|
||||||
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0001, 0x0000, 0x0000, 0x0001, 0x0000, 0x0000,
|
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0001, 0x0000, 0x0000, 0x0001, 0x0000, 0x0000,
|
||||||
@@ -69,6 +64,8 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// The current position in the string being parsed by the interpreter.
|
/// The current position in the string being parsed by the interpreter.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int Position { get; protected set; }
|
public int Position { get; protected set; }
|
||||||
|
|
||||||
|
readonly StringBuilder _sb = new();
|
||||||
#pragma warning disable IDE1006
|
#pragma warning disable IDE1006
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The character at the current position.
|
/// The character at the current position.
|
||||||
@@ -79,17 +76,17 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// The category of the character.
|
/// The category of the character.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="IndexOutOfRangeException">The end of the source string is reached.</exception>
|
/// <exception cref="IndexOutOfRangeException">The end of the source string is reached.</exception>
|
||||||
protected int ct { get { return cm[cc]; } }
|
protected CharCategory ct { get { return (CharCategory)cm[cc]; } }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reads a token until a character of type <paramref name="flag" /> is met.
|
/// Reads a token until a character of type <paramref name="flag" /> is met.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="flag">The type filter.</param>
|
/// <param name="flag">The type filter.</param>
|
||||||
/// <returns>A token from the current position (inclusive) to the next character of type <paramref name="flag" /> (exclusive).</returns>
|
/// <returns>A token from the current position (inclusive) to the next character of type <paramref name="flag" /> (exclusive).</returns>
|
||||||
/// <exception cref="IndexOutOfRangeException">No character of type <paramref name="flag" /> is met.</exception>
|
/// <exception cref="IndexOutOfRangeException">No character of type <paramref name="flag" /> is met.</exception>
|
||||||
protected string tokenb(int flag) {
|
protected string tokenb(CharCategory flag) {
|
||||||
int sp = Position;
|
int sp = Position;
|
||||||
while ((ct & flag) == 0) Position++;
|
while ((ct & flag) == 0) Position++;
|
||||||
return Source.Substring(sp, Position - sp);
|
return Source[sp..Position];
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reads a token until a character that is not of type <paramref name="flag" /> is met.
|
/// Reads a token until a character that is not of type <paramref name="flag" /> is met.
|
||||||
@@ -97,17 +94,17 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <param name="flag">The type filter.</param>
|
/// <param name="flag">The type filter.</param>
|
||||||
/// <returns>A token from the current position (inclusive) to the next character that is not of type <paramref name="flag" /> (exclusive).</returns>
|
/// <returns>A token from the current position (inclusive) to the next character that is not of type <paramref name="flag" /> (exclusive).</returns>
|
||||||
/// <exception cref="IndexOutOfRangeException">No character that is not of type <paramref name="flag" /> is met.</exception>
|
/// <exception cref="IndexOutOfRangeException">No character that is not of type <paramref name="flag" /> is met.</exception>
|
||||||
protected string tokenw(int flag) {
|
protected string tokenw(CharCategory flag) {
|
||||||
int sp = Position;
|
int sp = Position;
|
||||||
while ((ct & flag) != 0) Position++;
|
while ((ct & flag) != 0) Position++;
|
||||||
return Source.Substring(sp, Position - sp);
|
return Source[sp..Position];
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Skips over whitespaces.
|
/// Skips over whitespaces.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <exception cref="IndexOutOfRangeException">The end of the source string is reached.</exception>
|
/// <exception cref="IndexOutOfRangeException">The end of the source string is reached.</exception>
|
||||||
protected void ws() {
|
protected void ws() {
|
||||||
while ((ct & 0x0001) != 0) Position++;
|
while ((ct & CharCategory.WhiteSpace) != 0) Position++;
|
||||||
}
|
}
|
||||||
#pragma warning restore IDE1006
|
#pragma warning restore IDE1006
|
||||||
|
|
||||||
@@ -127,8 +124,8 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <returns>An identifier.</returns>
|
/// <returns>An identifier.</returns>
|
||||||
/// <exception cref="IndexOutOfRangeException">The end of the source string is reached.</exception>
|
/// <exception cref="IndexOutOfRangeException">The end of the source string is reached.</exception>
|
||||||
protected string GetIdentifier() {
|
protected string GetIdentifier() {
|
||||||
if ((ct & 0x0020) == 0) return "";
|
if ((ct & CharCategory.IdentifierBegin) == 0) return "";
|
||||||
return tokenw(0x0010);
|
return tokenw(CharCategory.Identifier);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reads a number.
|
/// Reads a number.
|
||||||
@@ -136,7 +133,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <returns>A number.</returns>
|
/// <returns>A number.</returns>
|
||||||
/// <exception cref="IndexOutOfRangeException">The end of the source string is reached.</exception>
|
/// <exception cref="IndexOutOfRangeException">The end of the source string is reached.</exception>
|
||||||
protected string GetNumber() {
|
protected string GetNumber() {
|
||||||
return tokenw(0x0040);
|
return tokenw(CharCategory.Digit);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reads a string.
|
/// Reads a string.
|
||||||
@@ -144,13 +141,15 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <returns>A string.</returns>
|
/// <returns>A string.</returns>
|
||||||
/// <exception cref="IndexOutOfRangeException">The end of the source string is reached.</exception>
|
/// <exception cref="IndexOutOfRangeException">The end of the source string is reached.</exception>
|
||||||
protected string GetString() {
|
protected string GetString() {
|
||||||
int sp = Position;
|
_sb.Clear();
|
||||||
do {
|
|
||||||
if (cc == '\\') Position++;
|
|
||||||
Position++;
|
|
||||||
} while (ct != 0x0100);
|
|
||||||
Position++;
|
Position++;
|
||||||
return Regex.Replace(Source.Substring(sp + 1, Position - sp - 2), @"\\(.)", "$1");
|
while (ct != CharCategory.StringDelimiter) {
|
||||||
|
if (cc == '\\') Position++;
|
||||||
|
_sb.Append(cc);
|
||||||
|
Position++;
|
||||||
|
}
|
||||||
|
Position++;
|
||||||
|
return _sb.ToString();
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reads an expression.
|
/// Reads an expression.
|
||||||
@@ -164,7 +163,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
return new PdtExpression(ins);
|
return new PdtExpression(ins);
|
||||||
}
|
}
|
||||||
|
|
||||||
readonly Dictionary<string, PdtExpression> defs = new Dictionary<string, PdtExpression>();
|
readonly Dictionary<string, PdtExpression> defs = new();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Creates an instance of the <see cref="PdtInterpreter" /> class.
|
/// Creates an instance of the <see cref="PdtInterpreter" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -187,8 +186,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
public object Interpret(Type type) {
|
public object Interpret(Type type) {
|
||||||
try {
|
try {
|
||||||
if (m_formatVersion == null) InterpretDirectives();
|
if (m_formatVersion == null) InterpretDirectives();
|
||||||
if (_binder == null)
|
_binder ??= BinderAttribute.CreateBinderOfType(type);
|
||||||
_binder = BinderAttribute.CreateBinderOfType(type);
|
|
||||||
return InterpretObject(type);
|
return InterpretObject(type);
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
@@ -203,7 +201,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
switch (GetIdentifier()) {
|
switch (GetIdentifier()) {
|
||||||
case "ver":
|
case "ver":
|
||||||
ws();
|
ws();
|
||||||
Logger.Log("main", 3, "PDT", "Legacy PDT directive #ver={0} found. Ignoring.", GetNumber());
|
Shared.Logger.Log(3, "PDT", "Legacy PDT directive #ver={0} found. Ignoring.", GetNumber());
|
||||||
break;
|
break;
|
||||||
case "format":
|
case "format":
|
||||||
ws();
|
ws();
|
||||||
@@ -257,18 +255,17 @@ namespace Cryville.Common.Pdt {
|
|||||||
}
|
}
|
||||||
void InterpretObjectInternal<T>(bool pcflag, Type type, object pkey, object result, Func<Type, object> vfunc) where T : Attribute {
|
void InterpretObjectInternal<T>(bool pcflag, Type type, object pkey, object result, Func<Type, object> vfunc) where T : Attribute {
|
||||||
if (pcflag) {
|
if (pcflag) {
|
||||||
using (var collection = new PairCollection(result)) {
|
using var collection = new PairCollection(result);
|
||||||
var ktype = type.GetGenericArguments()[0];
|
var ktype = type.GetGenericArguments()[0];
|
||||||
var ptype = type.GetGenericArguments()[1];
|
var ptype = type.GetGenericArguments()[1];
|
||||||
object key = _binder.ChangeType(pkey, ktype, null);
|
object key = _binder.ChangeType(pkey, ktype, null);
|
||||||
object value = vfunc(ptype);
|
object value = vfunc(ptype);
|
||||||
collection.Add(key, value);
|
collection.Add(key, value);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
MemberInfo prop = null;
|
MemberInfo prop = null;
|
||||||
bool flag = false;
|
bool flag = false;
|
||||||
if (pkey is string) prop = FieldLikeHelper.GetMember(type, (string)pkey);
|
if (pkey is string pname) prop = FieldLikeHelper.GetMember(type, pname);
|
||||||
if (prop == null) {
|
if (prop == null) {
|
||||||
prop = FieldLikeHelper.FindMemberWithAttribute<T>(type);
|
prop = FieldLikeHelper.FindMemberWithAttribute<T>(type);
|
||||||
flag = true;
|
flag = true;
|
||||||
@@ -280,13 +277,12 @@ namespace Cryville.Common.Pdt {
|
|||||||
if (origCollection == null) {
|
if (origCollection == null) {
|
||||||
FieldLikeHelper.SetValue(prop, result, origCollection = Activator.CreateInstance(ptype));
|
FieldLikeHelper.SetValue(prop, result, origCollection = Activator.CreateInstance(ptype));
|
||||||
}
|
}
|
||||||
using (var collection = new PairCollection(origCollection)) {
|
using var collection = new PairCollection(origCollection);
|
||||||
var ktype = ptype.GetGenericArguments()[0];
|
var ktype = ptype.GetGenericArguments()[0];
|
||||||
var vtype = ptype.GetGenericArguments()[1];
|
var vtype = ptype.GetGenericArguments()[1];
|
||||||
object key = _binder.ChangeType(pkey, ktype, null);
|
object key = _binder.ChangeType(pkey, ktype, null);
|
||||||
object value = vfunc(vtype);
|
object value = vfunc(vtype);
|
||||||
collection.Add(key, value);
|
collection.Add(key, value);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else FieldLikeHelper.SetValue(prop, result, vfunc(ptype), _binder);
|
else FieldLikeHelper.SetValue(prop, result, vfunc(ptype), _binder);
|
||||||
}
|
}
|
||||||
@@ -296,7 +292,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>The interpreted key.</returns>
|
/// <returns>The interpreted key.</returns>
|
||||||
protected virtual object InterpretKey(Type type) {
|
protected virtual object InterpretKey(Type type) {
|
||||||
return tokenb(0x1000).Trim();
|
return tokenb(CharCategory.EndOfKey).Trim();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -327,7 +323,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
src.Take(interpreter.Position).Count(c => c == '\n') + 1,
|
src.Take(interpreter.Position).Count(c => c == '\n') + 1,
|
||||||
pos - lineStartPos + 1,
|
pos - lineStartPos + 1,
|
||||||
innerException == null ? "Unknown error" : innerException.Message,
|
innerException == null ? "Unknown error" : innerException.Message,
|
||||||
src.Substring(previewStartPos, previewEndPos - previewStartPos)
|
src[previewStartPos..previewEndPos]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -102,17 +102,17 @@ namespace Cryville.Common.Pdt {
|
|||||||
ParamCount = paramCount;
|
ParamCount = paramCount;
|
||||||
_hash = Name ^ ((ParamCount << 16) | (ParamCount >> 16));
|
_hash = Name ^ ((ParamCount << 16) | (ParamCount >> 16));
|
||||||
}
|
}
|
||||||
public override bool Equals(object obj) {
|
public override readonly bool Equals(object obj) {
|
||||||
if (!(obj is PdtOperatorSignature)) return false;
|
if (obj is not PdtOperatorSignature other) return false;
|
||||||
return Equals((PdtOperatorSignature)obj);
|
return Equals(other);
|
||||||
}
|
}
|
||||||
public bool Equals(PdtOperatorSignature other) {
|
public readonly bool Equals(PdtOperatorSignature other) {
|
||||||
return Name == other.Name && ParamCount == other.ParamCount;
|
return Name == other.Name && ParamCount == other.ParamCount;
|
||||||
}
|
}
|
||||||
public override int GetHashCode() {
|
public override readonly int GetHashCode() {
|
||||||
return _hash;
|
return _hash;
|
||||||
}
|
}
|
||||||
public override string ToString() {
|
public override readonly string ToString() {
|
||||||
return string.Format("{0}({1})", IdentifierManager.Shared.Retrieve(Name), ParamCount);
|
return string.Format("{0}({1})", IdentifierManager.Shared.Retrieve(Name), ParamCount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -24,7 +24,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// Copies the memory in the span to another span.
|
/// Copies the memory in the span to another span.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="dest">The destination span.</param>
|
/// <param name="dest">The destination span.</param>
|
||||||
public void CopyTo(PdtVariableMemory dest) {
|
public readonly void CopyTo(PdtVariableMemory dest) {
|
||||||
CopyTo(dest._ptr, 0, Length);
|
CopyTo(dest._ptr, 0, Length);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -32,7 +32,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="dest">The destination buffer.</param>
|
/// <param name="dest">The destination buffer.</param>
|
||||||
/// <param name="destOffset">The offset on the destination buffer to start copying to.</param>
|
/// <param name="destOffset">The offset on the destination buffer to start copying to.</param>
|
||||||
public void CopyTo(byte[] dest, int destOffset) {
|
public readonly void CopyTo(byte[] dest, int destOffset) {
|
||||||
fixed (byte* ptr = dest) {
|
fixed (byte* ptr = dest) {
|
||||||
CopyTo(ptr, destOffset, Length);
|
CopyTo(ptr, destOffset, Length);
|
||||||
}
|
}
|
||||||
@@ -44,13 +44,13 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <param name="destOffset">The offset on the destination buffer to start copying to.</param>
|
/// <param name="destOffset">The offset on the destination buffer to start copying to.</param>
|
||||||
/// <param name="length">The length to copy.</param>
|
/// <param name="length">The length to copy.</param>
|
||||||
/// <exception cref="ArgumentOutOfRangeException"><paramref name="length" /> is greater than the length of the span.</exception>
|
/// <exception cref="ArgumentOutOfRangeException"><paramref name="length" /> is greater than the length of the span.</exception>
|
||||||
public void CopyTo(byte* dest, int destOffset, int length) {
|
public readonly void CopyTo(byte* dest, int destOffset, int length) {
|
||||||
if (length > Length) throw new ArgumentOutOfRangeException("length");
|
if (length > Length) throw new ArgumentOutOfRangeException("length");
|
||||||
for (int i = 0; i < length; i++)
|
for (int i = 0; i < length; i++)
|
||||||
dest[destOffset + i] = _ptr[i];
|
dest[destOffset + i] = _ptr[i];
|
||||||
}
|
}
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public bool Equals(PdtVariableMemory obj) {
|
public readonly bool Equals(PdtVariableMemory obj) {
|
||||||
if (Type != obj.Type || Length != obj.Length) return false;
|
if (Type != obj.Type || Length != obj.Length) return false;
|
||||||
for (int i = 0; i < Length; i++) {
|
for (int i = 0; i < Length; i++) {
|
||||||
if (*(_ptr + i) != *(obj._ptr + i)) return false;
|
if (*(_ptr + i) != *(obj._ptr + i)) return false;
|
||||||
@@ -63,7 +63,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <param name="offset">The offset on the span to start reading from.</param>
|
/// <param name="offset">The offset on the span to start reading from.</param>
|
||||||
/// <returns>A number.</returns>
|
/// <returns>A number.</returns>
|
||||||
/// <exception cref="InvalidCastException">The span at the offset does not represent a number.</exception>
|
/// <exception cref="InvalidCastException">The span at the offset does not represent a number.</exception>
|
||||||
public float AsNumber(int offset = 0) {
|
public readonly float AsNumber(int offset = 0) {
|
||||||
if (Type != PdtInternalType.Number && Type != PdtInternalType.Vector)
|
if (Type != PdtInternalType.Number && Type != PdtInternalType.Vector)
|
||||||
throw new InvalidCastException("Not a number");
|
throw new InvalidCastException("Not a number");
|
||||||
float value;
|
float value;
|
||||||
@@ -79,7 +79,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <param name="offset">The offset from the start of the span.</param>
|
/// <param name="offset">The offset from the start of the span.</param>
|
||||||
/// <exception cref="InvalidCastException">The span at the offset does not represent a number.</exception>
|
/// <exception cref="InvalidCastException">The span at the offset does not represent a number.</exception>
|
||||||
/// <exception cref="InvalidOperationException">The length of the span is not sufficient.</exception>
|
/// <exception cref="InvalidOperationException">The length of the span is not sufficient.</exception>
|
||||||
public void SetNumber(float value, int offset = 0) {
|
public readonly void SetNumber(float value, int offset = 0) {
|
||||||
if (Type != PdtInternalType.Number && Type != PdtInternalType.Vector)
|
if (Type != PdtInternalType.Number && Type != PdtInternalType.Vector)
|
||||||
throw new InvalidCastException("Not a number");
|
throw new InvalidCastException("Not a number");
|
||||||
if (Length < sizeof(float) + offset)
|
if (Length < sizeof(float) + offset)
|
||||||
@@ -94,7 +94,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <param name="offset">The offset on the span to start reading from.</param>
|
/// <param name="offset">The offset on the span to start reading from.</param>
|
||||||
/// <returns>A string.</returns>
|
/// <returns>A string.</returns>
|
||||||
/// <exception cref="InvalidCastException">The span at the offset does not represent a string.</exception>
|
/// <exception cref="InvalidCastException">The span at the offset does not represent a string.</exception>
|
||||||
public string AsString(int offset = 0) {
|
public readonly string AsString(int offset = 0) {
|
||||||
if (Type != PdtInternalType.String && Type != PdtInternalType.Array)
|
if (Type != PdtInternalType.String && Type != PdtInternalType.Array)
|
||||||
throw new InvalidCastException("Not a string");
|
throw new InvalidCastException("Not a string");
|
||||||
var len = *(int*)(_ptr + offset);
|
var len = *(int*)(_ptr + offset);
|
||||||
@@ -107,7 +107,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <param name="offset">The offset from the start of the span.</param>
|
/// <param name="offset">The offset from the start of the span.</param>
|
||||||
/// <exception cref="InvalidCastException">The span at the offset does not represent a string.</exception>
|
/// <exception cref="InvalidCastException">The span at the offset does not represent a string.</exception>
|
||||||
/// <exception cref="InvalidOperationException">The length of the span is not sufficient.</exception>
|
/// <exception cref="InvalidOperationException">The length of the span is not sufficient.</exception>
|
||||||
public void SetString(string value, int offset = 0) {
|
public readonly void SetString(string value, int offset = 0) {
|
||||||
if (Type != PdtInternalType.String && Type != PdtInternalType.Array)
|
if (Type != PdtInternalType.String && Type != PdtInternalType.Array)
|
||||||
throw new InvalidCastException("Not a string");
|
throw new InvalidCastException("Not a string");
|
||||||
int strlen = value.Length;
|
int strlen = value.Length;
|
||||||
@@ -124,7 +124,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <param name="offset">The offset on the span to start reading from.</param>
|
/// <param name="offset">The offset on the span to start reading from.</param>
|
||||||
/// <returns>The name of an undefined identifier.</returns>
|
/// <returns>The name of an undefined identifier.</returns>
|
||||||
/// <exception cref="InvalidCastException">The span does not represent an undefined identifier.</exception>
|
/// <exception cref="InvalidCastException">The span does not represent an undefined identifier.</exception>
|
||||||
public int AsIdentifier(int offset = 0) {
|
public readonly int AsIdentifier(int offset = 0) {
|
||||||
if (Type != PdtInternalType.Undefined && Type != PdtInternalType.Array)
|
if (Type != PdtInternalType.Undefined && Type != PdtInternalType.Array)
|
||||||
throw new InvalidCastException("Not an identifier");
|
throw new InvalidCastException("Not an identifier");
|
||||||
return *(int*)(_ptr + offset);
|
return *(int*)(_ptr + offset);
|
||||||
@@ -140,7 +140,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// <para>Use <see cref="AsNumber(int)" /> instead while reading an unaligned number.</para>
|
/// <para>Use <see cref="AsNumber(int)" /> instead while reading an unaligned number.</para>
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public T As<T>(int offset = 0) {
|
public readonly T As<T>(int offset = 0) {
|
||||||
var len = Unsafe.SizeOf<T>();
|
var len = Unsafe.SizeOf<T>();
|
||||||
if (offset >= Length)
|
if (offset >= Length)
|
||||||
throw new ArgumentOutOfRangeException("offset");
|
throw new ArgumentOutOfRangeException("offset");
|
||||||
@@ -159,7 +159,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// <para>Use <see cref="SetNumber(float, int)" /> instead while writing an unaligned number.</para>
|
/// <para>Use <see cref="SetNumber(float, int)" /> instead while writing an unaligned number.</para>
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public void Set<T>(T value, int offset = 0) {
|
public readonly void Set<T>(T value, int offset = 0) {
|
||||||
var len = Unsafe.SizeOf<T>();
|
var len = Unsafe.SizeOf<T>();
|
||||||
if (offset >= Length)
|
if (offset >= Length)
|
||||||
throw new ArgumentOutOfRangeException("offset");
|
throw new ArgumentOutOfRangeException("offset");
|
||||||
@@ -173,7 +173,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <param name="arrtype">The type of the array.</param>
|
/// <param name="arrtype">The type of the array.</param>
|
||||||
/// <param name="pc">The item count of the array.</param>
|
/// <param name="pc">The item count of the array.</param>
|
||||||
/// <exception cref="InvalidCastException">The span does not represent an array.</exception>
|
/// <exception cref="InvalidCastException">The span does not represent an array.</exception>
|
||||||
public void GetArraySuffix(out int arrtype, out int pc) {
|
public readonly void GetArraySuffix(out int arrtype, out int pc) {
|
||||||
if (Type != PdtInternalType.Vector && Type != PdtInternalType.Array)
|
if (Type != PdtInternalType.Vector && Type != PdtInternalType.Array)
|
||||||
throw new InvalidCastException("Not an array or vector");
|
throw new InvalidCastException("Not an array or vector");
|
||||||
arrtype = *(int*)(_ptr + Length - sizeof(int));
|
arrtype = *(int*)(_ptr + Length - sizeof(int));
|
||||||
@@ -186,7 +186,7 @@ namespace Cryville.Common.Pdt {
|
|||||||
/// <param name="arrtype">The type of the array.</param>
|
/// <param name="arrtype">The type of the array.</param>
|
||||||
/// <param name="pc">The item count of the array.</param>
|
/// <param name="pc">The item count of the array.</param>
|
||||||
/// <exception cref="InvalidCastException">The span does not represent an array.</exception>
|
/// <exception cref="InvalidCastException">The span does not represent an array.</exception>
|
||||||
public void SetArraySuffix(int arrtype, int pc = 0) {
|
public readonly void SetArraySuffix(int arrtype, int pc = 0) {
|
||||||
if (Type != PdtInternalType.Vector && Type != PdtInternalType.Array)
|
if (Type != PdtInternalType.Vector && Type != PdtInternalType.Array)
|
||||||
throw new InvalidCastException("Not an array or vector");
|
throw new InvalidCastException("Not an array or vector");
|
||||||
*(int*)(_ptr + Length - sizeof(int)) = arrtype;
|
*(int*)(_ptr + Length - sizeof(int)) = arrtype;
|
||||||
|
28
Assets/Cryville/Common/Qualified.cs
Normal file
28
Assets/Cryville/Common/Qualified.cs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Cryville.Common {
|
||||||
|
public struct Qualified<T> : IFormattable where T : IConvertible {
|
||||||
|
static readonly string _prefixes = "yzafpnμm kMGTPEZY";
|
||||||
|
public T Value { get; set; }
|
||||||
|
public string Unit { get; set; }
|
||||||
|
|
||||||
|
public Qualified(string unit) : this(default, unit) { }
|
||||||
|
public Qualified(T value, string unit) {
|
||||||
|
Value = value;
|
||||||
|
Unit = unit;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override readonly string ToString() { return ToString("G3"); }
|
||||||
|
public readonly string ToString(string format) { return ToString(format, null); }
|
||||||
|
public readonly string ToString(string format, IFormatProvider formatProvider) {
|
||||||
|
double value = Value.ToDouble(formatProvider);
|
||||||
|
int expIndex = (int)System.Math.Log10(value) / 3;
|
||||||
|
if (expIndex == 0) {
|
||||||
|
return value.ToString(format, formatProvider) + Unit;
|
||||||
|
}
|
||||||
|
int prefixIndex = System.Math.Clamp(expIndex + 8, 0, _prefixes.Length - 1);
|
||||||
|
value /= System.Math.Pow(1e3, prefixIndex - 8);
|
||||||
|
return value.ToString(format, formatProvider) + _prefixes[prefixIndex] + Unit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: ae9dab8f520fadc4194032f523ca87c1
|
guid: 909a28e78d4239f4c9507c3c9128baf2
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
7
Assets/Cryville/Common/Shared.cs
Normal file
7
Assets/Cryville/Common/Shared.cs
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
using Cryville.Common.Logging;
|
||||||
|
|
||||||
|
namespace Cryville.Common {
|
||||||
|
public static class Shared {
|
||||||
|
public static readonly Logger Logger = new();
|
||||||
|
}
|
||||||
|
}
|
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 5a795e416e54c69418de1a3c27a88932
|
guid: ef30832cb8f75dd4bb24744d068553f2
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
@@ -13,7 +13,7 @@ namespace Cryville.Common {
|
|||||||
/// <param name="s">The file name or file path.</param>
|
/// <param name="s">The file name or file path.</param>
|
||||||
/// <returns>The file name or file path with the extension removed.</returns>
|
/// <returns>The file name or file path with the extension removed.</returns>
|
||||||
public static string TrimExt(string s) {
|
public static string TrimExt(string s) {
|
||||||
return s.Substring(0, s.LastIndexOf("."));
|
return s[..s.LastIndexOf(".")];
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Converts the value of a <see cref="TimeSpan" /> to a human-readable string.
|
/// Converts the value of a <see cref="TimeSpan" /> to a human-readable string.
|
||||||
@@ -52,12 +52,12 @@ namespace Cryville.Common {
|
|||||||
public static string GetProcessPathFromCommand(string command) {
|
public static string GetProcessPathFromCommand(string command) {
|
||||||
command = command.Trim();
|
command = command.Trim();
|
||||||
if (command[0] == '"') {
|
if (command[0] == '"') {
|
||||||
return command.Substring(1, command.IndexOf('"', 1) - 1);
|
return command[1..command.IndexOf('"', 1)];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int e = command.IndexOf(' ');
|
int e = command.IndexOf(' ');
|
||||||
if (e == -1) return command;
|
if (e == -1) return command;
|
||||||
else return command.Substring(0, e);
|
else return command[..e];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
95
Assets/Cryville/Common/Tweener.cs
Normal file
95
Assets/Cryville/Common/Tweener.cs
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Cryville.Common {
|
||||||
|
public class PropertyTweener<T> {
|
||||||
|
readonly Func<T> _getter;
|
||||||
|
readonly Action<T> _setter;
|
||||||
|
readonly Tweener<T> _tweener;
|
||||||
|
public PropertyTweener(Func<T> getter, Action<T> setter, Tweener<T> tweener) {
|
||||||
|
_getter = getter;
|
||||||
|
_setter = setter;
|
||||||
|
_tweener = tweener;
|
||||||
|
var initialValue = getter();
|
||||||
|
_tweener.Start(initialValue, initialValue, float.Epsilon);
|
||||||
|
}
|
||||||
|
public PropertyTweener<T> Start(T endValue, float duration) {
|
||||||
|
_tweener.Start(_getter(), endValue, duration);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
public void Advance(float deltaTime) {
|
||||||
|
if (!_tweener.Advance(deltaTime, out var value)) return;
|
||||||
|
_setter(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public delegate T Addition<T>(T a, T b);
|
||||||
|
public delegate T Multiplication<T>(float k, T b);
|
||||||
|
public delegate float EasingFunction(float t);
|
||||||
|
public class Tweener<T> {
|
||||||
|
readonly Addition<T> _addition;
|
||||||
|
readonly Multiplication<T> _multiplication;
|
||||||
|
public Tweener(Addition<T> addition, Multiplication<T> multiplication) {
|
||||||
|
_addition = addition;
|
||||||
|
_multiplication = multiplication;
|
||||||
|
}
|
||||||
|
public EasingFunction EasingFunction { get; set; } = EasingFunctions.Linear;
|
||||||
|
public Tweener<T> With(EasingFunction easing) {
|
||||||
|
EasingFunction = easing;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
T _startValue = default;
|
||||||
|
T _endValue = default;
|
||||||
|
float _duration = float.Epsilon;
|
||||||
|
float _time;
|
||||||
|
bool _endOfTween;
|
||||||
|
public Tweener<T> Start(T startValue, T endValue, float duration) {
|
||||||
|
_startValue = startValue;
|
||||||
|
_endValue = endValue;
|
||||||
|
_duration = duration;
|
||||||
|
_time = 0;
|
||||||
|
_endOfTween = false;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
public bool Advance(float deltaTime, out T value) {
|
||||||
|
if (_endOfTween) {
|
||||||
|
value = _endValue;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (_time >= _duration) {
|
||||||
|
value = _endValue;
|
||||||
|
_endOfTween = true;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
_time += deltaTime;
|
||||||
|
var ratio = EasingFunction(System.Math.Clamp(_time / _duration, 0, 1));
|
||||||
|
value = _addition(_multiplication(1 - ratio, _startValue), _multiplication(ratio, _endValue));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
public Tweener<object> Boxed() {
|
||||||
|
return new Tweener<object>((a, b) => _addition((T)a, (T)b), (k, v) => _multiplication(k, (T)v));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public static class Tweeners {
|
||||||
|
public static Tweener<byte> Byte => new((a, b) => (byte)(a + b), (k, v) => (byte)(k * v));
|
||||||
|
public static Tweener<sbyte> SByte => new((a, b) => (sbyte)(a + b), (k, v) => (sbyte)(k * v));
|
||||||
|
public static Tweener<short> Int16 => new((a, b) => (short)(a + b), (k, v) => (short)(k * v));
|
||||||
|
public static Tweener<ushort> UInt16 => new((a, b) => (ushort)(a + b), (k, v) => (ushort)(k * v));
|
||||||
|
public static Tweener<int> Int32 => new((a, b) => a + b, (k, v) => (int)(k * v));
|
||||||
|
public static Tweener<uint> UInt32 => new((a, b) => a + b, (k, v) => (uint)(k * v));
|
||||||
|
public static Tweener<long> Int64 => new((a, b) => a + b, (k, v) => (long)(k * v));
|
||||||
|
public static Tweener<ulong> UInt64 => new((a, b) => a + b, (k, v) => (ulong)(k * v));
|
||||||
|
public static Tweener<IntPtr> IntPtr => new((a, b) => new IntPtr((long)a + (long)b), (k, v) => new IntPtr((long)(k * (long)v)));
|
||||||
|
public static Tweener<UIntPtr> UIntPtr => new((a, b) => new UIntPtr((ulong)a + (ulong)b), (k, v) => new UIntPtr((ulong)(k * (ulong)v)));
|
||||||
|
public static Tweener<float> Float => new((a, b) => a + b, (k, v) => k * v);
|
||||||
|
public static Tweener<double> Double => new((a, b) => a + b, (k, v) => k * v);
|
||||||
|
}
|
||||||
|
public static class EasingFunctions {
|
||||||
|
public static float Linear(float x) => x;
|
||||||
|
public static float InQuad(float x) => x * x;
|
||||||
|
public static float InCubic(float x) => x * x * x;
|
||||||
|
public static float InSine(float x) => 1 - OutSine(1 - x);
|
||||||
|
public static float OutQuad(float x) => 1 - InQuad(1 - x);
|
||||||
|
public static float OutCubic(float x) => 1 - InCubic(1 - x);
|
||||||
|
public static float OutSine(float x) => MathF.Sin(x * MathF.PI / 2);
|
||||||
|
}
|
||||||
|
}
|
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 71234dd1c93d47b4893750686b2333a3
|
guid: 0b4037ba4138aae47b8da984f30b4db9
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
@@ -1,26 +0,0 @@
|
|||||||
using System;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Cryville.Common.Unity {
|
|
||||||
static class CallHelper {
|
|
||||||
public static bool HasFlag(this Enum obj, Enum flag) {
|
|
||||||
ulong num = Convert.ToUInt64(flag);
|
|
||||||
ulong num2 = Convert.ToUInt64(obj);
|
|
||||||
return (num2 & num) == num;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void Purge(Transform obj) {
|
|
||||||
foreach (Transform i in obj)
|
|
||||||
GameObject.Destroy(i.gameObject);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*public static void DownloadAndUnzip(string url, FileInfo file) {
|
|
||||||
using (DownloadDialog d = new DownloadDialog()) {
|
|
||||||
d.Download(url, file);
|
|
||||||
}
|
|
||||||
using (ZipFile z = new ZipFile(file.FullName)) {
|
|
||||||
z.ExtractAll(file.DirectoryName, ExtractExistingFileAction.OverwriteSilently);
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,12 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 98b3d4b7cc1ce054598780159356da35
|
|
||||||
timeCreated: 1608801352
|
|
||||||
licenseType: Free
|
|
||||||
MonoImporter:
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -1,147 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using UnityEngine;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
|
|
||||||
namespace Cryville.Common.Unity {
|
|
||||||
public class FileDialog : MonoBehaviour {
|
|
||||||
Transform panel;
|
|
||||||
Transform title;
|
|
||||||
Transform drives;
|
|
||||||
Transform dirs;
|
|
||||||
Transform files;
|
|
||||||
|
|
||||||
public event Action OnClose;
|
|
||||||
|
|
||||||
#if UNITY_ANDROID && !UNITY_EDITOR_WIN
|
|
||||||
string androidStorage = "";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
string fileName = null;
|
|
||||||
public string FileName {
|
|
||||||
get { return fileName; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public string[] m_filter = new string[]{};
|
|
||||||
public string[] Filter {
|
|
||||||
set { m_filter = value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public IReadOnlyDictionary<string, string> m_presetPaths = new Dictionary<string, string>();
|
|
||||||
public IReadOnlyDictionary<string, string> PresetPaths {
|
|
||||||
get { return m_presetPaths; }
|
|
||||||
set { m_presetPaths = value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
GameObject prefabButton;
|
|
||||||
|
|
||||||
void Start() {
|
|
||||||
prefabButton = Resources.Load<GameObject>("Common/Button");
|
|
||||||
panel = gameObject.transform.Find("Panel");
|
|
||||||
title = panel.Find("Title/Text");
|
|
||||||
drives = panel.Find("Drives/DrivesInner");
|
|
||||||
dirs = panel.Find("Directories/DirectoriesInner");
|
|
||||||
files = panel.Find("Files/FilesInner");
|
|
||||||
if (CurrentDirectory == null) {
|
|
||||||
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
|
|
||||||
CurrentDirectory = new DirectoryInfo(Directory.GetCurrentDirectory());
|
|
||||||
#elif UNITY_ANDROID
|
|
||||||
using (AndroidJavaClass ajc = new AndroidJavaClass("android.os.Environment"))
|
|
||||||
using (AndroidJavaObject file = ajc.CallStatic<AndroidJavaObject>("getExternalStorageDirectory")) {
|
|
||||||
androidStorage = file.Call<string>("getAbsolutePath");
|
|
||||||
CurrentDirectory = new DirectoryInfo(androidStorage);
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
#error No default directory
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
UpdateGUI(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Show() {
|
|
||||||
fileName = null;
|
|
||||||
gameObject.SetActive(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Close() {
|
|
||||||
var ev = OnClose;
|
|
||||||
if (ev != null) ev.Invoke();
|
|
||||||
gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
public DirectoryInfo CurrentDirectory;
|
|
||||||
|
|
||||||
void ChangeDirectory(DirectoryInfo s) {
|
|
||||||
CurrentDirectory = s;
|
|
||||||
UpdateGUI(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
void SelectFile(string s) {
|
|
||||||
fileName = s;
|
|
||||||
Close();
|
|
||||||
}
|
|
||||||
|
|
||||||
void UpdateGUI(int depth) {
|
|
||||||
title.GetComponent<Text>().text = CurrentDirectory.FullName;
|
|
||||||
|
|
||||||
if (depth <= 0) {
|
|
||||||
CallHelper.Purge(drives);
|
|
||||||
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
|
||||||
var dl = Directory.GetLogicalDrives();
|
|
||||||
foreach (string d in dl) {
|
|
||||||
GameObject btn = Instantiate(prefabButton);
|
|
||||||
btn.GetComponentInChildren<Text>().text = d;
|
|
||||||
btn.GetComponentInChildren<Button>().onClick.AddListener(() => ChangeDirectory(new DirectoryInfo(d)));
|
|
||||||
btn.transform.SetParent(drives, false);
|
|
||||||
}
|
|
||||||
#elif UNITY_ANDROID
|
|
||||||
GameObject sbtn = GameObject.Instantiate<GameObject>(prefabButton);
|
|
||||||
sbtn.GetComponentInChildren<Text>().text = "Storage";
|
|
||||||
sbtn.GetComponentInChildren<Button>().onClick.AddListener(() => ChangeDirectory(new DirectoryInfo(androidStorage)));
|
|
||||||
sbtn.transform.SetParent(drives, false);
|
|
||||||
#else
|
|
||||||
#error No update GUI logic
|
|
||||||
#endif
|
|
||||||
foreach (var p in m_presetPaths) {
|
|
||||||
var d = new DirectoryInfo(p.Value);
|
|
||||||
if (d.Exists) {
|
|
||||||
GameObject btn = Instantiate(prefabButton);
|
|
||||||
btn.GetComponentInChildren<Text>().text = p.Key;
|
|
||||||
btn.GetComponentInChildren<Button>().onClick.AddListener(() => ChangeDirectory(d));
|
|
||||||
btn.transform.SetParent(drives, false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
CallHelper.Purge(dirs);
|
|
||||||
DirectoryInfo[] subdirs = CurrentDirectory.GetDirectories();
|
|
||||||
GameObject pbtn = Instantiate(prefabButton);
|
|
||||||
pbtn.GetComponentInChildren<Text>().text = "..";
|
|
||||||
pbtn.GetComponentInChildren<Button>().onClick.AddListener(() => ChangeDirectory(new DirectoryInfo(Path.Combine(CurrentDirectory.FullName, ".."))));
|
|
||||||
pbtn.transform.SetParent(dirs, false);
|
|
||||||
foreach (DirectoryInfo d in subdirs) {
|
|
||||||
GameObject btn = Instantiate(prefabButton);
|
|
||||||
btn.GetComponentInChildren<Text>().text = d.Name;
|
|
||||||
var ts = d;
|
|
||||||
btn.GetComponentInChildren<Button>().onClick.AddListener(() => ChangeDirectory(ts));
|
|
||||||
btn.transform.SetParent(dirs, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
CallHelper.Purge(files);
|
|
||||||
FileInfo[] fl = CurrentDirectory.GetFiles();
|
|
||||||
foreach (FileInfo d in fl) {
|
|
||||||
foreach (string ext in m_filter) {
|
|
||||||
if (d.Extension == ext) {
|
|
||||||
GameObject btn = Instantiate(prefabButton);
|
|
||||||
btn.GetComponentInChildren<Text>().text = d.Name + " / " + (d.Length / 1024.0).ToString("0.0 KiB");
|
|
||||||
var ts = d.FullName;
|
|
||||||
btn.GetComponentInChildren<Button>().onClick.AddListener(() => SelectFile(ts));
|
|
||||||
btn.transform.SetParent(files, false);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,12 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 9865f498871e30548959e6b28f91feae
|
|
||||||
timeCreated: 1608801352
|
|
||||||
licenseType: Free
|
|
||||||
MonoImporter:
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@@ -16,7 +16,7 @@ namespace Cryville.Common.Unity {
|
|||||||
public class NetworkTaskWorker {
|
public class NetworkTaskWorker {
|
||||||
bool suspended;
|
bool suspended;
|
||||||
NetworkTask currentNetworkTask;
|
NetworkTask currentNetworkTask;
|
||||||
readonly Queue<NetworkTask> networkTasks = new Queue<NetworkTask>();
|
readonly Queue<NetworkTask> networkTasks = new();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Current queued task count.
|
/// Current queued task count.
|
||||||
|
50
Assets/Cryville/Common/Unity/ScopedThreadAttacherInjector.cs
Normal file
50
Assets/Cryville/Common/Unity/ScopedThreadAttacherInjector.cs
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
#if UNITY_EDITOR
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using UnityEditor;
|
||||||
|
|
||||||
|
namespace Cryville.Common.Unity {
|
||||||
|
[InitializeOnLoad]
|
||||||
|
public class ScopedThreadAttacherInjector {
|
||||||
|
static readonly Encoding _encoding = new UTF8Encoding(false, true);
|
||||||
|
static string _filePath;
|
||||||
|
static string _oldSrc;
|
||||||
|
|
||||||
|
static ScopedThreadAttacherInjector() {
|
||||||
|
BuildPlayerWindow.RegisterBuildPlayerHandler(opt => HandlePlayerBuild(opt));
|
||||||
|
}
|
||||||
|
|
||||||
|
static void HandlePlayerBuild(BuildPlayerOptions opt) {
|
||||||
|
try {
|
||||||
|
OnPreprocessBuild();
|
||||||
|
BuildPlayerWindow.DefaultBuildMethods.BuildPlayer(opt);
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
OnPostprocessBuild();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void OnPreprocessBuild() {
|
||||||
|
var il2cppRoot = Environment.GetEnvironmentVariable("UNITY_IL2CPP_PATH");
|
||||||
|
if (string.IsNullOrEmpty(il2cppRoot)) {
|
||||||
|
_filePath = string.Empty;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_filePath = Path.Combine(il2cppRoot, "libil2cpp", "vm", "ScopedThreadAttacher.cpp");
|
||||||
|
if (!File.Exists(_filePath)) {
|
||||||
|
_filePath = string.Empty;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
_oldSrc = File.ReadAllText(_filePath, _encoding);
|
||||||
|
File.WriteAllText(_filePath, Regex.Replace(_oldSrc, @"~\s*?ScopedThreadAttacher\s*?\(\s*?\)\s*?\{.*\}", "~ScopedThreadAttacher(){}", RegexOptions.Singleline), _encoding);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void OnPostprocessBuild() {
|
||||||
|
if (string.IsNullOrEmpty(_filePath)) return;
|
||||||
|
File.WriteAllText(_filePath, _oldSrc, _encoding);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 49a8d5b9869e5bb42bafbe71f84fecc5
|
guid: 2322d8e9250e9e6469826361223dfdda
|
||||||
MonoImporter:
|
MonoImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
25
Assets/Cryville/Common/Unity/SingletonBehaviour.cs
Normal file
25
Assets/Cryville/Common/Unity/SingletonBehaviour.cs
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Cryville.Common.Unity {
|
||||||
|
public abstract class SingletonBehaviour<TSelf> : MonoBehaviour where TSelf : SingletonBehaviour<TSelf> {
|
||||||
|
static TSelf s_instance;
|
||||||
|
public static TSelf Instance {
|
||||||
|
get {
|
||||||
|
return s_instance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
bool _validInstance;
|
||||||
|
protected virtual void Awake() {
|
||||||
|
if (s_instance != null) {
|
||||||
|
Debug.LogErrorFormat("Duplicate singleton behaviour {0}", typeof(TSelf));
|
||||||
|
Destroy(gameObject);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
s_instance = (TSelf)this;
|
||||||
|
_validInstance = true;
|
||||||
|
}
|
||||||
|
protected virtual void OnDestroy() {
|
||||||
|
if (_validInstance) s_instance = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Cryville/Common/Unity/SingletonBehaviour.cs.meta
Normal file
11
Assets/Cryville/Common/Unity/SingletonBehaviour.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9dd02eadcf1c6e745939a75a797c9093
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
181
Assets/Cryville/Common/Unity/StateTweener.cs
Normal file
181
Assets/Cryville/Common/Unity/StateTweener.cs
Normal file
@@ -0,0 +1,181 @@
|
|||||||
|
using Cryville.Common.Reflection;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Cryville.Common.Unity {
|
||||||
|
public class StateTweener : MonoBehaviour {
|
||||||
|
[SerializeField]
|
||||||
|
State[] m_states;
|
||||||
|
[Serializable]
|
||||||
|
struct State {
|
||||||
|
[SerializeField]
|
||||||
|
public string Name;
|
||||||
|
[SerializeField]
|
||||||
|
public AttributeState[] Attributes;
|
||||||
|
}
|
||||||
|
[Serializable]
|
||||||
|
struct AttributeState {
|
||||||
|
[SerializeField]
|
||||||
|
public AttributeBinding Attribute;
|
||||||
|
[SerializeField]
|
||||||
|
public string Value;
|
||||||
|
}
|
||||||
|
[Serializable]
|
||||||
|
struct AttributeBinding : IEquatable<AttributeBinding> {
|
||||||
|
[SerializeField]
|
||||||
|
public Component Component;
|
||||||
|
[SerializeField]
|
||||||
|
public string Attribute;
|
||||||
|
|
||||||
|
public readonly bool Equals(AttributeBinding other) {
|
||||||
|
return Component.Equals(other.Component) && Attribute.Equals(other.Attribute);
|
||||||
|
}
|
||||||
|
public override readonly bool Equals(object obj) {
|
||||||
|
return obj is AttributeBinding other && Equals(other);
|
||||||
|
}
|
||||||
|
public override readonly int GetHashCode() {
|
||||||
|
return Component.GetHashCode() ^ Attribute.GetHashCode();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
StateTweener[] m_children;
|
||||||
|
|
||||||
|
readonly List<string> _statePriority = new();
|
||||||
|
readonly Dictionary<AttributeBinding, object> _defaults = new();
|
||||||
|
readonly Dictionary<AttributeBinding, PropertyTweener<object>> _tweeners = new();
|
||||||
|
readonly Dictionary<string, Dictionary<AttributeBinding, object>> _runtimeStates = new();
|
||||||
|
|
||||||
|
void Awake() {
|
||||||
|
var types = new Dictionary<AttributeBinding, Type>();
|
||||||
|
foreach (var state in m_states) {
|
||||||
|
Dictionary<AttributeBinding, object> attrs;
|
||||||
|
_statePriority.Add(state.Name);
|
||||||
|
_runtimeStates.Add(state.Name, attrs = new Dictionary<AttributeBinding, object>());
|
||||||
|
foreach (var attr in state.Attributes) {
|
||||||
|
var binding = attr.Attribute;
|
||||||
|
if (!types.TryGetValue(binding, out var type)) {
|
||||||
|
var comp = binding.Component;
|
||||||
|
var ctype = comp.GetType();
|
||||||
|
var path = binding.Attribute.Split('.');
|
||||||
|
|
||||||
|
var propName = path[0];
|
||||||
|
var prop = ctype.GetMember(propName, MemberTypes.Field | MemberTypes.Property, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static).Single();
|
||||||
|
var gvd = FieldLikeHelper.GetGetValueDelegate(prop);
|
||||||
|
var svd = FieldLikeHelper.GetSetValueDelegate(prop);
|
||||||
|
|
||||||
|
Func<object> getter;
|
||||||
|
Action<object> setter;
|
||||||
|
if (path.Length == 1) {
|
||||||
|
type = FieldLikeHelper.GetMemberType(prop);
|
||||||
|
getter = () => gvd(comp);
|
||||||
|
setter = v => svd(comp, v);
|
||||||
|
}
|
||||||
|
else if (path.Length == 2) {
|
||||||
|
var propType = FieldLikeHelper.GetMemberType(prop);
|
||||||
|
var subPropName = path[1];
|
||||||
|
var subProp = propType.GetMember(subPropName, MemberTypes.Field | MemberTypes.Property, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static).Single();
|
||||||
|
|
||||||
|
type = FieldLikeHelper.GetMemberType(subProp);
|
||||||
|
var gsvd = FieldLikeHelper.GetGetValueDelegate(subProp);
|
||||||
|
getter = () => gsvd(gvd(comp));
|
||||||
|
var ssvd = FieldLikeHelper.GetSetValueDelegate(subProp);
|
||||||
|
setter = v => {
|
||||||
|
object obj = gvd(comp);
|
||||||
|
ssvd(obj, v);
|
||||||
|
svd(comp, obj);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
throw new FormatException("Invalid attribute path.");
|
||||||
|
}
|
||||||
|
_tweeners.Add(binding, CreateTweener(type, getter, setter));
|
||||||
|
_defaults.Add(binding, getter());
|
||||||
|
types.Add(binding, type);
|
||||||
|
}
|
||||||
|
|
||||||
|
attrs.Add(binding, Convert.ChangeType(attr.Value, type));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foreach (var def in _defaults) {
|
||||||
|
foreach (var state in _runtimeStates) {
|
||||||
|
if (!state.Value.ContainsKey(def.Key)) {
|
||||||
|
state.Value.Add(def.Key, def.Value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_spcmp = new StatePriorityComparer(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
PropertyTweener<object> CreateTweener(Type type, Func<object> getter, Action<object> setter) {
|
||||||
|
if (type == typeof(byte)) return new PropertyTweener<object>(getter, setter, Tweeners.Byte.Boxed());
|
||||||
|
else if (type == typeof(sbyte)) return new PropertyTweener<object>(getter, setter, Tweeners.SByte.Boxed());
|
||||||
|
else if (type == typeof(short)) return new PropertyTweener<object>(getter, setter, Tweeners.Int16.Boxed());
|
||||||
|
else if (type == typeof(ushort)) return new PropertyTweener<object>(getter, setter, Tweeners.UInt16.Boxed());
|
||||||
|
else if (type == typeof(int)) return new PropertyTweener<object>(getter, setter, Tweeners.Int32.Boxed());
|
||||||
|
else if (type == typeof(uint)) return new PropertyTweener<object>(getter, setter, Tweeners.UInt32.Boxed());
|
||||||
|
else if (type == typeof(long)) return new PropertyTweener<object>(getter, setter, Tweeners.Int64.Boxed());
|
||||||
|
else if (type == typeof(ulong)) return new PropertyTweener<object>(getter, setter, Tweeners.UInt64.Boxed());
|
||||||
|
else if (type == typeof(IntPtr)) return new PropertyTweener<object>(getter, setter, Tweeners.IntPtr.Boxed());
|
||||||
|
else if (type == typeof(UIntPtr)) return new PropertyTweener<object>(getter, setter, Tweeners.UIntPtr.Boxed());
|
||||||
|
else if (type == typeof(float)) return new PropertyTweener<object>(getter, setter, Tweeners.Float.Boxed());
|
||||||
|
else if (type == typeof(double)) return new PropertyTweener<object>(getter, setter, Tweeners.Double.Boxed());
|
||||||
|
else throw new NotSupportedException("Property type not supported.");
|
||||||
|
}
|
||||||
|
|
||||||
|
void Update() {
|
||||||
|
foreach (var tweener in _tweeners) tweener.Value.Advance(Time.deltaTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
readonly List<string> m_cState = new();
|
||||||
|
public IReadOnlyList<string> CurrentState => m_cState;
|
||||||
|
public void ClearState(float transitionDuration = float.Epsilon) {
|
||||||
|
foreach (var child in m_children) child.ClearState(transitionDuration);
|
||||||
|
m_cState.Clear();
|
||||||
|
foreach (var tweener in _tweeners) {
|
||||||
|
tweener.Value.Start(_defaults[tweener.Key], transitionDuration);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public void EnterState(string state, float transitionDuration = float.Epsilon) {
|
||||||
|
if (_runtimeStates.TryGetValue(state, out var rs)) {
|
||||||
|
int index = m_cState.BinarySearch(state, _spcmp);
|
||||||
|
if (index < 0) {
|
||||||
|
index = ~index;
|
||||||
|
m_cState.Insert(index, state);
|
||||||
|
}
|
||||||
|
if (index == m_cState.Count - 1) {
|
||||||
|
foreach (var s in rs) {
|
||||||
|
_tweeners[s.Key].Start(s.Value, transitionDuration);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foreach (var child in m_children) child.EnterState(state, transitionDuration);
|
||||||
|
}
|
||||||
|
public void ExitState(string state, float transitionDuration = float.Epsilon) {
|
||||||
|
foreach (var child in m_children) child.ExitState(state, transitionDuration);
|
||||||
|
if (!_runtimeStates.ContainsKey(state)) return;
|
||||||
|
int index = m_cState.BinarySearch(state, _spcmp);
|
||||||
|
if (index < 0) return;
|
||||||
|
m_cState.RemoveAt(index);
|
||||||
|
if (index < m_cState.Count) return;
|
||||||
|
var attrs = m_cState.Count == 0 ? _defaults : _runtimeStates[m_cState[^1]];
|
||||||
|
foreach (var tweener in _tweeners) {
|
||||||
|
tweener.Value.Start(attrs[tweener.Key], transitionDuration);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
StatePriorityComparer _spcmp;
|
||||||
|
class StatePriorityComparer : IComparer<string> {
|
||||||
|
readonly StateTweener _self;
|
||||||
|
public StatePriorityComparer(StateTweener self) {
|
||||||
|
_self = self;
|
||||||
|
}
|
||||||
|
public int Compare(string x, string y) {
|
||||||
|
return _self._statePriority.IndexOf(x).CompareTo(_self._statePriority.IndexOf(y));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Cryville/Common/Unity/StateTweener.cs.meta
Normal file
11
Assets/Cryville/Common/Unity/StateTweener.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d605791cb18d88e4fb0ab6f794361eee
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -6,6 +6,7 @@ namespace Cryville.Common.Unity.UI {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// A <see cref="ILayoutElement" /> that takes the length of one axis to compute the preferred length of the other axis with respect to a aspect ratio.
|
/// A <see cref="ILayoutElement" /> that takes the length of one axis to compute the preferred length of the other axis with respect to a aspect ratio.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[ExecuteAlways]
|
||||||
public class AspectRatioLayoutElement : UIBehaviour, ILayoutElement {
|
public class AspectRatioLayoutElement : UIBehaviour, ILayoutElement {
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
[Tooltip("The aspect ratio. Width divided by height.")]
|
[Tooltip("The aspect ratio. Width divided by height.")]
|
||||||
@@ -35,32 +36,27 @@ namespace Cryville.Common.Unity.UI {
|
|||||||
SetDirty();
|
SetDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SetDirty() {
|
|
||||||
if (!IsActive()) return;
|
|
||||||
LayoutRebuilder.MarkLayoutForRebuild(transform as RectTransform);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public float minWidth {
|
public float minWidth {
|
||||||
get {
|
get {
|
||||||
return m_isVertical ? 0 : (transform as RectTransform).rect.height * m_aspectRatio;
|
return m_isVertical ? -1 : (transform as RectTransform).rect.height * m_aspectRatio;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public float preferredWidth { get { return minWidth; } }
|
public float preferredWidth { get { return minWidth; } }
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public float flexibleWidth { get { return 0; } }
|
public float flexibleWidth { get { return -1; } }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public float minHeight {
|
public float minHeight {
|
||||||
get {
|
get {
|
||||||
return m_isVertical ? (transform as RectTransform).rect.width / m_aspectRatio : 0;
|
return m_isVertical ? (transform as RectTransform).rect.width / m_aspectRatio : -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public float preferredHeight { get { return minHeight; } }
|
public float preferredHeight { get { return minHeight; } }
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public float flexibleHeight { get { return 0; } }
|
public float flexibleHeight { get { return -1; } }
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public int layoutPriority { get { return 1; } }
|
public int layoutPriority { get { return 1; } }
|
||||||
@@ -71,34 +67,46 @@ namespace Cryville.Common.Unity.UI {
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public void CalculateLayoutInputVertical() { }
|
public void CalculateLayoutInputVertical() { }
|
||||||
|
|
||||||
protected override void OnDidApplyAnimationProperties() {
|
|
||||||
base.OnDidApplyAnimationProperties();
|
|
||||||
SetDirty();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnDisable() {
|
|
||||||
SetDirty();
|
|
||||||
base.OnDisable();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnEnable() {
|
protected override void OnEnable() {
|
||||||
base.OnEnable();
|
base.OnEnable();
|
||||||
SetDirty();
|
SetDirty();
|
||||||
}
|
}
|
||||||
|
protected override void OnBeforeTransformParentChanged() {
|
||||||
protected override void OnRectTransformDimensionsChange() {
|
base.OnBeforeTransformParentChanged();
|
||||||
base.OnRectTransformDimensionsChange();
|
|
||||||
SetDirty();
|
SetDirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnTransformParentChanged() {
|
protected override void OnTransformParentChanged() {
|
||||||
base.OnTransformParentChanged();
|
base.OnTransformParentChanged();
|
||||||
SetDirty();
|
SetDirty();
|
||||||
}
|
}
|
||||||
|
protected override void OnDidApplyAnimationProperties() {
|
||||||
// Overriding fails compiler
|
base.OnDidApplyAnimationProperties();
|
||||||
new void OnValidate() {
|
|
||||||
SetDirty();
|
SetDirty();
|
||||||
}
|
}
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
protected override void OnValidate() {
|
||||||
|
base.OnValidate();
|
||||||
|
SetDirty();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
protected override void OnDisable() {
|
||||||
|
SetDirty();
|
||||||
|
base.OnDisable();
|
||||||
|
}
|
||||||
|
protected override void OnRectTransformDimensionsChange() {
|
||||||
|
base.OnRectTransformDimensionsChange();
|
||||||
|
SetDirty();
|
||||||
|
}
|
||||||
|
bool _delayedSetDirty;
|
||||||
|
private void SetDirty() {
|
||||||
|
if (!IsActive()) return;
|
||||||
|
if (CanvasUpdateRegistry.IsRebuildingLayout()) _delayedSetDirty = true;
|
||||||
|
else LayoutRebuilder.MarkLayoutForRebuild(transform as RectTransform);
|
||||||
|
}
|
||||||
|
void Update() {
|
||||||
|
if (!_delayedSetDirty) return;
|
||||||
|
_delayedSetDirty = false;
|
||||||
|
LayoutRebuilder.MarkLayoutForRebuild(transform as RectTransform);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
18
Assets/Cryville/Common/Unity/UI/CanvasRendererColorLinker.cs
Normal file
18
Assets/Cryville/Common/Unity/UI/CanvasRendererColorLinker.cs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Cryville.Common.Unity.UI {
|
||||||
|
[ExecuteAlways]
|
||||||
|
[RequireComponent(typeof(CanvasRenderer))]
|
||||||
|
public class CanvasRendererColorLinker : MonoBehaviour {
|
||||||
|
[SerializeField] CanvasRenderer m_source;
|
||||||
|
CanvasRenderer _target;
|
||||||
|
|
||||||
|
void Awake() {
|
||||||
|
_target = GetComponent<CanvasRenderer>();
|
||||||
|
}
|
||||||
|
void Update() {
|
||||||
|
if (m_source == null) return;
|
||||||
|
_target.SetColor(m_source.GetColor());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5f490a9cc1b652746b3062810e200ec5
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -56,38 +56,28 @@ namespace Cryville.Common.Unity.UI {
|
|||||||
set { m_compact = value; }
|
set { m_compact = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
[Tooltip("Whether the sprite is vertical.")]
|
||||||
|
private bool m_isVertical;
|
||||||
|
/// <summary>
|
||||||
|
/// Whether the sprite is vertical.
|
||||||
|
/// </summary>
|
||||||
|
public bool IsVertical {
|
||||||
|
get { return m_isVertical; }
|
||||||
|
set { m_isVertical = value; }
|
||||||
|
}
|
||||||
|
|
||||||
public override Texture mainTexture {
|
public override Texture mainTexture {
|
||||||
get { return Sprite == null ? s_WhiteTexture : Sprite.texture; }
|
get { return Sprite == null ? s_WhiteTexture : Sprite.texture; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GetCornerLength(int axis, int corner, Vector4 uv, out float length, out float uvLength) {
|
||||||
|
float border = Sprite.border[(corner << 1) | axis];
|
||||||
|
float sizeRatio = border / (axis == 0 ? Sprite.rect.height : Sprite.rect.width);
|
||||||
|
length = sizeRatio * (axis == 0 ? rectTransform.rect.height : rectTransform.rect.width);
|
||||||
|
uvLength = (uv[(axis ^ 1) | 2] - uv[axis ^ 1]) * (border / (axis == 0 ? Sprite.rect.width : Sprite.rect.height));
|
||||||
|
}
|
||||||
protected override void OnPopulateMesh(VertexHelper vh) {
|
protected override void OnPopulateMesh(VertexHelper vh) {
|
||||||
float actualWidth = rectTransform.rect.width;
|
|
||||||
|
|
||||||
Vector4 uv = DataUtility.GetOuterUV(Sprite);
|
|
||||||
|
|
||||||
float cornerLeftSizeRatio = Sprite.border.x / Sprite.rect.height;
|
|
||||||
float actualLeftCornerWidth = cornerLeftSizeRatio * rectTransform.rect.height;
|
|
||||||
float actualLeftUVWidth = (uv.w - uv.y) * (Sprite.border.x / Sprite.rect.width);
|
|
||||||
|
|
||||||
float cornerRightSizeRatio = Sprite.border.z / Sprite.rect.height;
|
|
||||||
float actualRightCornerWidth = cornerRightSizeRatio * rectTransform.rect.height;
|
|
||||||
float actualRightUVWidth = (uv.w - uv.y) * (Sprite.border.z / Sprite.rect.width);
|
|
||||||
|
|
||||||
float actualTotalCornerWidth = actualLeftCornerWidth + actualRightCornerWidth;
|
|
||||||
|
|
||||||
Vector2 corner1 = new Vector2(0f, 0f);
|
|
||||||
Vector2 corner2 = new Vector2(1f, 1f);
|
|
||||||
|
|
||||||
corner1.x -= rectTransform.pivot.x;
|
|
||||||
corner1.y -= rectTransform.pivot.y;
|
|
||||||
corner2.x -= rectTransform.pivot.x;
|
|
||||||
corner2.y -= rectTransform.pivot.y;
|
|
||||||
|
|
||||||
corner1.x *= actualWidth;
|
|
||||||
corner1.y *= rectTransform.rect.height;
|
|
||||||
corner2.x *= actualWidth;
|
|
||||||
corner2.y *= rectTransform.rect.height;
|
|
||||||
|
|
||||||
if (Sprite == null) {
|
if (Sprite == null) {
|
||||||
throw new UnityException("No sprite");
|
throw new UnityException("No sprite");
|
||||||
}
|
}
|
||||||
@@ -95,51 +85,87 @@ namespace Cryville.Common.Unity.UI {
|
|||||||
throw new UnityException("No sprite border");
|
throw new UnityException("No sprite border");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int axis = IsVertical ? 1 : 0;
|
||||||
|
|
||||||
|
float actualLength = axis == 0 ? rectTransform.rect.width : rectTransform.rect.height;
|
||||||
|
|
||||||
|
Vector4 uv = DataUtility.GetOuterUV(Sprite);
|
||||||
|
|
||||||
|
GetCornerLength(axis, 0, uv, out var actualStartCornerLength, out var actualStartUVWidth);
|
||||||
|
GetCornerLength(axis, 1, uv, out var actualEndCornerLength, out var actualEndUVLength);
|
||||||
|
|
||||||
|
float actualTotalCornerLength = actualStartCornerLength + actualEndCornerLength;
|
||||||
|
|
||||||
float w3, w4, w5, w6;
|
float w3, w4, w5, w6;
|
||||||
if (actualTotalCornerWidth > actualWidth) {
|
if (actualTotalCornerLength > actualLength) {
|
||||||
switch (Compact) {
|
switch (Compact) {
|
||||||
case CompactMode.SqueezeBoth:
|
case CompactMode.SqueezeBoth:
|
||||||
w3 = w4 = actualLeftCornerWidth / actualTotalCornerWidth * actualWidth;
|
w3 = w4 = actualStartCornerLength / actualTotalCornerLength * actualLength;
|
||||||
w5 = w6 = actualRightCornerWidth / actualTotalCornerWidth * actualWidth;
|
w5 = w6 = actualEndCornerLength / actualTotalCornerLength * actualLength;
|
||||||
break;
|
break;
|
||||||
case CompactMode.SqueezeLeft:
|
case CompactMode.SqueezeLeft:
|
||||||
w3 = w4 = actualWidth - actualRightCornerWidth;
|
w3 = w4 = actualLength - actualEndCornerLength;
|
||||||
w5 = w6 = actualRightCornerWidth;
|
w5 = w6 = actualEndCornerLength;
|
||||||
break;
|
break;
|
||||||
case CompactMode.SqueezeRight:
|
case CompactMode.SqueezeRight:
|
||||||
w3 = w4 = actualLeftCornerWidth;
|
w3 = w4 = actualStartCornerLength;
|
||||||
w5 = w6 = actualWidth - actualLeftCornerWidth;
|
w5 = w6 = actualLength - actualStartCornerLength;
|
||||||
break;
|
break;
|
||||||
case CompactMode.DiagonalLeft:
|
case CompactMode.DiagonalLeft:
|
||||||
w3 = actualLeftCornerWidth;
|
w3 = actualStartCornerLength;
|
||||||
w4 = actualWidth - actualRightCornerWidth;
|
w4 = actualLength - actualEndCornerLength;
|
||||||
w5 = actualWidth - actualLeftCornerWidth;
|
w5 = actualLength - actualStartCornerLength;
|
||||||
w6 = actualRightCornerWidth;
|
w6 = actualEndCornerLength;
|
||||||
break;
|
break;
|
||||||
case CompactMode.DiagonalRight:
|
case CompactMode.DiagonalRight:
|
||||||
w3 = actualWidth - actualRightCornerWidth;
|
w3 = actualLength - actualEndCornerLength;
|
||||||
w4 = actualLeftCornerWidth;
|
w4 = actualStartCornerLength;
|
||||||
w5 = actualRightCornerWidth;
|
w5 = actualEndCornerLength;
|
||||||
w6 = actualWidth - actualLeftCornerWidth;
|
w6 = actualLength - actualStartCornerLength;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new ArgumentOutOfRangeException("Compact");
|
throw new ArgumentOutOfRangeException("Compact");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
w3 = w4 = actualLeftCornerWidth;
|
w3 = w4 = actualStartCornerLength;
|
||||||
w5 = w6 = actualRightCornerWidth;
|
w5 = w6 = actualEndCornerLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Vector2 corner1 = Vector2.zero;
|
||||||
|
Vector2 corner2 = Vector2.one;
|
||||||
|
|
||||||
|
corner1.x -= rectTransform.pivot[axis];
|
||||||
|
corner1.y -= rectTransform.pivot[axis ^ 1];
|
||||||
|
corner2.x -= rectTransform.pivot[axis];
|
||||||
|
corner2.y -= rectTransform.pivot[axis ^ 1];
|
||||||
|
|
||||||
|
corner1.x *= actualLength;
|
||||||
|
corner1.y *= axis == 0 ? rectTransform.rect.height : rectTransform.rect.width;
|
||||||
|
corner2.x *= actualLength;
|
||||||
|
corner2.y *= axis == 0 ? rectTransform.rect.height : rectTransform.rect.width;
|
||||||
|
|
||||||
vh.Clear();
|
vh.Clear();
|
||||||
vh.AddVert(new Vector3(corner1.x, corner2.y), color, new Vector2(uv.x, uv.w));
|
if (axis == 0) {
|
||||||
vh.AddVert(new Vector3(corner1.x, corner1.y), color, new Vector2(uv.x, uv.y));
|
vh.AddVert(new Vector3(corner1.x, corner2.y), color, new Vector2(uv.x, uv.w));
|
||||||
vh.AddVert(new Vector3(corner1.x + w3, corner2.y), color, new Vector2(uv.x + actualLeftUVWidth, uv.w));
|
vh.AddVert(new Vector3(corner1.x, corner1.y), color, new Vector2(uv.x, uv.y));
|
||||||
vh.AddVert(new Vector3(corner1.x + w4, corner1.y), color, new Vector2(uv.x + actualLeftUVWidth, uv.y));
|
vh.AddVert(new Vector3(corner1.x + w3, corner2.y), color, new Vector2(uv.x + actualStartUVWidth, uv.w));
|
||||||
vh.AddVert(new Vector3(corner2.x - w5, corner2.y), color, new Vector2(uv.z - actualRightUVWidth, uv.w));
|
vh.AddVert(new Vector3(corner1.x + w4, corner1.y), color, new Vector2(uv.x + actualStartUVWidth, uv.y));
|
||||||
vh.AddVert(new Vector3(corner2.x - w6, corner1.y), color, new Vector2(uv.z - actualRightUVWidth, uv.y));
|
vh.AddVert(new Vector3(corner2.x - w5, corner2.y), color, new Vector2(uv.z - actualEndUVLength, uv.w));
|
||||||
vh.AddVert(new Vector3(corner2.x, corner2.y), color, new Vector2(uv.z, uv.w));
|
vh.AddVert(new Vector3(corner2.x - w6, corner1.y), color, new Vector2(uv.z - actualEndUVLength, uv.y));
|
||||||
vh.AddVert(new Vector3(corner2.x, corner1.y), color, new Vector2(uv.z, uv.y));
|
vh.AddVert(new Vector3(corner2.x, corner2.y), color, new Vector2(uv.z, uv.w));
|
||||||
|
vh.AddVert(new Vector3(corner2.x, corner1.y), color, new Vector2(uv.z, uv.y));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
vh.AddVert(new Vector3(corner1.y, corner1.x), color, new Vector2(uv.x, uv.w));
|
||||||
|
vh.AddVert(new Vector3(corner2.y, corner1.x), color, new Vector2(uv.z, uv.w));
|
||||||
|
vh.AddVert(new Vector3(corner1.y, corner1.x + w4), color, new Vector2(uv.x, uv.w - actualStartUVWidth));
|
||||||
|
vh.AddVert(new Vector3(corner2.y, corner1.x + w3), color, new Vector2(uv.z, uv.w - actualStartUVWidth));
|
||||||
|
vh.AddVert(new Vector3(corner1.y, corner2.x - w6), color, new Vector2(uv.x, uv.y + actualEndUVLength));
|
||||||
|
vh.AddVert(new Vector3(corner2.y, corner2.x - w5), color, new Vector2(uv.z, uv.y + actualEndUVLength));
|
||||||
|
vh.AddVert(new Vector3(corner1.y, corner2.x), color, new Vector2(uv.x, uv.y));
|
||||||
|
vh.AddVert(new Vector3(corner2.y, corner2.x), color, new Vector2(uv.z, uv.y));
|
||||||
|
}
|
||||||
|
|
||||||
if (((int)Compact & 0x1) == 0) {
|
if (((int)Compact & 0x1) == 0) {
|
||||||
vh.AddTriangle(2, 1, 0);
|
vh.AddTriangle(2, 1, 0);
|
||||||
|
40
Assets/Cryville/Common/Unity/UI/SafeArea.cs
Normal file
40
Assets/Cryville/Common/Unity/UI/SafeArea.cs
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.EventSystems;
|
||||||
|
|
||||||
|
namespace Cryville.Common.Unity.UI {
|
||||||
|
[ExecuteAlways]
|
||||||
|
[RequireComponent(typeof(RectTransform))]
|
||||||
|
public class SafeArea : UIBehaviour {
|
||||||
|
bool _delayedUpdate;
|
||||||
|
#if UNITY_EDITOR
|
||||||
|
protected override void OnValidate() {
|
||||||
|
_delayedUpdate = true;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
void Update() {
|
||||||
|
if (_delayedUpdate) {
|
||||||
|
_delayedUpdate = false;
|
||||||
|
UpdateRect();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected override void OnRectTransformDimensionsChange() {
|
||||||
|
base.OnRectTransformDimensionsChange();
|
||||||
|
UpdateRect();
|
||||||
|
}
|
||||||
|
protected override void OnTransformParentChanged() {
|
||||||
|
base.OnTransformParentChanged();
|
||||||
|
UpdateRect();
|
||||||
|
}
|
||||||
|
void UpdateRect() {
|
||||||
|
var safeArea = Screen.safeArea;
|
||||||
|
var rectTransform = transform as RectTransform;
|
||||||
|
var canvas = GetComponentInParent<Canvas>(true).transform as RectTransform;
|
||||||
|
RectTransformUtility.ScreenPointToLocalPointInRectangle(canvas, new Vector2(safeArea.xMin, safeArea.yMin), Camera.main, out var pt1);
|
||||||
|
RectTransformUtility.ScreenPointToLocalPointInRectangle(canvas, new Vector2(safeArea.xMax, safeArea.yMax), Camera.main, out var pt2);
|
||||||
|
var result = Rect.MinMaxRect(pt1.x, pt1.y, pt2.x, pt2.y);
|
||||||
|
rectTransform.anchoredPosition = result.center;
|
||||||
|
rectTransform.sizeDelta = result.size;
|
||||||
|
rectTransform.anchorMin = rectTransform.anchorMax = rectTransform.pivot = new Vector2(0.5f, 0.5f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Cryville/Common/Unity/UI/SafeArea.cs.meta
Normal file
11
Assets/Cryville/Common/Unity/UI/SafeArea.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 112824c0b55202c4f9c779de7574b5fd
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -113,7 +113,7 @@ namespace Cryville.Common.Unity.UI {
|
|||||||
private bool initialized;
|
private bool initialized;
|
||||||
private GameObject[][] lines;
|
private GameObject[][] lines;
|
||||||
private int[] refl;
|
private int[] refl;
|
||||||
Vector2 cpos = new Vector2(0, 1);
|
Vector2 cpos = new(0, 1);
|
||||||
Vector2 pprectsize;
|
Vector2 pprectsize;
|
||||||
|
|
||||||
#pragma warning disable IDE0051
|
#pragma warning disable IDE0051
|
||||||
@@ -134,9 +134,13 @@ namespace Cryville.Common.Unity.UI {
|
|||||||
|
|
||||||
private void OnFrameUpdate() {
|
private void OnFrameUpdate() {
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
if (lines != null) for (int i = 0; i < lines.Length; i++)
|
if (lines != null) {
|
||||||
if (lines[i] != null) foreach (GameObject c in lines[i])
|
for (int i = 0; i < lines.Length; i++) {
|
||||||
GameObject.Destroy(c);
|
if (lines[i] != null) {
|
||||||
|
foreach (GameObject c in lines[i]) Destroy(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
lines = new GameObject[VisibleLines][];
|
lines = new GameObject[VisibleLines][];
|
||||||
refl = new int[VisibleLines];
|
refl = new int[VisibleLines];
|
||||||
for (int i = 0; i < refl.Length; i++) refl[i] = i;
|
for (int i = 0; i < refl.Length; i++) refl[i] = i;
|
||||||
@@ -153,8 +157,9 @@ namespace Cryville.Common.Unity.UI {
|
|||||||
|
|
||||||
private void ResetLines() {
|
private void ResetLines() {
|
||||||
for (int i = 0; i < lines.Length; i++) {
|
for (int i = 0; i < lines.Length; i++) {
|
||||||
if (lines[i] != null) foreach (GameObject c in lines[i])
|
if (lines[i] != null) {
|
||||||
GameObject.Destroy(c);
|
foreach (GameObject c in lines[i]) Destroy(c);
|
||||||
|
}
|
||||||
lines[i] = new GameObject[LineItemCount];
|
lines[i] = new GameObject[LineItemCount];
|
||||||
GenerateLine(i, refl[i]);
|
GenerateLine(i, refl[i]);
|
||||||
}
|
}
|
||||||
@@ -200,7 +205,7 @@ namespace Cryville.Common.Unity.UI {
|
|||||||
|
|
||||||
void GenerateLine(int index, int line) {
|
void GenerateLine(int index, int line) {
|
||||||
for (int j = 0; j < LineItemCount; j++) {
|
for (int j = 0; j < LineItemCount; j++) {
|
||||||
var child = GameObject.Instantiate(m_itemTemplate, transform, false);
|
var child = Instantiate(m_itemTemplate, transform, false);
|
||||||
lines[index][j] = child;
|
lines[index][j] = child;
|
||||||
}
|
}
|
||||||
LoadLine(index, line);
|
LoadLine(index, line);
|
||||||
|
94
Assets/Cryville/Common/Unity/UI/SingleLayoutGroup.cs
Normal file
94
Assets/Cryville/Common/Unity/UI/SingleLayoutGroup.cs
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
namespace Cryville.Common.Unity.UI {
|
||||||
|
[AddComponentMenu("Layout/Single Layout Group")]
|
||||||
|
[ExecuteAlways]
|
||||||
|
public class SingleLayoutGroup : LayoutGroup {
|
||||||
|
[SerializeField]
|
||||||
|
protected bool m_ChildForceExpandWidth = true;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
protected bool m_ChildForceExpandHeight = true;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
protected bool m_ChildControlWidth = true;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
protected bool m_ChildControlHeight = true;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
protected bool m_ChildScaleWidth;
|
||||||
|
|
||||||
|
[SerializeField]
|
||||||
|
protected bool m_ChildScaleHeight;
|
||||||
|
|
||||||
|
public override void CalculateLayoutInputHorizontal() {
|
||||||
|
base.CalculateLayoutInputHorizontal();
|
||||||
|
CalcAlongAxis(0);
|
||||||
|
}
|
||||||
|
public override void CalculateLayoutInputVertical() { CalcAlongAxis(1); }
|
||||||
|
public override void SetLayoutHorizontal() { SetChildrenAlongAxis(0); }
|
||||||
|
public override void SetLayoutVertical() { SetChildrenAlongAxis(1); }
|
||||||
|
|
||||||
|
protected void CalcAlongAxis(int axis) {
|
||||||
|
float combinedPadding = (axis == 0) ? padding.horizontal : padding.vertical;
|
||||||
|
bool controlSize = (axis == 0) ? m_ChildControlWidth : m_ChildControlHeight;
|
||||||
|
bool useScale = (axis == 0) ? m_ChildScaleWidth : m_ChildScaleHeight;
|
||||||
|
bool childForceExpandSize = (axis == 0) ? m_ChildForceExpandWidth : m_ChildForceExpandHeight;
|
||||||
|
float totalMin = combinedPadding;
|
||||||
|
float totalPreferred = combinedPadding;
|
||||||
|
float totalFlexible = 0f;
|
||||||
|
RectTransform child = rectChildren[0];
|
||||||
|
GetChildSizes(child, axis, controlSize, childForceExpandSize, out var min, out var preferred, out var flexible);
|
||||||
|
if (useScale) {
|
||||||
|
float scaleFactor = child.localScale[axis];
|
||||||
|
min *= scaleFactor;
|
||||||
|
preferred *= scaleFactor;
|
||||||
|
flexible *= scaleFactor;
|
||||||
|
}
|
||||||
|
totalMin = Mathf.Max(min + combinedPadding, totalMin);
|
||||||
|
totalPreferred = Mathf.Max(preferred + combinedPadding, totalPreferred);
|
||||||
|
totalFlexible = Mathf.Max(flexible, totalFlexible);
|
||||||
|
totalPreferred = Mathf.Max(totalMin, totalPreferred);
|
||||||
|
SetLayoutInputForAxis(totalMin, totalPreferred, totalFlexible, axis);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void SetChildrenAlongAxis(int axis) {
|
||||||
|
float size = rectTransform.rect.size[axis];
|
||||||
|
bool controlSize = (axis == 0) ? m_ChildControlWidth : m_ChildControlHeight;
|
||||||
|
bool useScale = (axis == 0) ? m_ChildScaleWidth : m_ChildScaleHeight;
|
||||||
|
bool childForceExpandSize = (axis == 0) ? m_ChildForceExpandWidth : m_ChildForceExpandHeight;
|
||||||
|
float alignmentOnAxis = GetAlignmentOnAxis(axis);
|
||||||
|
float innerSize = size - ((axis == 0) ? padding.horizontal : padding.vertical);
|
||||||
|
RectTransform child = rectChildren[0];
|
||||||
|
GetChildSizes(child, axis, controlSize, childForceExpandSize, out var min2, out var preferred2, out var flexible2);
|
||||||
|
float scaleFactor2 = useScale ? child.localScale[axis] : 1f;
|
||||||
|
float requiredSpace = Mathf.Clamp(innerSize, min2, (flexible2 > 0f) ? size : preferred2);
|
||||||
|
float startOffset = GetStartOffset(axis, requiredSpace * scaleFactor2);
|
||||||
|
if (controlSize) {
|
||||||
|
SetChildAlongAxisWithScale(child, axis, startOffset, requiredSpace, scaleFactor2);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
float offsetInCell2 = (requiredSpace - child.sizeDelta[axis]) * alignmentOnAxis;
|
||||||
|
SetChildAlongAxisWithScale(child, axis, startOffset + offsetInCell2, scaleFactor2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetChildSizes(RectTransform child, int axis, bool controlSize, bool childForceExpand, out float min, out float preferred, out float flexible) {
|
||||||
|
if (!controlSize) {
|
||||||
|
min = child.sizeDelta[axis];
|
||||||
|
preferred = min;
|
||||||
|
flexible = 0f;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
min = LayoutUtility.GetMinSize(child, axis);
|
||||||
|
preferred = LayoutUtility.GetPreferredSize(child, axis);
|
||||||
|
flexible = LayoutUtility.GetFlexibleSize(child, axis);
|
||||||
|
}
|
||||||
|
if (childForceExpand) {
|
||||||
|
flexible = Mathf.Max(flexible, 1f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Cryville/Common/Unity/UI/SingleLayoutGroup.cs.meta
Normal file
11
Assets/Cryville/Common/Unity/UI/SingleLayoutGroup.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5d03df0bb58478e42935bbdf633a4aa4
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -1,6 +1,8 @@
|
|||||||
using Cryville.Common.Font;
|
using Cryville.Common.Font;
|
||||||
|
using Cryville.Culture;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
@@ -22,19 +24,20 @@ namespace Cryville.Common.Unity.UI {
|
|||||||
if (FontMatcher == null) return;
|
if (FontMatcher == null) return;
|
||||||
_text = GetComponent<TextMeshProUGUI>();
|
_text = GetComponent<TextMeshProUGUI>();
|
||||||
if (_font == null) {
|
if (_font == null) {
|
||||||
foreach (var typeface in FontMatcher.MatchScript(null, true)) {
|
foreach (var typeface in FontMatcher.MatchLanguage(new LanguageId(CultureInfo.CurrentCulture.Name), true)) {
|
||||||
try {
|
try {
|
||||||
var ifont = CreateFontAsset(typeface.File.FullName, typeface.IndexInFile);
|
var ifont = CreateFontAsset(typeface.File.FullName, typeface.IndexInFile);
|
||||||
if (m_shader) ifont.material.shader = m_shader;
|
if (m_shader) ifont.material.shader = m_shader;
|
||||||
else if (DefaultShader) ifont.material.shader = DefaultShader;
|
else if (DefaultShader) ifont.material.shader = DefaultShader;
|
||||||
if (_font == null) {
|
if (_font == null) {
|
||||||
_font = ifont;
|
_font = ifont;
|
||||||
|
Shared.Logger.Log(1, "UI", "Using main font: {0}", typeface.FullName);
|
||||||
if (MaxFallbackCount <= 0) break;
|
if (MaxFallbackCount <= 0) break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (_font.fallbackFontAssetTable == null)
|
_font.fallbackFontAssetTable ??= new List<FontAsset>();
|
||||||
_font.fallbackFontAssetTable = new List<FontAsset>();
|
|
||||||
_font.fallbackFontAssetTable.Add(ifont);
|
_font.fallbackFontAssetTable.Add(ifont);
|
||||||
|
Shared.Logger.Log(1, "UI", "Using fallback font #{0}: {1}", _font.fallbackFontAssetTable.Count, typeface.FullName);
|
||||||
if (_font.fallbackFontAssetTable.Count >= MaxFallbackCount) break;
|
if (_font.fallbackFontAssetTable.Count >= MaxFallbackCount) break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,8 +1,22 @@
|
|||||||
|
using System;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Cryville.Common.Unity {
|
namespace Cryville.Common.Unity {
|
||||||
public static class UrlOpener {
|
public static class UrlOpener {
|
||||||
public static void Open(string url) {
|
public static void Open(string url) {
|
||||||
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
||||||
System.Diagnostics.Process.Start(url);
|
url += "\0";
|
||||||
|
unsafe {
|
||||||
|
fixed (char* lpFile = url) {
|
||||||
|
var info = new SHELLEXECUTEINFOW {
|
||||||
|
cbSize = (uint)sizeof(SHELLEXECUTEINFOW),
|
||||||
|
fMask = 0x0540,
|
||||||
|
lpFile = lpFile,
|
||||||
|
nShow = 1,
|
||||||
|
};
|
||||||
|
ShellExecuteExW(ref info);
|
||||||
|
}
|
||||||
|
}
|
||||||
#elif UNITY_ANDROID
|
#elif UNITY_ANDROID
|
||||||
using (var clazz = new UnityEngine.AndroidJavaClass("world.cryville.common.unity.UrlOpener")) {
|
using (var clazz = new UnityEngine.AndroidJavaClass("world.cryville.common.unity.UrlOpener")) {
|
||||||
clazz.CallStatic("open", url);
|
clazz.CallStatic("open", url);
|
||||||
@@ -22,5 +36,27 @@ namespace Cryville.Common.Unity {
|
|||||||
#error Unknown platform.
|
#error Unknown platform.
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
||||||
|
[DllImport("shell32.dll")]
|
||||||
|
static extern void ShellExecuteExW(ref SHELLEXECUTEINFOW pExecInfo);
|
||||||
|
unsafe struct SHELLEXECUTEINFOW {
|
||||||
|
public uint cbSize;
|
||||||
|
public uint fMask;
|
||||||
|
public IntPtr hwnd;
|
||||||
|
public char* lpVerb;
|
||||||
|
public char* lpFile;
|
||||||
|
public char* lpParameters;
|
||||||
|
public char* lpDirectory;
|
||||||
|
public int nShow;
|
||||||
|
public IntPtr hInstApp;
|
||||||
|
public IntPtr lpIDList;
|
||||||
|
public IntPtr lpClass;
|
||||||
|
public IntPtr hkeyClass;
|
||||||
|
public uint dwHotKey;
|
||||||
|
public IntPtr hIconMonitor;
|
||||||
|
public IntPtr hProcess;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
using Cryville.Common.Collections.Specialized;
|
using Cryville.Common.Collections.Specialized;
|
||||||
|
using Cryville.Crtr.Skin;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Cryville.Crtr {
|
namespace Cryville.Crtr {
|
||||||
|
@@ -25,7 +25,7 @@ namespace Cryville.Crtr {
|
|||||||
public int d;
|
public int d;
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public double Decimal { get { return b + (double)n / d; } }
|
public readonly double Decimal { get { return b + (double)n / d; } }
|
||||||
|
|
||||||
public int CompareTo(BeatTime other) {
|
public int CompareTo(BeatTime other) {
|
||||||
var c = b.CompareTo(other.b);
|
var c = b.CompareTo(other.b);
|
||||||
@@ -34,15 +34,15 @@ namespace Cryville.Crtr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override bool Equals(object obj) {
|
public override bool Equals(object obj) {
|
||||||
if (!(obj is BeatTime)) return false;
|
if (obj is not BeatTime other) return false;
|
||||||
return Equals((BeatTime)obj);
|
return Equals(other);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Equals(BeatTime other) {
|
public bool Equals(BeatTime other) {
|
||||||
return b.Equals(other.b) && ((double)n / d).Equals((double)other.n / other.d);
|
return b.Equals(other.b) && ((double)n / d).Equals((double)other.n / other.d);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override int GetHashCode() {
|
public override readonly int GetHashCode() {
|
||||||
return Decimal.GetHashCode();
|
return Decimal.GetHashCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: b35ffffce02252548a66e18cf98050e2
|
guid: 8da681baa9e0364429f4ff80b3cdcf79
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
67
Assets/Cryville/Crtr/Browsing/Actions/ActionManager.cs
Normal file
67
Assets/Cryville/Crtr/Browsing/Actions/ActionManager.cs
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace Cryville.Crtr.Browsing.Actions {
|
||||||
|
public class ActionManager {
|
||||||
|
readonly Dictionary<Type, List<IResourceAction>> _actions = new();
|
||||||
|
readonly Dictionary<IResourceAction, int> _refCounts = new();
|
||||||
|
|
||||||
|
public event Action Changed;
|
||||||
|
|
||||||
|
class ActionPriorityComparer : IComparer<IResourceAction> {
|
||||||
|
public static readonly ActionPriorityComparer Instance = new();
|
||||||
|
public int Compare(IResourceAction x, IResourceAction y) {
|
||||||
|
return x.Priority.CompareTo(y.Priority);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Register(Type type, IResourceAction action) {
|
||||||
|
if (!_actions.TryGetValue(type, out List<IResourceAction> actions)) {
|
||||||
|
_actions.Add(type, actions = new List<IResourceAction>());
|
||||||
|
}
|
||||||
|
int index = actions.BinarySearch(action, ActionPriorityComparer.Instance);
|
||||||
|
if (index < 0) index = ~index;
|
||||||
|
actions.Insert(index, action);
|
||||||
|
if (_refCounts.ContainsKey(action)) _refCounts[action]++;
|
||||||
|
else _refCounts[action] = 1;
|
||||||
|
Changed?.Invoke();
|
||||||
|
}
|
||||||
|
public void Register(IResourceAction action) {
|
||||||
|
Register(typeof(object), action);
|
||||||
|
}
|
||||||
|
public void Register<T>(IResourceAction<T> action) where T : IResourceMeta {
|
||||||
|
Register(typeof(T), action);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Unregister(Type type, IResourceAction action) {
|
||||||
|
if (!_actions.TryGetValue(type, out List<IResourceAction> actions)) return;
|
||||||
|
if (--_refCounts[action] > 0) return;
|
||||||
|
actions.Remove(action);
|
||||||
|
Changed?.Invoke();
|
||||||
|
}
|
||||||
|
public void Unregister(IResourceAction action) {
|
||||||
|
Unregister(typeof(object), action);
|
||||||
|
}
|
||||||
|
public void Unregister<T>(IResourceAction<T> action) where T : IResourceMeta {
|
||||||
|
Unregister(typeof(T), action);
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerable<IResourceAction> GetActions(Uri uri, IResourceMeta res) {
|
||||||
|
return GetActions(uri, res, res.GetType());
|
||||||
|
}
|
||||||
|
IEnumerable<IResourceAction> GetActions(Uri uri, IResourceMeta res, Type type) {
|
||||||
|
if (type == null) return Enumerable.Empty<IResourceAction>();
|
||||||
|
IEnumerable<IResourceAction> result;
|
||||||
|
if (_actions.TryGetValue(type, out List<IResourceAction> actions))
|
||||||
|
result = actions.Where(i => i.CanInvoke(uri, res));
|
||||||
|
else
|
||||||
|
result = Enumerable.Empty<IResourceAction>();
|
||||||
|
if (type != typeof(object))
|
||||||
|
result = result
|
||||||
|
.Concat(GetActions(uri, res, type.BaseType))
|
||||||
|
.Concat(type.GetInterfaces().SelectMany(i => GetActions(uri, res, i)));
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Cryville/Crtr/Browsing/Actions/ActionManager.cs.meta
Normal file
11
Assets/Cryville/Crtr/Browsing/Actions/ActionManager.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 47b543be94fb27542a312561b5cf2b71
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
15
Assets/Cryville/Crtr/Browsing/Actions/IResourceAction.cs
Normal file
15
Assets/Cryville/Crtr/Browsing/Actions/IResourceAction.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Cryville.Crtr.Browsing.Actions {
|
||||||
|
public interface IResourceAction {
|
||||||
|
string Name { get; }
|
||||||
|
int Priority { get; }
|
||||||
|
|
||||||
|
bool CanInvoke(Uri uri, IResourceMeta resource);
|
||||||
|
void Invoke(Uri uri, IResourceMeta resource);
|
||||||
|
}
|
||||||
|
public interface IResourceAction<T> : IResourceAction where T : IResourceMeta {
|
||||||
|
bool CanInvoke(Uri uri, T resource);
|
||||||
|
void Invoke(Uri uri, T resource);
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 06644fed46df1e3479274e77d7050770
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -0,0 +1,24 @@
|
|||||||
|
using Cryville.Crtr.UI;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Cryville.Crtr.Browsing.Actions {
|
||||||
|
internal class ImportResourceAction : IResourceAction {
|
||||||
|
readonly IResourceDestination _destination;
|
||||||
|
public ImportResourceAction(IResourceDestination destination) {
|
||||||
|
_destination = destination;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Name { get { return "Import"; } }
|
||||||
|
public int Priority { get { return 0; } }
|
||||||
|
|
||||||
|
public bool CanInvoke(Uri uri, IResourceMeta resource) {
|
||||||
|
return _destination.CanImport(uri);
|
||||||
|
}
|
||||||
|
public void Invoke(Uri uri, IResourceMeta resource) {
|
||||||
|
if (_destination.ImportFrom(uri))
|
||||||
|
Popup.Create("Import succeeded");
|
||||||
|
else
|
||||||
|
Popup.Create("Import failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 051f1b92e4abcdc48a3de86ddf3838ea
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
43
Assets/Cryville/Crtr/Browsing/Actions/OpenConfigAction.cs
Normal file
43
Assets/Cryville/Crtr/Browsing/Actions/OpenConfigAction.cs
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
using Cryville.Crtr.Browsing.UI;
|
||||||
|
using Cryville.Crtr.Config;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Object = UnityEngine.Object;
|
||||||
|
|
||||||
|
namespace Cryville.Crtr.Browsing.Actions {
|
||||||
|
internal class OpenConfigAction : ResourceAction<IChartDetail> {
|
||||||
|
public override string Name { get { return "Config"; } }
|
||||||
|
|
||||||
|
public override int Priority { get { return -50; } }
|
||||||
|
|
||||||
|
static readonly Dictionary<string, int> _rulesetTabs = new();
|
||||||
|
|
||||||
|
public override bool CanInvoke(Uri uri, IChartDetail resource) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
public override void Invoke(Uri uri, IChartDetail resource) {
|
||||||
|
Invoke(resource.RulesetId);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool HasTab(string ruleset) {
|
||||||
|
var master = ResourceBrowserMaster.Instance;
|
||||||
|
if (master == null) return false;
|
||||||
|
return _rulesetTabs.TryGetValue(ruleset, out int tabId) && master.HasTab(tabId);
|
||||||
|
}
|
||||||
|
public static void Invoke(string ruleset, Action<RulesetConfig> overrides = null) {
|
||||||
|
var master = ResourceBrowserMaster.Instance;
|
||||||
|
if (_rulesetTabs.TryGetValue(ruleset, out int tabId) && master.TryOpenTab(tabId))
|
||||||
|
return;
|
||||||
|
var browser = Object.Instantiate(master.m_configBrowserPrefab).GetComponent<RulesetConfigBrowser>();
|
||||||
|
try {
|
||||||
|
browser.Load(ruleset, overrides);
|
||||||
|
}
|
||||||
|
catch (Exception) {
|
||||||
|
Object.Destroy(browser.gameObject);
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
_rulesetTabs[ruleset] = master.AddAndOpenTab(string.Format("{0} (Config)", ruleset), browser);
|
||||||
|
browser.InitAction();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7cf0a29d123b05b4eb8dcc415c235a10
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
29
Assets/Cryville/Crtr/Browsing/Actions/PlayChartAction.cs
Normal file
29
Assets/Cryville/Crtr/Browsing/Actions/PlayChartAction.cs
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
using Cryville.Crtr.UI;
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
|
namespace Cryville.Crtr.Browsing.Actions {
|
||||||
|
internal class PlayChartAction : ResourceAction<IChartDetail> {
|
||||||
|
public override string Name { get { return "Play"; } }
|
||||||
|
public override int Priority { get { return -100; } }
|
||||||
|
|
||||||
|
public override bool CanInvoke(Uri uri, IChartDetail resource) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
public override void Invoke(Uri uri, IChartDetail resource) {
|
||||||
|
Settings.Default.LoadRuleset = Path.Combine(resource.RulesetId, ".umgr");
|
||||||
|
Settings.Default.LoadRulesetConfig = resource.RulesetId + ".json";
|
||||||
|
Settings.Default.LoadChart = uri.LocalPath;
|
||||||
|
#if UNITY_5_3_OR_NEWER
|
||||||
|
SceneManager.LoadScene("Play", LoadSceneMode.Additive);
|
||||||
|
#else
|
||||||
|
Application.LoadLevelAdditive("Play");
|
||||||
|
#endif
|
||||||
|
Master.Instance.HideMenu();
|
||||||
|
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
||||||
|
DiscordController.Instance.SetPlaying(string.Format("{0} - {1}", resource.SongName, resource.Name), resource.Length.TotalSeconds);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 62f16d8524484ef4f8b2dda039b3f54e
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
22
Assets/Cryville/Crtr/Browsing/Actions/ResourceAction.cs
Normal file
22
Assets/Cryville/Crtr/Browsing/Actions/ResourceAction.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Cryville.Crtr.Browsing.Actions {
|
||||||
|
public abstract class ResourceAction<T> : IResourceAction<T> where T : IResourceMeta {
|
||||||
|
public abstract string Name { get; }
|
||||||
|
public abstract int Priority { get; }
|
||||||
|
|
||||||
|
public abstract bool CanInvoke(Uri uri, T resource);
|
||||||
|
public bool CanInvoke(Uri uri, IResourceMeta resource) {
|
||||||
|
if (resource == null) throw new ArgumentNullException("resource");
|
||||||
|
if (resource is not T res) throw new ArgumentException("Mismatched resource type.");
|
||||||
|
return CanInvoke(uri, res);
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract void Invoke(Uri uri, T resource);
|
||||||
|
public void Invoke(Uri uri, IResourceMeta resource) {
|
||||||
|
if (resource == null) throw new ArgumentNullException("resource");
|
||||||
|
if (resource is not T res) throw new ArgumentException("Mismatched resource type.");
|
||||||
|
Invoke(uri, res);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Cryville/Crtr/Browsing/Actions/ResourceAction.cs.meta
Normal file
11
Assets/Cryville/Crtr/Browsing/Actions/ResourceAction.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 97f5674394761704bae04fe222afd086
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
33
Assets/Cryville/Crtr/Browsing/Actions/UseSkinAction.cs
Normal file
33
Assets/Cryville/Crtr/Browsing/Actions/UseSkinAction.cs
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
using Cryville.Crtr.Browsing.UI;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
namespace Cryville.Crtr.Browsing.Actions {
|
||||||
|
internal class UseSkinAction : ResourceAction<ISkinDetail> {
|
||||||
|
readonly RulesetConfigBrowser _destination;
|
||||||
|
public UseSkinAction() : this(null) { }
|
||||||
|
public UseSkinAction(RulesetConfigBrowser destination) {
|
||||||
|
_destination = destination;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override string Name { get { return "Use"; } }
|
||||||
|
|
||||||
|
public override int Priority { get { return -100; } }
|
||||||
|
|
||||||
|
public override bool CanInvoke(Uri uri, ISkinDetail resource) {
|
||||||
|
if (_destination == null) {
|
||||||
|
return !OpenConfigAction.HasTab(resource.RulesetId);
|
||||||
|
}
|
||||||
|
return _destination.RulesetName == resource.RulesetId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Invoke(Uri uri, ISkinDetail resource) {
|
||||||
|
if (_destination == null) {
|
||||||
|
OpenConfigAction.Invoke(resource.RulesetId, config => config.generic.Skin = resource.Name);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
_destination.SetSkin(resource.Name);
|
||||||
|
OpenConfigAction.Invoke(resource.RulesetId, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
Assets/Cryville/Crtr/Browsing/Actions/UseSkinAction.cs.meta
Normal file
11
Assets/Cryville/Crtr/Browsing/Actions/UseSkinAction.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ac898133ecfdb3f42bdade958381cd1a
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user