l3la3a

project

Showing 1000 changed files with 3169 additions and 0 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

No preview for this file type
1 +{
2 + "version": "1.0",
3 + "components": [
4 + "Microsoft.VisualStudio.Workload.ManagedGame"
5 + ]
6 +}
This diff is collapsed. Click to expand it.
1 +fileFormatVersion: 2
2 +guid: afecfa20c6f5dc740bb32592748a97af
3 +folderAsset: yes
4 +DefaultImporter:
5 + externalObjects: {}
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!1101 &-4969144845830737913
4 +AnimatorStateTransition:
5 + m_ObjectHideFlags: 1
6 + m_CorrespondingSourceObject: {fileID: 0}
7 + m_PrefabInstance: {fileID: 0}
8 + m_PrefabAsset: {fileID: 0}
9 + m_Name:
10 + m_Conditions:
11 + - m_ConditionMode: 1
12 + m_ConditionEvent: capture
13 + m_EventTreshold: 0
14 + m_DstStateMachine: {fileID: 0}
15 + m_DstState: {fileID: 816925302105252328}
16 + m_Solo: 0
17 + m_Mute: 0
18 + m_IsExit: 0
19 + serializedVersion: 3
20 + m_TransitionDuration: 0
21 + m_TransitionOffset: 0
22 + m_ExitTime: 1
23 + m_HasExitTime: 1
24 + m_HasFixedDuration: 0
25 + m_InterruptionSource: 0
26 + m_OrderedInterruption: 1
27 + m_CanTransitionToSelf: 1
28 +--- !u!91 &9100000
29 +AnimatorController:
30 + m_ObjectHideFlags: 0
31 + m_CorrespondingSourceObject: {fileID: 0}
32 + m_PrefabInstance: {fileID: 0}
33 + m_PrefabAsset: {fileID: 0}
34 + m_Name: Image
35 + serializedVersion: 5
36 + m_AnimatorParameters:
37 + - m_Name: capture
38 + m_Type: 9
39 + m_DefaultFloat: 0
40 + m_DefaultInt: 0
41 + m_DefaultBool: 0
42 + m_Controller: {fileID: 0}
43 + m_AnimatorLayers:
44 + - serializedVersion: 5
45 + m_Name: Base Layer
46 + m_StateMachine: {fileID: 1278917342845633924}
47 + m_Mask: {fileID: 0}
48 + m_Motions: []
49 + m_Behaviours: []
50 + m_BlendingMode: 0
51 + m_SyncedLayerIndex: -1
52 + m_DefaultWeight: 0
53 + m_IKPass: 0
54 + m_SyncedLayerAffectsTiming: 0
55 + m_Controller: {fileID: 9100000}
56 + - serializedVersion: 5
57 + m_Name: screenshot
58 + m_StateMachine: {fileID: 7614160792459320111}
59 + m_Mask: {fileID: 0}
60 + m_Motions: []
61 + m_Behaviours: []
62 + m_BlendingMode: 0
63 + m_SyncedLayerIndex: -1
64 + m_DefaultWeight: 0
65 + m_IKPass: 0
66 + m_SyncedLayerAffectsTiming: 0
67 + m_Controller: {fileID: 9100000}
68 +--- !u!1102 &579388180157347277
69 +AnimatorState:
70 + serializedVersion: 6
71 + m_ObjectHideFlags: 1
72 + m_CorrespondingSourceObject: {fileID: 0}
73 + m_PrefabInstance: {fileID: 0}
74 + m_PrefabAsset: {fileID: 0}
75 + m_Name: screenshot_default
76 + m_Speed: 1
77 + m_CycleOffset: 0
78 + m_Transitions: []
79 + m_StateMachineBehaviours: []
80 + m_Position: {x: 50, y: 50, z: 0}
81 + m_IKOnFeet: 0
82 + m_WriteDefaultValues: 1
83 + m_Mirror: 0
84 + m_SpeedParameterActive: 0
85 + m_MirrorParameterActive: 0
86 + m_CycleOffsetParameterActive: 0
87 + m_TimeParameterActive: 0
88 + m_Motion: {fileID: 7400000, guid: ae2ebb78fbacd934e981667f23ace19d, type: 2}
89 + m_Tag:
90 + m_SpeedParameter:
91 + m_MirrorParameter:
92 + m_CycleOffsetParameter:
93 + m_TimeParameter:
94 +--- !u!1102 &816925302105252328
95 +AnimatorState:
96 + serializedVersion: 6
97 + m_ObjectHideFlags: 1
98 + m_CorrespondingSourceObject: {fileID: 0}
99 + m_PrefabInstance: {fileID: 0}
100 + m_PrefabAsset: {fileID: 0}
101 + m_Name: screenshot_flash
102 + m_Speed: 1
103 + m_CycleOffset: 0
104 + m_Transitions:
105 + - {fileID: 3261797949240638920}
106 + m_StateMachineBehaviours: []
107 + m_Position: {x: 50, y: 50, z: 0}
108 + m_IKOnFeet: 0
109 + m_WriteDefaultValues: 1
110 + m_Mirror: 0
111 + m_SpeedParameterActive: 0
112 + m_MirrorParameterActive: 0
113 + m_CycleOffsetParameterActive: 0
114 + m_TimeParameterActive: 0
115 + m_Motion: {fileID: 7400000, guid: 966ff636b63ce134399f863d984ec015, type: 2}
116 + m_Tag:
117 + m_SpeedParameter:
118 + m_MirrorParameter:
119 + m_CycleOffsetParameter:
120 + m_TimeParameter:
121 +--- !u!1107 &1278917342845633924
122 +AnimatorStateMachine:
123 + serializedVersion: 6
124 + m_ObjectHideFlags: 1
125 + m_CorrespondingSourceObject: {fileID: 0}
126 + m_PrefabInstance: {fileID: 0}
127 + m_PrefabAsset: {fileID: 0}
128 + m_Name: Base Layer
129 + m_ChildStates:
130 + - serializedVersion: 1
131 + m_State: {fileID: 816925302105252328}
132 + m_Position: {x: 240, y: -70, z: 0}
133 + - serializedVersion: 1
134 + m_State: {fileID: 579388180157347277}
135 + m_Position: {x: 240, y: 70, z: 0}
136 + m_ChildStateMachines: []
137 + m_AnyStateTransitions:
138 + - {fileID: -4969144845830737913}
139 + m_EntryTransitions: []
140 + m_StateMachineTransitions: {}
141 + m_StateMachineBehaviours: []
142 + m_AnyStatePosition: {x: 70, y: -150, z: 0}
143 + m_EntryPosition: {x: 50, y: 120, z: 0}
144 + m_ExitPosition: {x: 800, y: 120, z: 0}
145 + m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
146 + m_DefaultState: {fileID: 579388180157347277}
147 +--- !u!1101 &3261797949240638920
148 +AnimatorStateTransition:
149 + m_ObjectHideFlags: 1
150 + m_CorrespondingSourceObject: {fileID: 0}
151 + m_PrefabInstance: {fileID: 0}
152 + m_PrefabAsset: {fileID: 0}
153 + m_Name:
154 + m_Conditions: []
155 + m_DstStateMachine: {fileID: 0}
156 + m_DstState: {fileID: 579388180157347277}
157 + m_Solo: 0
158 + m_Mute: 0
159 + m_IsExit: 0
160 + serializedVersion: 3
161 + m_TransitionDuration: 0.25
162 + m_TransitionOffset: 0
163 + m_ExitTime: 0.75
164 + m_HasExitTime: 1
165 + m_HasFixedDuration: 1
166 + m_InterruptionSource: 0
167 + m_OrderedInterruption: 1
168 + m_CanTransitionToSelf: 1
169 +--- !u!1107 &7614160792459320111
170 +AnimatorStateMachine:
171 + serializedVersion: 6
172 + m_ObjectHideFlags: 1
173 + m_CorrespondingSourceObject: {fileID: 0}
174 + m_PrefabInstance: {fileID: 0}
175 + m_PrefabAsset: {fileID: 0}
176 + m_Name: screenshot
177 + m_ChildStates: []
178 + m_ChildStateMachines: []
179 + m_AnyStateTransitions: []
180 + m_EntryTransitions: []
181 + m_StateMachineTransitions: {}
182 + m_StateMachineBehaviours: []
183 + m_AnyStatePosition: {x: 50, y: 20, z: 0}
184 + m_EntryPosition: {x: 50, y: 120, z: 0}
185 + m_ExitPosition: {x: 800, y: 120, z: 0}
186 + m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
187 + m_DefaultState: {fileID: 0}
1 +fileFormatVersion: 2
2 +guid: dca5aa70a8e1c7b49ae4cdcb4499b2eb
3 +NativeFormatImporter:
4 + externalObjects: {}
5 + mainObjectFileID: 9100000
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!74 &7400000
4 +AnimationClip:
5 + m_ObjectHideFlags: 0
6 + m_CorrespondingSourceObject: {fileID: 0}
7 + m_PrefabInstance: {fileID: 0}
8 + m_PrefabAsset: {fileID: 0}
9 + m_Name: screenshot_default
10 + serializedVersion: 6
11 + m_Legacy: 0
12 + m_Compressed: 0
13 + m_UseHighQualityCurve: 1
14 + m_RotationCurves: []
15 + m_CompressedRotationCurves: []
16 + m_EulerCurves: []
17 + m_PositionCurves: []
18 + m_ScaleCurves: []
19 + m_FloatCurves:
20 + - curve:
21 + serializedVersion: 2
22 + m_Curve:
23 + - serializedVersion: 3
24 + time: 0
25 + value: 0
26 + inSlope: 0
27 + outSlope: 0
28 + tangentMode: 136
29 + weightedMode: 0
30 + inWeight: 0
31 + outWeight: 0
32 + m_PreInfinity: 2
33 + m_PostInfinity: 2
34 + m_RotationOrder: 4
35 + attribute: m_Color.a
36 + path:
37 + classID: 114
38 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
39 + m_PPtrCurves: []
40 + m_SampleRate: 60
41 + m_WrapMode: 0
42 + m_Bounds:
43 + m_Center: {x: 0, y: 0, z: 0}
44 + m_Extent: {x: 0, y: 0, z: 0}
45 + m_ClipBindingConstant:
46 + genericBindings:
47 + - serializedVersion: 2
48 + path: 0
49 + attribute: 304273561
50 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
51 + typeID: 114
52 + customType: 0
53 + isPPtrCurve: 0
54 + pptrCurveMapping: []
55 + m_AnimationClipSettings:
56 + serializedVersion: 2
57 + m_AdditiveReferencePoseClip: {fileID: 0}
58 + m_AdditiveReferencePoseTime: 0
59 + m_StartTime: 0
60 + m_StopTime: 0
61 + m_OrientationOffsetY: 0
62 + m_Level: 0
63 + m_CycleOffset: 0
64 + m_HasAdditiveReferencePose: 0
65 + m_LoopTime: 0
66 + m_LoopBlend: 0
67 + m_LoopBlendOrientation: 0
68 + m_LoopBlendPositionY: 0
69 + m_LoopBlendPositionXZ: 0
70 + m_KeepOriginalOrientation: 0
71 + m_KeepOriginalPositionY: 1
72 + m_KeepOriginalPositionXZ: 0
73 + m_HeightFromFeet: 0
74 + m_Mirror: 0
75 + m_EditorCurves:
76 + - curve:
77 + serializedVersion: 2
78 + m_Curve:
79 + - serializedVersion: 3
80 + time: 0
81 + value: 0
82 + inSlope: 0
83 + outSlope: 0
84 + tangentMode: 136
85 + weightedMode: 0
86 + inWeight: 0
87 + outWeight: 0
88 + m_PreInfinity: 2
89 + m_PostInfinity: 2
90 + m_RotationOrder: 4
91 + attribute: m_Color.a
92 + path:
93 + classID: 114
94 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
95 + m_EulerEditorCurves: []
96 + m_HasGenericRootTransform: 0
97 + m_HasMotionFloatCurves: 0
98 + m_Events: []
1 +fileFormatVersion: 2
2 +guid: ae2ebb78fbacd934e981667f23ace19d
3 +NativeFormatImporter:
4 + externalObjects: {}
5 + mainObjectFileID: 7400000
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!74 &7400000
4 +AnimationClip:
5 + m_ObjectHideFlags: 0
6 + m_CorrespondingSourceObject: {fileID: 0}
7 + m_PrefabInstance: {fileID: 0}
8 + m_PrefabAsset: {fileID: 0}
9 + m_Name: screenshot_flash
10 + serializedVersion: 6
11 + m_Legacy: 0
12 + m_Compressed: 0
13 + m_UseHighQualityCurve: 1
14 + m_RotationCurves: []
15 + m_CompressedRotationCurves: []
16 + m_EulerCurves: []
17 + m_PositionCurves: []
18 + m_ScaleCurves: []
19 + m_FloatCurves:
20 + - curve:
21 + serializedVersion: 2
22 + m_Curve:
23 + - serializedVersion: 3
24 + time: 0
25 + value: 1
26 + inSlope: 0
27 + outSlope: 0
28 + tangentMode: 136
29 + weightedMode: 0
30 + inWeight: 0.33333334
31 + outWeight: 0.33333334
32 + - serializedVersion: 3
33 + time: 0.16666667
34 + value: 1
35 + inSlope: 0
36 + outSlope: 0
37 + tangentMode: 136
38 + weightedMode: 0
39 + inWeight: 0.33333334
40 + outWeight: 0.33333334
41 + - serializedVersion: 3
42 + time: 1
43 + value: 1
44 + inSlope: 0
45 + outSlope: 0
46 + tangentMode: 136
47 + weightedMode: 0
48 + inWeight: 0.33333334
49 + outWeight: 0.33333334
50 + m_PreInfinity: 2
51 + m_PostInfinity: 2
52 + m_RotationOrder: 4
53 + attribute: m_Color.r
54 + path:
55 + classID: 114
56 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
57 + - curve:
58 + serializedVersion: 2
59 + m_Curve:
60 + - serializedVersion: 3
61 + time: 0
62 + value: 1
63 + inSlope: 0
64 + outSlope: 0
65 + tangentMode: 136
66 + weightedMode: 0
67 + inWeight: 0.33333334
68 + outWeight: 0.33333334
69 + - serializedVersion: 3
70 + time: 0.16666667
71 + value: 1
72 + inSlope: 0
73 + outSlope: 0
74 + tangentMode: 136
75 + weightedMode: 0
76 + inWeight: 0.33333334
77 + outWeight: 0.33333334
78 + - serializedVersion: 3
79 + time: 1
80 + value: 1
81 + inSlope: 0
82 + outSlope: 0
83 + tangentMode: 136
84 + weightedMode: 0
85 + inWeight: 0.33333334
86 + outWeight: 0.33333334
87 + m_PreInfinity: 2
88 + m_PostInfinity: 2
89 + m_RotationOrder: 4
90 + attribute: m_Color.g
91 + path:
92 + classID: 114
93 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
94 + - curve:
95 + serializedVersion: 2
96 + m_Curve:
97 + - serializedVersion: 3
98 + time: 0
99 + value: 1
100 + inSlope: 0
101 + outSlope: 0
102 + tangentMode: 136
103 + weightedMode: 0
104 + inWeight: 0.33333334
105 + outWeight: 0.33333334
106 + - serializedVersion: 3
107 + time: 0.16666667
108 + value: 1
109 + inSlope: 0
110 + outSlope: 0
111 + tangentMode: 136
112 + weightedMode: 0
113 + inWeight: 0.33333334
114 + outWeight: 0.33333334
115 + - serializedVersion: 3
116 + time: 1
117 + value: 1
118 + inSlope: 0
119 + outSlope: 0
120 + tangentMode: 136
121 + weightedMode: 0
122 + inWeight: 0.33333334
123 + outWeight: 0.33333334
124 + m_PreInfinity: 2
125 + m_PostInfinity: 2
126 + m_RotationOrder: 4
127 + attribute: m_Color.b
128 + path:
129 + classID: 114
130 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
131 + - curve:
132 + serializedVersion: 2
133 + m_Curve:
134 + - serializedVersion: 3
135 + time: 0
136 + value: 0
137 + inSlope: 0
138 + outSlope: 0
139 + tangentMode: 136
140 + weightedMode: 0
141 + inWeight: 0.33333334
142 + outWeight: 0.33333334
143 + - serializedVersion: 3
144 + time: 0.033333335
145 + value: 0.80784315
146 + inSlope: 0
147 + outSlope: 0
148 + tangentMode: 136
149 + weightedMode: 0
150 + inWeight: 0.33333334
151 + outWeight: 0.33333334
152 + - serializedVersion: 3
153 + time: 0.16666667
154 + value: 0
155 + inSlope: 0
156 + outSlope: 0
157 + tangentMode: 136
158 + weightedMode: 0
159 + inWeight: 0.33333334
160 + outWeight: 0.33333334
161 + - serializedVersion: 3
162 + time: 1
163 + value: 0
164 + inSlope: 0
165 + outSlope: 0
166 + tangentMode: 136
167 + weightedMode: 0
168 + inWeight: 0.33333334
169 + outWeight: 0.33333334
170 + m_PreInfinity: 2
171 + m_PostInfinity: 2
172 + m_RotationOrder: 4
173 + attribute: m_Color.a
174 + path:
175 + classID: 114
176 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
177 + m_PPtrCurves: []
178 + m_SampleRate: 60
179 + m_WrapMode: 0
180 + m_Bounds:
181 + m_Center: {x: 0, y: 0, z: 0}
182 + m_Extent: {x: 0, y: 0, z: 0}
183 + m_ClipBindingConstant:
184 + genericBindings:
185 + - serializedVersion: 2
186 + path: 0
187 + attribute: 304273561
188 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
189 + typeID: 114
190 + customType: 0
191 + isPPtrCurve: 0
192 + - serializedVersion: 2
193 + path: 0
194 + attribute: 2526845255
195 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
196 + typeID: 114
197 + customType: 0
198 + isPPtrCurve: 0
199 + - serializedVersion: 2
200 + path: 0
201 + attribute: 4215373228
202 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
203 + typeID: 114
204 + customType: 0
205 + isPPtrCurve: 0
206 + - serializedVersion: 2
207 + path: 0
208 + attribute: 2334886179
209 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
210 + typeID: 114
211 + customType: 0
212 + isPPtrCurve: 0
213 + pptrCurveMapping: []
214 + m_AnimationClipSettings:
215 + serializedVersion: 2
216 + m_AdditiveReferencePoseClip: {fileID: 0}
217 + m_AdditiveReferencePoseTime: 0
218 + m_StartTime: 0
219 + m_StopTime: 1
220 + m_OrientationOffsetY: 0
221 + m_Level: 0
222 + m_CycleOffset: 0
223 + m_HasAdditiveReferencePose: 0
224 + m_LoopTime: 0
225 + m_LoopBlend: 0
226 + m_LoopBlendOrientation: 0
227 + m_LoopBlendPositionY: 0
228 + m_LoopBlendPositionXZ: 0
229 + m_KeepOriginalOrientation: 0
230 + m_KeepOriginalPositionY: 1
231 + m_KeepOriginalPositionXZ: 0
232 + m_HeightFromFeet: 0
233 + m_Mirror: 0
234 + m_EditorCurves:
235 + - curve:
236 + serializedVersion: 2
237 + m_Curve:
238 + - serializedVersion: 3
239 + time: 0
240 + value: 1
241 + inSlope: 0
242 + outSlope: 0
243 + tangentMode: 136
244 + weightedMode: 0
245 + inWeight: 0.33333334
246 + outWeight: 0.33333334
247 + - serializedVersion: 3
248 + time: 0.16666667
249 + value: 1
250 + inSlope: 0
251 + outSlope: 0
252 + tangentMode: 136
253 + weightedMode: 0
254 + inWeight: 0.33333334
255 + outWeight: 0.33333334
256 + - serializedVersion: 3
257 + time: 1
258 + value: 1
259 + inSlope: 0
260 + outSlope: 0
261 + tangentMode: 136
262 + weightedMode: 0
263 + inWeight: 0.33333334
264 + outWeight: 0.33333334
265 + m_PreInfinity: 2
266 + m_PostInfinity: 2
267 + m_RotationOrder: 4
268 + attribute: m_Color.r
269 + path:
270 + classID: 114
271 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
272 + - curve:
273 + serializedVersion: 2
274 + m_Curve:
275 + - serializedVersion: 3
276 + time: 0
277 + value: 1
278 + inSlope: 0
279 + outSlope: 0
280 + tangentMode: 136
281 + weightedMode: 0
282 + inWeight: 0.33333334
283 + outWeight: 0.33333334
284 + - serializedVersion: 3
285 + time: 0.16666667
286 + value: 1
287 + inSlope: 0
288 + outSlope: 0
289 + tangentMode: 136
290 + weightedMode: 0
291 + inWeight: 0.33333334
292 + outWeight: 0.33333334
293 + - serializedVersion: 3
294 + time: 1
295 + value: 1
296 + inSlope: 0
297 + outSlope: 0
298 + tangentMode: 136
299 + weightedMode: 0
300 + inWeight: 0.33333334
301 + outWeight: 0.33333334
302 + m_PreInfinity: 2
303 + m_PostInfinity: 2
304 + m_RotationOrder: 4
305 + attribute: m_Color.g
306 + path:
307 + classID: 114
308 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
309 + - curve:
310 + serializedVersion: 2
311 + m_Curve:
312 + - serializedVersion: 3
313 + time: 0
314 + value: 1
315 + inSlope: 0
316 + outSlope: 0
317 + tangentMode: 136
318 + weightedMode: 0
319 + inWeight: 0.33333334
320 + outWeight: 0.33333334
321 + - serializedVersion: 3
322 + time: 0.16666667
323 + value: 1
324 + inSlope: 0
325 + outSlope: 0
326 + tangentMode: 136
327 + weightedMode: 0
328 + inWeight: 0.33333334
329 + outWeight: 0.33333334
330 + - serializedVersion: 3
331 + time: 1
332 + value: 1
333 + inSlope: 0
334 + outSlope: 0
335 + tangentMode: 136
336 + weightedMode: 0
337 + inWeight: 0.33333334
338 + outWeight: 0.33333334
339 + m_PreInfinity: 2
340 + m_PostInfinity: 2
341 + m_RotationOrder: 4
342 + attribute: m_Color.b
343 + path:
344 + classID: 114
345 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
346 + - curve:
347 + serializedVersion: 2
348 + m_Curve:
349 + - serializedVersion: 3
350 + time: 0
351 + value: 0
352 + inSlope: 0
353 + outSlope: 0
354 + tangentMode: 136
355 + weightedMode: 0
356 + inWeight: 0.33333334
357 + outWeight: 0.33333334
358 + - serializedVersion: 3
359 + time: 0.033333335
360 + value: 0.80784315
361 + inSlope: 0
362 + outSlope: 0
363 + tangentMode: 136
364 + weightedMode: 0
365 + inWeight: 0.33333334
366 + outWeight: 0.33333334
367 + - serializedVersion: 3
368 + time: 0.16666667
369 + value: 0
370 + inSlope: 0
371 + outSlope: 0
372 + tangentMode: 136
373 + weightedMode: 0
374 + inWeight: 0.33333334
375 + outWeight: 0.33333334
376 + - serializedVersion: 3
377 + time: 1
378 + value: 0
379 + inSlope: 0
380 + outSlope: 0
381 + tangentMode: 136
382 + weightedMode: 0
383 + inWeight: 0.33333334
384 + outWeight: 0.33333334
385 + m_PreInfinity: 2
386 + m_PostInfinity: 2
387 + m_RotationOrder: 4
388 + attribute: m_Color.a
389 + path:
390 + classID: 114
391 + script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
392 + m_EulerEditorCurves: []
393 + m_HasGenericRootTransform: 0
394 + m_HasMotionFloatCurves: 0
395 + m_Events: []
1 +fileFormatVersion: 2
2 +guid: 966ff636b63ce134399f863d984ec015
3 +NativeFormatImporter:
4 + externalObjects: {}
5 + mainObjectFileID: 7400000
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 7fc50a3dcceb58d4284dfb6a85f85cd9
3 +folderAsset: yes
4 +DefaultImporter:
5 + externalObjects: {}
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!21 &2100000
4 +Material:
5 + serializedVersion: 6
6 + m_ObjectHideFlags: 0
7 + m_CorrespondingSourceObject: {fileID: 0}
8 + m_PrefabInstance: {fileID: 0}
9 + m_PrefabAsset: {fileID: 0}
10 + m_Name: TEXTURA CUERPO
11 + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12 + m_ShaderKeywords:
13 + m_LightmapFlags: 4
14 + m_EnableInstancingVariants: 0
15 + m_DoubleSidedGI: 0
16 + m_CustomRenderQueue: -1
17 + stringTagMap: {}
18 + disabledShaderPasses: []
19 + m_SavedProperties:
20 + serializedVersion: 3
21 + m_TexEnvs:
22 + - _BumpMap:
23 + m_Texture: {fileID: 0}
24 + m_Scale: {x: 1, y: 1}
25 + m_Offset: {x: 0, y: 0}
26 + - _DetailAlbedoMap:
27 + m_Texture: {fileID: 0}
28 + m_Scale: {x: 1, y: 1}
29 + m_Offset: {x: 0, y: 0}
30 + - _DetailMask:
31 + m_Texture: {fileID: 0}
32 + m_Scale: {x: 1, y: 1}
33 + m_Offset: {x: 0, y: 0}
34 + - _DetailNormalMap:
35 + m_Texture: {fileID: 0}
36 + m_Scale: {x: 1, y: 1}
37 + m_Offset: {x: 0, y: 0}
38 + - _EmissionMap:
39 + m_Texture: {fileID: 0}
40 + m_Scale: {x: 1, y: 1}
41 + m_Offset: {x: 0, y: 0}
42 + - _MainTex:
43 + m_Texture: {fileID: 2800000, guid: 66209c4fe8c95784ebbce81894938f75, type: 3}
44 + m_Scale: {x: 1, y: 1}
45 + m_Offset: {x: 0, y: 0}
46 + - _MetallicGlossMap:
47 + m_Texture: {fileID: 0}
48 + m_Scale: {x: 1, y: 1}
49 + m_Offset: {x: 0, y: 0}
50 + - _OcclusionMap:
51 + m_Texture: {fileID: 0}
52 + m_Scale: {x: 1, y: 1}
53 + m_Offset: {x: 0, y: 0}
54 + - _ParallaxMap:
55 + m_Texture: {fileID: 0}
56 + m_Scale: {x: 1, y: 1}
57 + m_Offset: {x: 0, y: 0}
58 + m_Floats:
59 + - _BumpScale: 1
60 + - _Cutoff: 0.5
61 + - _DetailNormalMapScale: 1
62 + - _DstBlend: 0
63 + - _GlossMapScale: 1
64 + - _Glossiness: 0.5
65 + - _GlossyReflections: 1
66 + - _Metallic: 0
67 + - _Mode: 0
68 + - _OcclusionStrength: 1
69 + - _Parallax: 0.02
70 + - _SmoothnessTextureChannel: 0
71 + - _SpecularHighlights: 1
72 + - _SrcBlend: 1
73 + - _UVSec: 0
74 + - _ZWrite: 1
75 + m_Colors:
76 + - _Color: {r: 1, g: 1, b: 1, a: 1}
77 + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
78 + m_BuildTextureStacks: []
1 +fileFormatVersion: 2
2 +guid: f5a52e6f951f1c64e91cc824dad68f2e
3 +NativeFormatImporter:
4 + externalObjects: {}
5 + mainObjectFileID: 2100000
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!21 &2100000
4 +Material:
5 + serializedVersion: 6
6 + m_ObjectHideFlags: 0
7 + m_CorrespondingSourceObject: {fileID: 0}
8 + m_PrefabInstance: {fileID: 0}
9 + m_PrefabAsset: {fileID: 0}
10 + m_Name: characterRogh
11 + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12 + m_ShaderKeywords:
13 + m_LightmapFlags: 4
14 + m_EnableInstancingVariants: 0
15 + m_DoubleSidedGI: 0
16 + m_CustomRenderQueue: -1
17 + stringTagMap: {}
18 + disabledShaderPasses: []
19 + m_SavedProperties:
20 + serializedVersion: 3
21 + m_TexEnvs:
22 + - _BumpMap:
23 + m_Texture: {fileID: 0}
24 + m_Scale: {x: 1, y: 1}
25 + m_Offset: {x: 0, y: 0}
26 + - _DetailAlbedoMap:
27 + m_Texture: {fileID: 0}
28 + m_Scale: {x: 1, y: 1}
29 + m_Offset: {x: 0, y: 0}
30 + - _DetailMask:
31 + m_Texture: {fileID: 0}
32 + m_Scale: {x: 1, y: 1}
33 + m_Offset: {x: 0, y: 0}
34 + - _DetailNormalMap:
35 + m_Texture: {fileID: 0}
36 + m_Scale: {x: 1, y: 1}
37 + m_Offset: {x: 0, y: 0}
38 + - _EmissionMap:
39 + m_Texture: {fileID: 0}
40 + m_Scale: {x: 1, y: 1}
41 + m_Offset: {x: 0, y: 0}
42 + - _MainTex:
43 + m_Texture: {fileID: 2800000, guid: 6a811edec640b7649bdda50565a08111, type: 3}
44 + m_Scale: {x: 1, y: 1}
45 + m_Offset: {x: 0, y: 0}
46 + - _MetallicGlossMap:
47 + m_Texture: {fileID: 0}
48 + m_Scale: {x: 1, y: 1}
49 + m_Offset: {x: 0, y: 0}
50 + - _OcclusionMap:
51 + m_Texture: {fileID: 0}
52 + m_Scale: {x: 1, y: 1}
53 + m_Offset: {x: 0, y: 0}
54 + - _ParallaxMap:
55 + m_Texture: {fileID: 0}
56 + m_Scale: {x: 1, y: 1}
57 + m_Offset: {x: 0, y: 0}
58 + m_Floats:
59 + - _BumpScale: 1
60 + - _Cutoff: 0.5
61 + - _DetailNormalMapScale: 1
62 + - _DstBlend: 0
63 + - _GlossMapScale: 1
64 + - _Glossiness: 0.5
65 + - _GlossyReflections: 1
66 + - _Metallic: 0
67 + - _Mode: 0
68 + - _OcclusionStrength: 1
69 + - _Parallax: 0.02
70 + - _SmoothnessTextureChannel: 0
71 + - _SpecularHighlights: 1
72 + - _SrcBlend: 1
73 + - _UVSec: 0
74 + - _ZWrite: 1
75 + m_Colors:
76 + - _Color: {r: 1, g: 1, b: 1, a: 1}
77 + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
78 + m_BuildTextureStacks: []
1 +fileFormatVersion: 2
2 +guid: ae4c520258da70a48bf293e5edaaa907
3 +NativeFormatImporter:
4 + externalObjects: {}
5 + mainObjectFileID: 2100000
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: d53885e643f41a24a997d16e83dd6909
3 +folderAsset: yes
4 +DefaultImporter:
5 + externalObjects: {}
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: f279f25c82d221b42a59fd3f4101277c
3 +folderAsset: yes
4 +DefaultImporter:
5 + externalObjects: {}
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 0a607dcda26e7614f86300c6ca717295
3 +folderAsset: yes
4 +timeCreated: 1498722617
5 +licenseType: Store
6 +DefaultImporter:
7 + userData:
8 + assetBundleName:
9 + assetBundleVariant:
1 +#if UNITY_EDITOR || UNITY_ANDROID
2 +using UnityEngine;
3 +
4 +namespace NativeGalleryNamespace
5 +{
6 + public class NGCallbackHelper : MonoBehaviour
7 + {
8 + private System.Action mainThreadAction = null;
9 +
10 + private void Awake()
11 + {
12 + DontDestroyOnLoad( gameObject );
13 + }
14 +
15 + private void Update()
16 + {
17 + if( mainThreadAction != null )
18 + {
19 + System.Action temp = mainThreadAction;
20 + mainThreadAction = null;
21 + temp();
22 + }
23 + }
24 +
25 + public void CallOnMainThread( System.Action function )
26 + {
27 + mainThreadAction = function;
28 + }
29 + }
30 +}
31 +#endif
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: 2d517fd0f2f85f24698df2775bee58e9
3 +timeCreated: 1544889149
4 +licenseType: Store
5 +MonoImporter:
6 + serializedVersion: 2
7 + defaultReferences: []
8 + executionOrder: 0
9 + icon: {instanceID: 0}
10 + userData:
11 + assetBundleName:
12 + assetBundleVariant:
1 +#if UNITY_EDITOR || UNITY_ANDROID
2 +using UnityEngine;
3 +
4 +namespace NativeGalleryNamespace
5 +{
6 + public class NGMediaReceiveCallbackAndroid : AndroidJavaProxy
7 + {
8 + private readonly NativeGallery.MediaPickCallback callback;
9 + private readonly NativeGallery.MediaPickMultipleCallback callbackMultiple;
10 +
11 + private readonly NGCallbackHelper callbackHelper;
12 +
13 + public NGMediaReceiveCallbackAndroid( NativeGallery.MediaPickCallback callback, NativeGallery.MediaPickMultipleCallback callbackMultiple ) : base( "com.yasirkula.unity.NativeGalleryMediaReceiver" )
14 + {
15 + this.callback = callback;
16 + this.callbackMultiple = callbackMultiple;
17 + callbackHelper = new GameObject( "NGCallbackHelper" ).AddComponent<NGCallbackHelper>();
18 + }
19 +
20 + public void OnMediaReceived( string path )
21 + {
22 + callbackHelper.CallOnMainThread( () => MediaReceiveCallback( path ) );
23 + }
24 +
25 + public void OnMultipleMediaReceived( string paths )
26 + {
27 + string[] result = null;
28 + if( !string.IsNullOrEmpty( paths ) )
29 + {
30 + string[] pathsSplit = paths.Split( '>' );
31 +
32 + int validPathCount = 0;
33 + for( int i = 0; i < pathsSplit.Length; i++ )
34 + {
35 + if( !string.IsNullOrEmpty( pathsSplit[i] ) )
36 + validPathCount++;
37 + }
38 +
39 + if( validPathCount == 0 )
40 + pathsSplit = new string[0];
41 + else if( validPathCount != pathsSplit.Length )
42 + {
43 + string[] validPaths = new string[validPathCount];
44 + for( int i = 0, j = 0; i < pathsSplit.Length; i++ )
45 + {
46 + if( !string.IsNullOrEmpty( pathsSplit[i] ) )
47 + validPaths[j++] = pathsSplit[i];
48 + }
49 +
50 + pathsSplit = validPaths;
51 + }
52 +
53 + result = pathsSplit;
54 + }
55 +
56 + callbackHelper.CallOnMainThread( () => MediaReceiveMultipleCallback( result ) );
57 + }
58 +
59 + private void MediaReceiveCallback( string path )
60 + {
61 + if( string.IsNullOrEmpty( path ) )
62 + path = null;
63 +
64 + try
65 + {
66 + if( callback != null )
67 + callback( path );
68 + }
69 + finally
70 + {
71 + Object.Destroy( callbackHelper.gameObject );
72 + }
73 + }
74 +
75 + private void MediaReceiveMultipleCallback( string[] paths )
76 + {
77 + if( paths != null && paths.Length == 0 )
78 + paths = null;
79 +
80 + try
81 + {
82 + if( callbackMultiple != null )
83 + callbackMultiple( paths );
84 + }
85 + finally
86 + {
87 + Object.Destroy( callbackHelper.gameObject );
88 + }
89 + }
90 + }
91 +}
92 +#endif
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: 4c18d702b07a63945968db47201b95c9
3 +timeCreated: 1519060539
4 +licenseType: Store
5 +MonoImporter:
6 + serializedVersion: 2
7 + defaultReferences: []
8 + executionOrder: 0
9 + icon: {instanceID: 0}
10 + userData:
11 + assetBundleName:
12 + assetBundleVariant:
1 +#if UNITY_EDITOR || UNITY_ANDROID
2 +using System.Threading;
3 +using UnityEngine;
4 +
5 +namespace NativeGalleryNamespace
6 +{
7 + public class NGPermissionCallbackAndroid : AndroidJavaProxy
8 + {
9 + private object threadLock;
10 + public int Result { get; private set; }
11 +
12 + public NGPermissionCallbackAndroid( object threadLock ) : base( "com.yasirkula.unity.NativeGalleryPermissionReceiver" )
13 + {
14 + Result = -1;
15 + this.threadLock = threadLock;
16 + }
17 +
18 + public void OnPermissionResult( int result )
19 + {
20 + Result = result;
21 +
22 + lock( threadLock )
23 + {
24 + Monitor.Pulse( threadLock );
25 + }
26 + }
27 + }
28 +}
29 +#endif
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: a07afac614af1294d8e72a3c083be028
3 +timeCreated: 1519060539
4 +licenseType: Store
5 +MonoImporter:
6 + serializedVersion: 2
7 + defaultReferences: []
8 + executionOrder: 0
9 + icon: {instanceID: 0}
10 + userData:
11 + assetBundleName:
12 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: db4d55e1212537e4baa84cac66eb6645
3 +timeCreated: 1569764737
4 +licenseType: Store
5 +PluginImporter:
6 + serializedVersion: 2
7 + iconMap: {}
8 + executionOrder: {}
9 + isPreloaded: 0
10 + isOverridable: 0
11 + platformData:
12 + data:
13 + first:
14 + Android: Android
15 + second:
16 + enabled: 1
17 + settings: {}
18 + data:
19 + first:
20 + Any:
21 + second:
22 + enabled: 0
23 + settings: {}
24 + data:
25 + first:
26 + Editor: Editor
27 + second:
28 + enabled: 0
29 + settings:
30 + DefaultValueInitialized: true
31 + userData:
32 + assetBundleName:
33 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 19fc6b8ce781591438a952d8aa9104f8
3 +folderAsset: yes
4 +timeCreated: 1521452097
5 +licenseType: Store
6 +DefaultImporter:
7 + userData:
8 + assetBundleName:
9 + assetBundleVariant:
1 +#if UNITY_IOS
2 +using System.IO;
3 +using UnityEditor;
4 +using UnityEngine;
5 +using UnityEditor.Callbacks;
6 +using UnityEditor.iOS.Xcode;
7 +#endif
8 +
9 +namespace NativeGalleryNamespace
10 +{
11 + public class NGPostProcessBuild
12 + {
13 + private const bool ENABLED = true;
14 +
15 + private const string PHOTO_LIBRARY_USAGE_DESCRIPTION = "The app requires access to Photos to interact with it.";
16 + private const string PHOTO_LIBRARY_ADDITIONS_USAGE_DESCRIPTION = "The app requires access to Photos to save media to it.";
17 + private const bool DONT_ASK_LIMITED_PHOTOS_PERMISSION_AUTOMATICALLY_ON_IOS14 = true; // See: https://mackuba.eu/2020/07/07/photo-library-changes-ios-14/
18 +#if !UNITY_2018_1_OR_NEWER
19 + private const bool MINIMUM_TARGET_8_OR_ABOVE = false;
20 +#endif
21 +
22 +#if UNITY_IOS
23 +#pragma warning disable 0162
24 + [PostProcessBuild]
25 + public static void OnPostprocessBuild( BuildTarget target, string buildPath )
26 + {
27 + if( !ENABLED )
28 + return;
29 +
30 + if( target == BuildTarget.iOS )
31 + {
32 + string pbxProjectPath = PBXProject.GetPBXProjectPath( buildPath );
33 + string plistPath = Path.Combine( buildPath, "Info.plist" );
34 +
35 + PBXProject pbxProject = new PBXProject();
36 + pbxProject.ReadFromFile( pbxProjectPath );
37 +
38 +#if UNITY_2019_3_OR_NEWER
39 + string targetGUID = pbxProject.GetUnityFrameworkTargetGuid();
40 +#else
41 + string targetGUID = pbxProject.TargetGuidByName( PBXProject.GetUnityTargetName() );
42 +#endif
43 +
44 + // Minimum supported iOS version on Unity 2018.1 and later is 8.0
45 +#if !UNITY_2018_1_OR_NEWER
46 + if( MINIMUM_TARGET_8_OR_ABOVE )
47 + {
48 +#endif
49 + pbxProject.AddBuildProperty( targetGUID, "OTHER_LDFLAGS", "-weak_framework PhotosUI" );
50 + pbxProject.AddBuildProperty( targetGUID, "OTHER_LDFLAGS", "-framework Photos" );
51 + pbxProject.AddBuildProperty( targetGUID, "OTHER_LDFLAGS", "-framework MobileCoreServices" );
52 + pbxProject.AddBuildProperty( targetGUID, "OTHER_LDFLAGS", "-framework ImageIO" );
53 +#if !UNITY_2018_1_OR_NEWER
54 + }
55 + else
56 + {
57 + pbxProject.AddBuildProperty( targetGUID, "OTHER_LDFLAGS", "-weak_framework Photos" );
58 + pbxProject.AddBuildProperty( targetGUID, "OTHER_LDFLAGS", "-weak_framework PhotosUI" );
59 + pbxProject.AddBuildProperty( targetGUID, "OTHER_LDFLAGS", "-framework AssetsLibrary" );
60 + pbxProject.AddBuildProperty( targetGUID, "OTHER_LDFLAGS", "-framework MobileCoreServices" );
61 + pbxProject.AddBuildProperty( targetGUID, "OTHER_LDFLAGS", "-framework ImageIO" );
62 + }
63 +#endif
64 +
65 + pbxProject.RemoveFrameworkFromProject( targetGUID, "Photos.framework" );
66 +
67 + File.WriteAllText( pbxProjectPath, pbxProject.WriteToString() );
68 +
69 + PlistDocument plist = new PlistDocument();
70 + plist.ReadFromString( File.ReadAllText( plistPath ) );
71 +
72 + PlistElementDict rootDict = plist.root;
73 + rootDict.SetString( "NSPhotoLibraryUsageDescription", PHOTO_LIBRARY_USAGE_DESCRIPTION );
74 + rootDict.SetString( "NSPhotoLibraryAddUsageDescription", PHOTO_LIBRARY_ADDITIONS_USAGE_DESCRIPTION );
75 + if( DONT_ASK_LIMITED_PHOTOS_PERMISSION_AUTOMATICALLY_ON_IOS14 )
76 + rootDict.SetBoolean( "PHPhotoLibraryPreventAutomaticLimitedAccessAlert", true );
77 +
78 + File.WriteAllText( plistPath, plist.WriteToString() );
79 + }
80 + }
81 +#pragma warning restore 0162
82 +#endif
83 + }
84 +}
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: dff1540cf22bfb749a2422f445cf9427
3 +timeCreated: 1521452119
4 +licenseType: Store
5 +MonoImporter:
6 + serializedVersion: 2
7 + defaultReferences: []
8 + executionOrder: 0
9 + icon: {instanceID: 0}
10 + userData:
11 + assetBundleName:
12 + assetBundleVariant:
1 +{
2 + "name": "NativeGallery.Editor",
3 + "references": [],
4 + "includePlatforms": [
5 + "Editor"
6 + ],
7 + "excludePlatforms": [],
8 + "allowUnsafeCode": false,
9 + "overrideReferences": false,
10 + "precompiledReferences": [],
11 + "autoReferenced": true,
12 + "defineConstraints": [],
13 + "versionDefines": [],
14 + "noEngineReferences": false
15 +}
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: 3dffc8e654f00c545a82d0a5274d51eb
3 +AssemblyDefinitionImporter:
4 + externalObjects: {}
5 + userData:
6 + assetBundleName:
7 + assetBundleVariant:
1 +{
2 + "name": "NativeGallery.Runtime"
3 +}
1 +fileFormatVersion: 2
2 +guid: 6e5063adab271564ba0098a06a8cebda
3 +AssemblyDefinitionImporter:
4 + externalObjects: {}
5 + userData:
6 + assetBundleName:
7 + assetBundleVariant:
This diff is collapsed. Click to expand it.
1 +fileFormatVersion: 2
2 +guid: ce1403606c3629046a0147d3e705f7cc
3 +timeCreated: 1498722610
4 +licenseType: Store
5 +MonoImporter:
6 + serializedVersion: 2
7 + defaultReferences: []
8 + executionOrder: 0
9 + icon: {instanceID: 0}
10 + userData:
11 + assetBundleName:
12 + assetBundleVariant:
This diff is collapsed. Click to expand it.
1 +fileFormatVersion: 2
2 +guid: be769f45b807c40459e5bafb18e887d6
3 +timeCreated: 1563308465
4 +licenseType: Store
5 +TextScriptImporter:
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 9c623599351a41a4c84c20f73c9d8976
3 +folderAsset: yes
4 +timeCreated: 1498722622
5 +licenseType: Store
6 +DefaultImporter:
7 + userData:
8 + assetBundleName:
9 + assetBundleVariant:
1 +#if UNITY_EDITOR || UNITY_IOS
2 +using UnityEngine;
3 +
4 +namespace NativeGalleryNamespace
5 +{
6 + public class NGMediaReceiveCallbackiOS : MonoBehaviour
7 + {
8 + private static NGMediaReceiveCallbackiOS instance;
9 +
10 + private NativeGallery.MediaPickCallback callback;
11 + private NativeGallery.MediaPickMultipleCallback callbackMultiple;
12 +
13 + private float nextBusyCheckTime;
14 +
15 + public static bool IsBusy { get; private set; }
16 +
17 + [System.Runtime.InteropServices.DllImport( "__Internal" )]
18 + private static extern int _NativeGallery_IsMediaPickerBusy();
19 +
20 + public static void Initialize( NativeGallery.MediaPickCallback callback, NativeGallery.MediaPickMultipleCallback callbackMultiple )
21 + {
22 + if( IsBusy )
23 + return;
24 +
25 + if( instance == null )
26 + {
27 + instance = new GameObject( "NGMediaReceiveCallbackiOS" ).AddComponent<NGMediaReceiveCallbackiOS>();
28 + DontDestroyOnLoad( instance.gameObject );
29 + }
30 +
31 + instance.callback = callback;
32 + instance.callbackMultiple = callbackMultiple;
33 +
34 + instance.nextBusyCheckTime = Time.realtimeSinceStartup + 1f;
35 + IsBusy = true;
36 + }
37 +
38 + private void Update()
39 + {
40 + if( IsBusy )
41 + {
42 + if( Time.realtimeSinceStartup >= nextBusyCheckTime )
43 + {
44 + nextBusyCheckTime = Time.realtimeSinceStartup + 1f;
45 +
46 + if( _NativeGallery_IsMediaPickerBusy() == 0 )
47 + {
48 + IsBusy = false;
49 +
50 + NativeGallery.MediaPickCallback _callback = callback;
51 + callback = null;
52 +
53 + NativeGallery.MediaPickMultipleCallback _callbackMultiple = callbackMultiple;
54 + callbackMultiple = null;
55 +
56 + if( _callback != null )
57 + _callback( null );
58 +
59 + if( _callbackMultiple != null )
60 + _callbackMultiple( null );
61 + }
62 + }
63 + }
64 + }
65 +
66 + public void OnMediaReceived( string path )
67 + {
68 + IsBusy = false;
69 +
70 + if( string.IsNullOrEmpty( path ) )
71 + path = null;
72 +
73 + NativeGallery.MediaPickCallback _callback = callback;
74 + callback = null;
75 +
76 + if( _callback != null )
77 + _callback( path );
78 + }
79 +
80 + public void OnMultipleMediaReceived( string paths )
81 + {
82 + IsBusy = false;
83 +
84 + string[] _paths = SplitPaths( paths );
85 + if( _paths != null && _paths.Length == 0 )
86 + _paths = null;
87 +
88 + NativeGallery.MediaPickMultipleCallback _callbackMultiple = callbackMultiple;
89 + callbackMultiple = null;
90 +
91 + if( _callbackMultiple != null )
92 + _callbackMultiple( _paths );
93 + }
94 +
95 + private string[] SplitPaths( string paths )
96 + {
97 + string[] result = null;
98 + if( !string.IsNullOrEmpty( paths ) )
99 + {
100 + string[] pathsSplit = paths.Split( '>' );
101 +
102 + int validPathCount = 0;
103 + for( int i = 0; i < pathsSplit.Length; i++ )
104 + {
105 + if( !string.IsNullOrEmpty( pathsSplit[i] ) )
106 + validPathCount++;
107 + }
108 +
109 + if( validPathCount == 0 )
110 + pathsSplit = new string[0];
111 + else if( validPathCount != pathsSplit.Length )
112 + {
113 + string[] validPaths = new string[validPathCount];
114 + for( int i = 0, j = 0; i < pathsSplit.Length; i++ )
115 + {
116 + if( !string.IsNullOrEmpty( pathsSplit[i] ) )
117 + validPaths[j++] = pathsSplit[i];
118 + }
119 +
120 + pathsSplit = validPaths;
121 + }
122 +
123 + result = pathsSplit;
124 + }
125 +
126 + return result;
127 + }
128 + }
129 +}
130 +#endif
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: 71fb861c149c2d1428544c601e52a33c
3 +timeCreated: 1519060539
4 +licenseType: Store
5 +MonoImporter:
6 + serializedVersion: 2
7 + defaultReferences: []
8 + executionOrder: 0
9 + icon: {instanceID: 0}
10 + userData:
11 + assetBundleName:
12 + assetBundleVariant:
1 +#if UNITY_EDITOR || UNITY_IOS
2 +using UnityEngine;
3 +
4 +namespace NativeGalleryNamespace
5 +{
6 + public class NGMediaSaveCallbackiOS : MonoBehaviour
7 + {
8 + private static NGMediaSaveCallbackiOS instance;
9 + private NativeGallery.MediaSaveCallback callback;
10 +
11 + public static void Initialize( NativeGallery.MediaSaveCallback callback )
12 + {
13 + if( instance == null )
14 + {
15 + instance = new GameObject( "NGMediaSaveCallbackiOS" ).AddComponent<NGMediaSaveCallbackiOS>();
16 + DontDestroyOnLoad( instance.gameObject );
17 + }
18 + else if( instance.callback != null )
19 + instance.callback( false, null );
20 +
21 + instance.callback = callback;
22 + }
23 +
24 + public void OnMediaSaveCompleted( string message )
25 + {
26 + NativeGallery.MediaSaveCallback _callback = callback;
27 + callback = null;
28 +
29 + if( _callback != null )
30 + _callback( true, null );
31 + }
32 +
33 + public void OnMediaSaveFailed( string error )
34 + {
35 + NativeGallery.MediaSaveCallback _callback = callback;
36 + callback = null;
37 +
38 + if( _callback != null )
39 + _callback( false, null );
40 + }
41 + }
42 +}
43 +#endif
...\ No newline at end of file ...\ No newline at end of file
1 +fileFormatVersion: 2
2 +guid: 9cbb865d0913a0d47bb6d2eb3ad04c4f
3 +timeCreated: 1519060539
4 +licenseType: Store
5 +MonoImporter:
6 + serializedVersion: 2
7 + defaultReferences: []
8 + executionOrder: 0
9 + icon: {instanceID: 0}
10 + userData:
11 + assetBundleName:
12 + assetBundleVariant:
This diff is collapsed. Click to expand it.
1 +fileFormatVersion: 2
2 +guid: 953e0b740eb03144883db35f72cad8a6
3 +timeCreated: 1498722774
4 +licenseType: Store
5 +PluginImporter:
6 + serializedVersion: 2
7 + iconMap: {}
8 + executionOrder: {}
9 + isPreloaded: 0
10 + isOverridable: 0
11 + platformData:
12 + data:
13 + first:
14 + Any:
15 + second:
16 + enabled: 0
17 + settings: {}
18 + data:
19 + first:
20 + Editor: Editor
21 + second:
22 + enabled: 0
23 + settings:
24 + DefaultValueInitialized: true
25 + data:
26 + first:
27 + iPhone: iOS
28 + second:
29 + enabled: 1
30 + settings: {}
31 + userData:
32 + assetBundleName:
33 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: ecd76fdbb3478d94baa7c2db5225916b
3 +folderAsset: yes
4 +DefaultImporter:
5 + externalObjects: {}
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
This diff could not be displayed because it is too large.
1 +fileFormatVersion: 2
2 +guid: ae4babb9dbdb95b42af63ad271b97d75
3 +ModelImporter:
4 + serializedVersion: 20200
5 + internalIDToNameTable: []
6 + externalObjects: {}
7 + materials:
8 + materialImportMode: 2
9 + materialName: 0
10 + materialSearch: 1
11 + materialLocation: 1
12 + animations:
13 + legacyGenerateAnimations: 4
14 + bakeSimulation: 0
15 + resampleCurves: 1
16 + optimizeGameObjects: 0
17 + motionNodeName:
18 + rigImportErrors:
19 + rigImportWarnings:
20 + animationImportErrors:
21 + animationImportWarnings:
22 + animationRetargetingWarnings:
23 + animationDoRetargetingWarnings: 0
24 + importAnimatedCustomProperties: 0
25 + importConstraints: 0
26 + animationCompression: 1
27 + animationRotationError: 0.5
28 + animationPositionError: 0.5
29 + animationScaleError: 0.5
30 + animationWrapMode: 0
31 + extraExposedTransformPaths: []
32 + extraUserProperties: []
33 + clipAnimations: []
34 + isReadable: 0
35 + meshes:
36 + lODScreenPercentages: []
37 + globalScale: 1
38 + meshCompression: 0
39 + addColliders: 0
40 + useSRGBMaterialColor: 1
41 + sortHierarchyByName: 1
42 + importVisibility: 1
43 + importBlendShapes: 1
44 + importCameras: 1
45 + importLights: 1
46 + fileIdsGeneration: 2
47 + swapUVChannels: 0
48 + generateSecondaryUV: 0
49 + useFileUnits: 1
50 + keepQuads: 0
51 + weldVertices: 1
52 + bakeAxisConversion: 0
53 + preserveHierarchy: 0
54 + skinWeightsMode: 0
55 + maxBonesPerVertex: 4
56 + minBoneWeight: 0.001
57 + meshOptimizationFlags: -1
58 + indexFormat: 0
59 + secondaryUVAngleDistortion: 8
60 + secondaryUVAreaDistortion: 15.000001
61 + secondaryUVHardAngle: 88
62 + secondaryUVMarginMethod: 1
63 + secondaryUVMinLightmapResolution: 40
64 + secondaryUVMinObjectScale: 1
65 + secondaryUVPackMargin: 4
66 + useFileScale: 1
67 + tangentSpace:
68 + normalSmoothAngle: 60
69 + normalImportMode: 0
70 + tangentImportMode: 3
71 + normalCalculationMode: 4
72 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
73 + blendShapeNormalImportMode: 1
74 + normalSmoothingSource: 0
75 + referencedClips: []
76 + importAnimation: 1
77 + humanDescription:
78 + serializedVersion: 3
79 + human: []
80 + skeleton: []
81 + armTwist: 0.5
82 + foreArmTwist: 0.5
83 + upperLegTwist: 0.5
84 + legTwist: 0.5
85 + armStretch: 0.05
86 + legStretch: 0.05
87 + feetSpacing: 0
88 + globalScale: 1
89 + rootMotionBoneName:
90 + hasTranslationDoF: 0
91 + hasExtraRoot: 0
92 + skeletonHasParents: 1
93 + lastHumanDescriptionAvatarSource: {instanceID: 0}
94 + autoGenerateAvatarMappingIfUnspecified: 1
95 + animationType: 2
96 + humanoidOversampling: 1
97 + avatarSetup: 0
98 + addHumanoidExtraRootOnlyWhenUsingAvatar: 1
99 + additionalBone: 0
100 + userData:
101 + assetBundleName:
102 + assetBundleVariant:
This diff is collapsed. Click to expand it.
1 +fileFormatVersion: 2
2 +guid: 6ee782535783db74c9ec8a1e642532ae
3 +PrefabImporter:
4 + externalObjects: {}
5 + userData:
6 + assetBundleName:
7 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!1 &3874903127202937296
4 +GameObject:
5 + m_ObjectHideFlags: 0
6 + m_CorrespondingSourceObject: {fileID: 0}
7 + m_PrefabInstance: {fileID: 0}
8 + m_PrefabAsset: {fileID: 0}
9 + serializedVersion: 6
10 + m_Component:
11 + - component: {fileID: 643815489431600914}
12 + - component: {fileID: 5361814368746436838}
13 + - component: {fileID: 5943818352018936958}
14 + - component: {fileID: 2594682930335385166}
15 + m_Layer: 0
16 + m_Name: Cube
17 + m_TagString: Untagged
18 + m_Icon: {fileID: 0}
19 + m_NavMeshLayer: 0
20 + m_StaticEditorFlags: 0
21 + m_IsActive: 1
22 +--- !u!4 &643815489431600914
23 +Transform:
24 + m_ObjectHideFlags: 0
25 + m_CorrespondingSourceObject: {fileID: 0}
26 + m_PrefabInstance: {fileID: 0}
27 + m_PrefabAsset: {fileID: 0}
28 + m_GameObject: {fileID: 3874903127202937296}
29 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
30 + m_LocalPosition: {x: 0, y: 0, z: 0}
31 + m_LocalScale: {x: 1, y: 1, z: 1}
32 + m_Children: []
33 + m_Father: {fileID: 0}
34 + m_RootOrder: 0
35 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
36 +--- !u!33 &5361814368746436838
37 +MeshFilter:
38 + m_ObjectHideFlags: 0
39 + m_CorrespondingSourceObject: {fileID: 0}
40 + m_PrefabInstance: {fileID: 0}
41 + m_PrefabAsset: {fileID: 0}
42 + m_GameObject: {fileID: 3874903127202937296}
43 + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
44 +--- !u!23 &5943818352018936958
45 +MeshRenderer:
46 + m_ObjectHideFlags: 0
47 + m_CorrespondingSourceObject: {fileID: 0}
48 + m_PrefabInstance: {fileID: 0}
49 + m_PrefabAsset: {fileID: 0}
50 + m_GameObject: {fileID: 3874903127202937296}
51 + m_Enabled: 1
52 + m_CastShadows: 1
53 + m_ReceiveShadows: 1
54 + m_DynamicOccludee: 1
55 + m_MotionVectors: 1
56 + m_LightProbeUsage: 1
57 + m_ReflectionProbeUsage: 1
58 + m_RayTracingMode: 2
59 + m_RayTraceProcedural: 0
60 + m_RenderingLayerMask: 1
61 + m_RendererPriority: 0
62 + m_Materials:
63 + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
64 + m_StaticBatchInfo:
65 + firstSubMesh: 0
66 + subMeshCount: 0
67 + m_StaticBatchRoot: {fileID: 0}
68 + m_ProbeAnchor: {fileID: 0}
69 + m_LightProbeVolumeOverride: {fileID: 0}
70 + m_ScaleInLightmap: 1
71 + m_ReceiveGI: 1
72 + m_PreserveUVs: 0
73 + m_IgnoreNormalsForChartDetection: 0
74 + m_ImportantGI: 0
75 + m_StitchLightmapSeams: 1
76 + m_SelectedEditorRenderState: 3
77 + m_MinimumChartSize: 4
78 + m_AutoUVMaxDistance: 0.5
79 + m_AutoUVMaxAngle: 89
80 + m_LightmapParameters: {fileID: 0}
81 + m_SortingLayerID: 0
82 + m_SortingLayer: 0
83 + m_SortingOrder: 0
84 + m_AdditionalVertexStreams: {fileID: 0}
85 +--- !u!65 &2594682930335385166
86 +BoxCollider:
87 + m_ObjectHideFlags: 0
88 + m_CorrespondingSourceObject: {fileID: 0}
89 + m_PrefabInstance: {fileID: 0}
90 + m_PrefabAsset: {fileID: 0}
91 + m_GameObject: {fileID: 3874903127202937296}
92 + m_Material: {fileID: 0}
93 + m_IsTrigger: 0
94 + m_Enabled: 1
95 + serializedVersion: 2
96 + m_Size: {x: 1, y: 1, z: 1}
97 + m_Center: {x: 0, y: 0, z: 0}
1 +fileFormatVersion: 2
2 +guid: efc964f69b6462a4c87d96025febd852
3 +PrefabImporter:
4 + externalObjects: {}
5 + userData:
6 + assetBundleName:
7 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!1 &5010708613265061355
4 +GameObject:
5 + m_ObjectHideFlags: 0
6 + m_CorrespondingSourceObject: {fileID: 0}
7 + m_PrefabInstance: {fileID: 0}
8 + m_PrefabAsset: {fileID: 0}
9 + serializedVersion: 6
10 + m_Component:
11 + - component: {fileID: 5010708613265061354}
12 + - component: {fileID: 5010708613265061351}
13 + - component: {fileID: 5010708613265061352}
14 + - component: {fileID: 5010708613265061353}
15 + m_Layer: 5
16 + m_Name: FlashImage
17 + m_TagString: Untagged
18 + m_Icon: {fileID: 0}
19 + m_NavMeshLayer: 0
20 + m_StaticEditorFlags: 0
21 + m_IsActive: 1
22 +--- !u!224 &5010708613265061354
23 +RectTransform:
24 + m_ObjectHideFlags: 0
25 + m_CorrespondingSourceObject: {fileID: 0}
26 + m_PrefabInstance: {fileID: 0}
27 + m_PrefabAsset: {fileID: 0}
28 + m_GameObject: {fileID: 5010708613265061355}
29 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
30 + m_LocalPosition: {x: 0, y: 0, z: 0}
31 + m_LocalScale: {x: 56.94355, y: 56.94355, z: 56.94355}
32 + m_Children: []
33 + m_Father: {fileID: 0}
34 + m_RootOrder: 0
35 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
36 + m_AnchorMin: {x: 0.5, y: 0.5}
37 + m_AnchorMax: {x: 0.5, y: 0.5}
38 + m_AnchoredPosition: {x: 0, y: 0}
39 + m_SizeDelta: {x: 100, y: 100}
40 + m_Pivot: {x: 0.5, y: 0.5}
41 +--- !u!222 &5010708613265061351
42 +CanvasRenderer:
43 + m_ObjectHideFlags: 0
44 + m_CorrespondingSourceObject: {fileID: 0}
45 + m_PrefabInstance: {fileID: 0}
46 + m_PrefabAsset: {fileID: 0}
47 + m_GameObject: {fileID: 5010708613265061355}
48 + m_CullTransparentMesh: 1
49 +--- !u!114 &5010708613265061352
50 +MonoBehaviour:
51 + m_ObjectHideFlags: 0
52 + m_CorrespondingSourceObject: {fileID: 0}
53 + m_PrefabInstance: {fileID: 0}
54 + m_PrefabAsset: {fileID: 0}
55 + m_GameObject: {fileID: 5010708613265061355}
56 + m_Enabled: 1
57 + m_EditorHideFlags: 0
58 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
59 + m_Name:
60 + m_EditorClassIdentifier:
61 + m_Material: {fileID: 0}
62 + m_Color: {r: 1, g: 1, b: 1, a: 0}
63 + m_RaycastTarget: 1
64 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
65 + m_Maskable: 1
66 + m_OnCullStateChanged:
67 + m_PersistentCalls:
68 + m_Calls: []
69 + m_Sprite: {fileID: 0}
70 + m_Type: 0
71 + m_PreserveAspect: 0
72 + m_FillCenter: 1
73 + m_FillMethod: 4
74 + m_FillAmount: 1
75 + m_FillClockwise: 1
76 + m_FillOrigin: 0
77 + m_UseSpriteMesh: 0
78 + m_PixelsPerUnitMultiplier: 1
79 +--- !u!95 &5010708613265061353
80 +Animator:
81 + serializedVersion: 3
82 + m_ObjectHideFlags: 0
83 + m_CorrespondingSourceObject: {fileID: 0}
84 + m_PrefabInstance: {fileID: 0}
85 + m_PrefabAsset: {fileID: 0}
86 + m_GameObject: {fileID: 5010708613265061355}
87 + m_Enabled: 1
88 + m_Avatar: {fileID: 0}
89 + m_Controller: {fileID: 9100000, guid: dca5aa70a8e1c7b49ae4cdcb4499b2eb, type: 2}
90 + m_CullingMode: 0
91 + m_UpdateMode: 0
92 + m_ApplyRootMotion: 0
93 + m_LinearVelocityBlending: 0
94 + m_WarningMessage:
95 + m_HasTransformHierarchy: 1
96 + m_AllowConstantClipSamplingOptimization: 1
97 + m_KeepAnimatorControllerStateOnDisable: 0
1 +fileFormatVersion: 2
2 +guid: b95381635c8318844a98efdddbca235d
3 +PrefabImporter:
4 + externalObjects: {}
5 + userData:
6 + assetBundleName:
7 + assetBundleVariant:
This diff is collapsed. Click to expand it.
1 +fileFormatVersion: 2
2 +guid: 58719f614a1384f408b5a5b9b286077c
3 +PrefabImporter:
4 + externalObjects: {}
5 + userData:
6 + assetBundleName:
7 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!21 &2100000
4 +Material:
5 + serializedVersion: 6
6 + m_ObjectHideFlags: 0
7 + m_CorrespondingSourceObject: {fileID: 0}
8 + m_PrefabInstance: {fileID: 0}
9 + m_PrefabAsset: {fileID: 0}
10 + m_Name: New Material
11 + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12 + m_ShaderKeywords:
13 + m_LightmapFlags: 4
14 + m_EnableInstancingVariants: 0
15 + m_DoubleSidedGI: 0
16 + m_CustomRenderQueue: -1
17 + stringTagMap: {}
18 + disabledShaderPasses: []
19 + m_SavedProperties:
20 + serializedVersion: 3
21 + m_TexEnvs:
22 + - _BumpMap:
23 + m_Texture: {fileID: 0}
24 + m_Scale: {x: 1, y: 1}
25 + m_Offset: {x: 0, y: 0}
26 + - _DetailAlbedoMap:
27 + m_Texture: {fileID: 0}
28 + m_Scale: {x: 1, y: 1}
29 + m_Offset: {x: 0, y: 0}
30 + - _DetailMask:
31 + m_Texture: {fileID: 0}
32 + m_Scale: {x: 1, y: 1}
33 + m_Offset: {x: 0, y: 0}
34 + - _DetailNormalMap:
35 + m_Texture: {fileID: 0}
36 + m_Scale: {x: 1, y: 1}
37 + m_Offset: {x: 0, y: 0}
38 + - _EmissionMap:
39 + m_Texture: {fileID: 0}
40 + m_Scale: {x: 1, y: 1}
41 + m_Offset: {x: 0, y: 0}
42 + - _MainTex:
43 + m_Texture: {fileID: 2800000, guid: 66209c4fe8c95784ebbce81894938f75, type: 3}
44 + m_Scale: {x: 1, y: 1}
45 + m_Offset: {x: 0, y: 0}
46 + - _MetallicGlossMap:
47 + m_Texture: {fileID: 0}
48 + m_Scale: {x: 1, y: 1}
49 + m_Offset: {x: 0, y: 0}
50 + - _OcclusionMap:
51 + m_Texture: {fileID: 0}
52 + m_Scale: {x: 1, y: 1}
53 + m_Offset: {x: 0, y: 0}
54 + - _ParallaxMap:
55 + m_Texture: {fileID: 0}
56 + m_Scale: {x: 1, y: 1}
57 + m_Offset: {x: 0, y: 0}
58 + m_Floats:
59 + - _BumpScale: 1
60 + - _Cutoff: 0.5
61 + - _DetailNormalMapScale: 1
62 + - _DstBlend: 0
63 + - _GlossMapScale: 1
64 + - _Glossiness: 0.202
65 + - _GlossyReflections: 1
66 + - _Metallic: 0.046
67 + - _Mode: 0
68 + - _OcclusionStrength: 1
69 + - _Parallax: 0.02
70 + - _SmoothnessTextureChannel: 0
71 + - _SpecularHighlights: 1
72 + - _SrcBlend: 1
73 + - _UVSec: 0
74 + - _ZWrite: 1
75 + m_Colors:
76 + - _Color: {r: 0.122641504, g: 0.10426489, b: 0.030660376, a: 1}
77 + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
78 + m_BuildTextureStacks: []
1 +fileFormatVersion: 2
2 +guid: dfebef2927c5c6f48836a21aaa0a3fce
3 +NativeFormatImporter:
4 + externalObjects: {}
5 + mainObjectFileID: 2100000
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 66209c4fe8c95784ebbce81894938f75
3 +TextureImporter:
4 + internalIDToNameTable: []
5 + externalObjects: {}
6 + serializedVersion: 11
7 + mipmaps:
8 + mipMapMode: 0
9 + enableMipMap: 1
10 + sRGBTexture: 1
11 + linearTexture: 0
12 + fadeOut: 0
13 + borderMipMap: 0
14 + mipMapsPreserveCoverage: 0
15 + alphaTestReferenceValue: 0.5
16 + mipMapFadeDistanceStart: 1
17 + mipMapFadeDistanceEnd: 3
18 + bumpmap:
19 + convertToNormalMap: 0
20 + externalNormalMap: 0
21 + heightScale: 0.25
22 + normalMapFilter: 0
23 + isReadable: 0
24 + streamingMipmaps: 0
25 + streamingMipmapsPriority: 0
26 + vTOnly: 0
27 + grayScaleToAlpha: 0
28 + generateCubemap: 6
29 + cubemapConvolution: 0
30 + seamlessCubemap: 0
31 + textureFormat: 1
32 + maxTextureSize: 2048
33 + textureSettings:
34 + serializedVersion: 2
35 + filterMode: -1
36 + aniso: -1
37 + mipBias: -100
38 + wrapU: -1
39 + wrapV: -1
40 + wrapW: -1
41 + nPOTScale: 1
42 + lightmap: 0
43 + compressionQuality: 50
44 + spriteMode: 0
45 + spriteExtrude: 1
46 + spriteMeshType: 1
47 + alignment: 0
48 + spritePivot: {x: 0.5, y: 0.5}
49 + spritePixelsToUnits: 100
50 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
51 + spriteGenerateFallbackPhysicsShape: 1
52 + alphaUsage: 1
53 + alphaIsTransparency: 0
54 + spriteTessellationDetail: -1
55 + textureType: 0
56 + textureShape: 1
57 + singleChannelComponent: 0
58 + flipbookRows: 1
59 + flipbookColumns: 1
60 + maxTextureSizeSet: 0
61 + compressionQualitySet: 0
62 + textureFormatSet: 0
63 + ignorePngGamma: 0
64 + applyGammaDecoding: 0
65 + platformSettings:
66 + - serializedVersion: 3
67 + buildTarget: DefaultTexturePlatform
68 + maxTextureSize: 2048
69 + resizeAlgorithm: 0
70 + textureFormat: -1
71 + textureCompression: 1
72 + compressionQuality: 50
73 + crunchedCompression: 0
74 + allowsAlphaSplitting: 0
75 + overridden: 0
76 + androidETC2FallbackOverride: 0
77 + forceMaximumCompressionQuality_BC6H_BC7: 0
78 + spriteSheet:
79 + serializedVersion: 2
80 + sprites: []
81 + outline: []
82 + physicsShape: []
83 + bones: []
84 + spriteID:
85 + internalID: 0
86 + vertices: []
87 + indices:
88 + edges: []
89 + weights: []
90 + secondaryTextures: []
91 + spritePackingTag:
92 + pSDRemoveMatte: 0
93 + pSDShowRemoveMatteOption: 0
94 + userData:
95 + assetBundleName:
96 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 6a811edec640b7649bdda50565a08111
3 +TextureImporter:
4 + internalIDToNameTable: []
5 + externalObjects: {}
6 + serializedVersion: 11
7 + mipmaps:
8 + mipMapMode: 0
9 + enableMipMap: 1
10 + sRGBTexture: 1
11 + linearTexture: 0
12 + fadeOut: 0
13 + borderMipMap: 0
14 + mipMapsPreserveCoverage: 0
15 + alphaTestReferenceValue: 0.5
16 + mipMapFadeDistanceStart: 1
17 + mipMapFadeDistanceEnd: 3
18 + bumpmap:
19 + convertToNormalMap: 0
20 + externalNormalMap: 0
21 + heightScale: 0.25
22 + normalMapFilter: 0
23 + isReadable: 0
24 + streamingMipmaps: 0
25 + streamingMipmapsPriority: 0
26 + vTOnly: 0
27 + grayScaleToAlpha: 0
28 + generateCubemap: 6
29 + cubemapConvolution: 0
30 + seamlessCubemap: 0
31 + textureFormat: 1
32 + maxTextureSize: 2048
33 + textureSettings:
34 + serializedVersion: 2
35 + filterMode: -1
36 + aniso: -1
37 + mipBias: -100
38 + wrapU: -1
39 + wrapV: -1
40 + wrapW: -1
41 + nPOTScale: 1
42 + lightmap: 0
43 + compressionQuality: 50
44 + spriteMode: 0
45 + spriteExtrude: 1
46 + spriteMeshType: 1
47 + alignment: 0
48 + spritePivot: {x: 0.5, y: 0.5}
49 + spritePixelsToUnits: 100
50 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
51 + spriteGenerateFallbackPhysicsShape: 1
52 + alphaUsage: 1
53 + alphaIsTransparency: 0
54 + spriteTessellationDetail: -1
55 + textureType: 0
56 + textureShape: 1
57 + singleChannelComponent: 0
58 + flipbookRows: 1
59 + flipbookColumns: 1
60 + maxTextureSizeSet: 0
61 + compressionQualitySet: 0
62 + textureFormatSet: 0
63 + ignorePngGamma: 0
64 + applyGammaDecoding: 0
65 + platformSettings:
66 + - serializedVersion: 3
67 + buildTarget: DefaultTexturePlatform
68 + maxTextureSize: 2048
69 + resizeAlgorithm: 0
70 + textureFormat: -1
71 + textureCompression: 1
72 + compressionQuality: 50
73 + crunchedCompression: 0
74 + allowsAlphaSplitting: 0
75 + overridden: 0
76 + androidETC2FallbackOverride: 0
77 + forceMaximumCompressionQuality_BC6H_BC7: 0
78 + spriteSheet:
79 + serializedVersion: 2
80 + sprites: []
81 + outline: []
82 + physicsShape: []
83 + bones: []
84 + spriteID:
85 + internalID: 0
86 + vertices: []
87 + indices:
88 + edges: []
89 + weights: []
90 + secondaryTextures: []
91 + spritePackingTag:
92 + pSDRemoveMatte: 0
93 + pSDShowRemoveMatteOption: 0
94 + userData:
95 + assetBundleName:
96 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 1ae4fdc264eac7e459403c37dbd326c7
3 +folderAsset: yes
4 +DefaultImporter:
5 + externalObjects: {}
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
This diff is collapsed. Click to expand it.
1 +fileFormatVersion: 2
2 +guid: 9fc0d4010bbf28b4594072e72b8655ab
3 +DefaultImporter:
4 + externalObjects: {}
5 + userData:
6 + assetBundleName:
7 + assetBundleVariant:
This diff is collapsed. Click to expand it.
1 +fileFormatVersion: 2
2 +guid: b9cec620cf40aea4f8efbb4b0f5251ac
3 +DefaultImporter:
4 + externalObjects: {}
5 + userData:
6 + assetBundleName:
7 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 452dfedaf3a85334881782ef9684c572
3 +folderAsset: yes
4 +DefaultImporter:
5 + externalObjects: {}
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 3845c32b87bd97646a4d3dbbdde441b0
3 +folderAsset: yes
4 +DefaultImporter:
5 + externalObjects: {}
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!114 &11400000
4 +MonoBehaviour:
5 + m_ObjectHideFlags: 0
6 + m_CorrespondingSourceObject: {fileID: 0}
7 + m_PrefabInstance: {fileID: 0}
8 + m_PrefabAsset: {fileID: 0}
9 + m_GameObject: {fileID: 0}
10 + m_Enabled: 1
11 + m_EditorHideFlags: 0
12 + m_Script: {fileID: 11500000, guid: 06042c85f885b4d1886f3ca5a1074eca, type: 3}
13 + m_Name: AR Core Loader
14 + m_EditorClassIdentifier:
1 +fileFormatVersion: 2
2 +guid: 8e2ab93e26769994da66290e545cb55b
3 +NativeFormatImporter:
4 + externalObjects: {}
5 + mainObjectFileID: 11400000
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: b7adbc4694ce37248b47d228100fd50c
3 +folderAsset: yes
4 +DefaultImporter:
5 + externalObjects: {}
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!114 &11400000
4 +MonoBehaviour:
5 + m_ObjectHideFlags: 0
6 + m_CorrespondingSourceObject: {fileID: 0}
7 + m_PrefabInstance: {fileID: 0}
8 + m_PrefabAsset: {fileID: 0}
9 + m_GameObject: {fileID: 0}
10 + m_Enabled: 1
11 + m_EditorHideFlags: 0
12 + m_Script: {fileID: 11500000, guid: 00cb13c61b2744fd786f9f969ce96149, type: 3}
13 + m_Name: AR Core Loader Settings
14 + m_EditorClassIdentifier:
1 +fileFormatVersion: 2
2 +guid: b3804a80d9a5d7a489a27bee84de90ff
3 +NativeFormatImporter:
4 + externalObjects: {}
5 + mainObjectFileID: 11400000
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!114 &11400000
4 +MonoBehaviour:
5 + m_ObjectHideFlags: 0
6 + m_CorrespondingSourceObject: {fileID: 0}
7 + m_PrefabInstance: {fileID: 0}
8 + m_PrefabAsset: {fileID: 0}
9 + m_GameObject: {fileID: 0}
10 + m_Enabled: 1
11 + m_EditorHideFlags: 0
12 + m_Script: {fileID: 11500000, guid: e9858e958182f2e4f8dea1aa0a92e5ad, type: 3}
13 + m_Name: AR Core Settings
14 + m_EditorClassIdentifier:
15 + m_Requirement: 0
16 + m_IgnoreGradleVersion: 0
1 +fileFormatVersion: 2
2 +guid: df8054d5b1dfccc40859e1624814f3d6
3 +NativeFormatImporter:
4 + externalObjects: {}
5 + mainObjectFileID: 11400000
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!114 &-3533713997906389791
4 +MonoBehaviour:
5 + m_ObjectHideFlags: 0
6 + m_CorrespondingSourceObject: {fileID: 0}
7 + m_PrefabInstance: {fileID: 0}
8 + m_PrefabAsset: {fileID: 0}
9 + m_GameObject: {fileID: 0}
10 + m_Enabled: 1
11 + m_EditorHideFlags: 0
12 + m_Script: {fileID: 11500000, guid: d236b7d11115f2143951f1e14045df39, type: 3}
13 + m_Name: Android Settings
14 + m_EditorClassIdentifier:
15 + m_LoaderManagerInstance: {fileID: 8932717751268920002}
16 + m_InitManagerOnStart: 1
17 +--- !u!114 &11400000
18 +MonoBehaviour:
19 + m_ObjectHideFlags: 0
20 + m_CorrespondingSourceObject: {fileID: 0}
21 + m_PrefabInstance: {fileID: 0}
22 + m_PrefabAsset: {fileID: 0}
23 + m_GameObject: {fileID: 0}
24 + m_Enabled: 1
25 + m_EditorHideFlags: 0
26 + m_Script: {fileID: 11500000, guid: d2dc886499c26824283350fa532d087d, type: 3}
27 + m_Name: XRGeneralSettings
28 + m_EditorClassIdentifier:
29 + Keys: 07000000
30 + Values:
31 + - {fileID: -3533713997906389791}
32 +--- !u!114 &8932717751268920002
33 +MonoBehaviour:
34 + m_ObjectHideFlags: 0
35 + m_CorrespondingSourceObject: {fileID: 0}
36 + m_PrefabInstance: {fileID: 0}
37 + m_PrefabAsset: {fileID: 0}
38 + m_GameObject: {fileID: 0}
39 + m_Enabled: 1
40 + m_EditorHideFlags: 0
41 + m_Script: {fileID: 11500000, guid: f4c3631f5e58749a59194e0cf6baf6d5, type: 3}
42 + m_Name: Android Providers
43 + m_EditorClassIdentifier:
44 + m_RequiresSettingsUpdate: 0
45 + m_AutomaticLoading: 0
46 + m_AutomaticRunning: 0
47 + m_Loaders:
48 + - {fileID: 11400000, guid: 8e2ab93e26769994da66290e545cb55b, type: 2}
1 +fileFormatVersion: 2
2 +guid: 99e61e09486d54148ae740c3679ade87
3 +NativeFormatImporter:
4 + externalObjects: {}
5 + mainObjectFileID: 11400000
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 34b3def5fd224744c909f70ee1e528b7
3 +TextureImporter:
4 + internalIDToNameTable: []
5 + externalObjects: {}
6 + serializedVersion: 11
7 + mipmaps:
8 + mipMapMode: 0
9 + enableMipMap: 0
10 + sRGBTexture: 1
11 + linearTexture: 0
12 + fadeOut: 0
13 + borderMipMap: 0
14 + mipMapsPreserveCoverage: 0
15 + alphaTestReferenceValue: 0.5
16 + mipMapFadeDistanceStart: 1
17 + mipMapFadeDistanceEnd: 3
18 + bumpmap:
19 + convertToNormalMap: 0
20 + externalNormalMap: 0
21 + heightScale: 0.25
22 + normalMapFilter: 0
23 + isReadable: 0
24 + streamingMipmaps: 0
25 + streamingMipmapsPriority: 0
26 + vTOnly: 0
27 + grayScaleToAlpha: 0
28 + generateCubemap: 6
29 + cubemapConvolution: 0
30 + seamlessCubemap: 0
31 + textureFormat: 1
32 + maxTextureSize: 2048
33 + textureSettings:
34 + serializedVersion: 2
35 + filterMode: -1
36 + aniso: -1
37 + mipBias: -100
38 + wrapU: 1
39 + wrapV: 1
40 + wrapW: -1
41 + nPOTScale: 0
42 + lightmap: 0
43 + compressionQuality: 50
44 + spriteMode: 1
45 + spriteExtrude: 1
46 + spriteMeshType: 1
47 + alignment: 0
48 + spritePivot: {x: 0.5, y: 0.5}
49 + spritePixelsToUnits: 100
50 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
51 + spriteGenerateFallbackPhysicsShape: 1
52 + alphaUsage: 1
53 + alphaIsTransparency: 1
54 + spriteTessellationDetail: -1
55 + textureType: 8
56 + textureShape: 1
57 + singleChannelComponent: 0
58 + flipbookRows: 1
59 + flipbookColumns: 1
60 + maxTextureSizeSet: 0
61 + compressionQualitySet: 0
62 + textureFormatSet: 0
63 + ignorePngGamma: 0
64 + applyGammaDecoding: 0
65 + platformSettings:
66 + - serializedVersion: 3
67 + buildTarget: DefaultTexturePlatform
68 + maxTextureSize: 2048
69 + resizeAlgorithm: 0
70 + textureFormat: -1
71 + textureCompression: 1
72 + compressionQuality: 50
73 + crunchedCompression: 0
74 + allowsAlphaSplitting: 0
75 + overridden: 0
76 + androidETC2FallbackOverride: 0
77 + forceMaximumCompressionQuality_BC6H_BC7: 0
78 + - serializedVersion: 3
79 + buildTarget: Standalone
80 + maxTextureSize: 2048
81 + resizeAlgorithm: 0
82 + textureFormat: -1
83 + textureCompression: 1
84 + compressionQuality: 50
85 + crunchedCompression: 0
86 + allowsAlphaSplitting: 0
87 + overridden: 0
88 + androidETC2FallbackOverride: 0
89 + forceMaximumCompressionQuality_BC6H_BC7: 0
90 + - serializedVersion: 3
91 + buildTarget: Android
92 + maxTextureSize: 2048
93 + resizeAlgorithm: 0
94 + textureFormat: -1
95 + textureCompression: 1
96 + compressionQuality: 50
97 + crunchedCompression: 0
98 + allowsAlphaSplitting: 0
99 + overridden: 0
100 + androidETC2FallbackOverride: 0
101 + forceMaximumCompressionQuality_BC6H_BC7: 0
102 + - serializedVersion: 3
103 + buildTarget: WebGL
104 + maxTextureSize: 2048
105 + resizeAlgorithm: 0
106 + textureFormat: -1
107 + textureCompression: 1
108 + compressionQuality: 50
109 + crunchedCompression: 0
110 + allowsAlphaSplitting: 0
111 + overridden: 0
112 + androidETC2FallbackOverride: 0
113 + forceMaximumCompressionQuality_BC6H_BC7: 0
114 + spriteSheet:
115 + serializedVersion: 2
116 + sprites: []
117 + outline: []
118 + physicsShape: []
119 + bones: []
120 + spriteID: 5e97eb03825dee720800000000000000
121 + internalID: 0
122 + vertices: []
123 + indices:
124 + edges: []
125 + weights: []
126 + secondaryTextures: []
127 + spritePackingTag:
128 + pSDRemoveMatte: 0
129 + pSDShowRemoveMatteOption: 0
130 + userData:
131 + assetBundleName:
132 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: f4615122f25845d40bfeb937c13b8126
3 +folderAsset: yes
4 +DefaultImporter:
5 + externalObjects: {}
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +using UnityEngine.XR.ARFoundation;
5 +using UnityEngine.XR.ARSubsystems;
6 +
7 +public class ARPlaceOnPlane : MonoBehaviour
8 +{
9 +
10 + public ARRaycastManager arRaycaster;
11 + public GameObject placeObject;
12 + GameObject spawnObject;
13 + bool isSetted = false;
14 +
15 + void Update()
16 + {
17 + //UpdateCenterObject();
18 + if (!isSetted)
19 + {
20 + PlaceObjectByTouch();
21 + }
22 + }
23 +
24 + private void PlaceObjectByTouch() {
25 + if (Input.touchCount > 0) {
26 + Touch touch = Input.GetTouch(0); //터치값 얻어오기
27 +
28 + List<ARRaycastHit> hits = new List<ARRaycastHit>();
29 + if (arRaycaster.Raycast(touch.position, hits, TrackableType.Planes)) {
30 + Pose hitPose = hits[0].pose;
31 +
32 + if (!spawnObject) // 아직 오브젝트 미생성됐으면
33 + {
34 + spawnObject = Instantiate(placeObject, hitPose.position, hitPose.rotation); // 생성하고
35 + isSetted = true; // update문에서 바닥탐지/생성함수를 정지함
36 + }
37 + else {
38 + spawnObject.transform.position = hitPose.position;
39 + spawnObject.transform.rotation = hitPose.rotation;
40 + }
41 + }
42 + }
43 + }
44 +}
1 +fileFormatVersion: 2
2 +guid: 15670efff7d349f4d81e61299127b32a
3 +MonoImporter:
4 + externalObjects: {}
5 + serializedVersion: 2
6 + defaultReferences: []
7 + executionOrder: 0
8 + icon: {instanceID: 0}
9 + userData:
10 + assetBundleName:
11 + assetBundleVariant:
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +using UnityEngine.XR.ARFoundation;
5 +using UnityEngine.XR.ARSubsystems;
6 +
7 +public class CreateManager : MonoBehaviour
8 +{
9 +
10 + public ARRaycastManager raycastMgr;
11 + public ARPlane _ARPlane;
12 + public GameObject placeObject;
13 + private List<ARRaycastHit> hits = new List<ARRaycastHit>();
14 + private List<GameObject> obj = new List<GameObject>();
15 + bool created;
16 +
17 + public bool gameoverTimerActivate;
18 +
19 + /// <summary>
20 + /// Game Over Script here
21 + /// </summary>
22 +
23 + private float deadTime;
24 + public GameObject gOverPanel;
25 +
26 + // Start is called before the first frame update
27 + void Start()
28 + {
29 + placeObject.SetActive(false);
30 + deadTime = 0;
31 + created = false;
32 + gOverPanel.SetActive(false);
33 +
34 + }
35 +
36 + // Update is called once per frame
37 + void Update()
38 + {
39 + if(created == false)
40 + {
41 + UpdateCenterObject();
42 + }
43 + if (placeObject.activeSelf == true) // 활성화 상태면
44 + {
45 + deadTime += Time.deltaTime; // 1초씩 타임 재기
46 + }
47 +
48 + checkDead();
49 + }
50 +
51 + void UpdateCenterObject()
52 + {
53 + Vector3 screenCenter = Camera.current.ViewportToScreenPoint(new Vector3(0.5f, 0.5f));
54 + raycastMgr.Raycast(screenCenter, hits, TrackableType.PlaneWithinPolygon);
55 + if (hits.Count > 0)
56 + {
57 + Pose placementPose = hits[0].pose;
58 + placeObject.SetActive(true);
59 + placeObject.transform.SetPositionAndRotation(placementPose.position, placementPose.rotation);
60 + created = true;
61 + }
62 +
63 + }
64 +
65 + void checkDead()
66 + {
67 +
68 + if (gameoverTimerActivate)
69 + {
70 + if (deadTime >= 5f) // 타임이 10이 되면
71 + {
72 + Time.timeScale = 0; // 일시정지시키고
73 + gOverPanel.SetActive(true); // gameOver 패널을 활성화
74 + //GameOver 텍스트 출력
75 + }
76 + }
77 +
78 + }
79 +
80 +}
1 +fileFormatVersion: 2
2 +guid: e2482c1d576dc9f468c6f6f47cad48ba
3 +MonoImporter:
4 + externalObjects: {}
5 + serializedVersion: 2
6 + defaultReferences: []
7 + executionOrder: 0
8 + icon: {instanceID: 0}
9 + userData:
10 + assetBundleName:
11 + assetBundleVariant:
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +using System.IO;
5 +public class GetPicture : MonoBehaviour
6 +{
7 +#if !UNITY_EDITOR && UNITY_ANDROID
8 + private static AndroidJavaClass m_ajc = null;
9 + private static AndroidJavaClass AJC
10 + {
11 + get
12 + {
13 + if (m_ajc == null)
14 + m_ajc = new AndroidJavaClass("com.yasirkula.unity.NativeGallery");
15 +
16 + return m_ajc;
17 + }
18 + }
19 +#endif
20 +
21 + // 다른 스크립트에서 GetPicture.GetLastPicturePath()로 호출
22 + public static string GetLastPicturePath()
23 + {
24 + // 디바이스마다 다른 저장경로
25 + string saveDir;
26 +#if !UNITY_EDITOR && UNITY_ANDROID
27 + saveDir = AJC.CallStatic<string>( "GetMediaPath", "Shine Bright" );
28 +#else
29 + saveDir = Application.persistentDataPath;
30 +#endif
31 + // 저장경로에서 PNG파일 모두 검색
32 + string[] files = Directory.GetFiles(saveDir, "*.png");
33 + // 만약 PNG파일이 있다면, 마지막 파일을 반환
34 + if (files.Length > 0)
35 + {
36 + return files[files.Length - 1];
37 + }
38 + // 없다면 null을
39 + return null;
40 + }
41 +}
1 +fileFormatVersion: 2
2 +guid: a5767f7858c3d944895e6460c7810304
3 +MonoImporter:
4 + externalObjects: {}
5 + serializedVersion: 2
6 + defaultReferences: []
7 + executionOrder: 0
8 + icon: {instanceID: 0}
9 + userData:
10 + assetBundleName:
11 + assetBundleVariant:
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +
5 +public class Ghost
6 +{
7 + string name;
8 + int number;
9 + string description;
10 + bool isActivated;
11 + bool iscaptured;
12 + public static int timeState;
13 + // 씬당 귀신이 하나일거라고 가정하여 변수 돌려쓰기를 위해 static으로 선언했습니다
14 +
15 + public string getName() {
16 +
17 + return name;
18 + }
19 + public int getNumber() {
20 + return number;
21 + }
22 + public string getDescription() {
23 + return description;
24 + }
25 + public bool getActivatedStatus() {
26 + return isActivated;
27 + }
28 + public bool getCaptureStatus() {
29 + return iscaptured;
30 + }
31 + public void setTime(int count) {
32 + timeState = count;
33 + }
34 + public void setName(string _name) {
35 + name = _name;
36 + }
37 + public void setNumber(int _number) {
38 + number = _number;
39 + }
40 + public void setActivatedStatus(bool value) {
41 + isActivated = value;
42 + }
43 + public void setCapturedStatus(bool value) {
44 + iscaptured = value;
45 + }
46 +
47 +
48 +}
1 +fileFormatVersion: 2
2 +guid: fdeda7b2b335cee4dac24e44a6d51ae1
3 +MonoImporter:
4 + externalObjects: {}
5 + serializedVersion: 2
6 + defaultReferences: []
7 + executionOrder: 0
8 + icon: {instanceID: 0}
9 + userData:
10 + assetBundleName:
11 + assetBundleVariant:
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +using UnityEngine.UI;
5 +
6 +public class Hunting : MonoBehaviour
7 +{
8 +
9 + RaycastHit hit;
10 + public Camera cam;
11 + public Text text;
12 + bool staringGhost = false;
13 + public static bool isCaptured = false;
14 +
15 +
16 + GameObject ghost;
17 + bool isGhostInfoSaved = false;
18 +
19 + void Start()
20 + {
21 +
22 + }
23 +
24 +
25 + // 레이캐스트로 오브젝트를 감지한다. (콜라이더 조절 필요)
26 + // 감지가 가능해지면 버튼을 클릭하여 레이캐스트 감지를 통해 태그 확인 후 오브젝트의 정보를 얻는다.
27 + // 오브젝트의 모든 정보를 얻었다면 소멸시키고, 퇴치 유령 목록에 추가한다.
28 +
29 + void Update()
30 + {
31 + hitObject();
32 + if (staringGhost)
33 + {
34 + if (isCaptured)
35 + {
36 + //고스트라는 객체를 새로 만들어서, 해당 정보를 스테이지에서 저장하고 있는다.
37 + //스테이지에서 저장된 게임 오브젝트를 Ghost라고 하자.
38 +
39 + ghost.SetActive(false);
40 + isCaptured = false;
41 + }
42 + }
43 +
44 + }
45 +
46 + void hitObject() {
47 +
48 + Vector3 screenCenter = Camera.current.ViewportToScreenPoint(new Vector3(0.5f, 0.5f));
49 + Ray ray = cam.ScreenPointToRay(screenCenter);
50 + if (Physics.Raycast(ray, out hit))
51 + {
52 +// text.text = hit.collider.gameObject.name;
53 + if (hit.collider.gameObject.tag == "Ghost") {
54 + text.text = "유령";
55 + staringGhost = true;
56 + if (!isGhostInfoSaved) {
57 + ghost = hit.collider.gameObject;
58 + isGhostInfoSaved = true;
59 + }
60 +
61 + }
62 + }
63 + else {
64 + text.text = "아무것도없다";
65 + staringGhost = false;
66 + }
67 + }
68 +}
1 +fileFormatVersion: 2
2 +guid: f8012c0ced4fa144b827e0fd441ca527
3 +MonoImporter:
4 + externalObjects: {}
5 + serializedVersion: 2
6 + defaultReferences: []
7 + executionOrder: 0
8 + icon: {instanceID: 0}
9 + userData:
10 + assetBundleName:
11 + assetBundleVariant:
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +using UnityEngine.SceneManagement;
5 +
6 +public class SceneManagement : MonoBehaviour
7 +{
8 + // Start is called before the first frame update
9 + void Start()
10 + {
11 +
12 + }
13 +
14 + public void goToARScene() {
15 + SceneManager.LoadScene(1);
16 +
17 + }
18 +
19 + // Update is called once per frame
20 + void Update()
21 + {
22 +
23 + }
24 +}
1 +fileFormatVersion: 2
2 +guid: 2f84027d7c6a39247899ca8bd8491d5f
3 +MonoImporter:
4 + externalObjects: {}
5 + serializedVersion: 2
6 + defaultReferences: []
7 + executionOrder: 0
8 + icon: {instanceID: 0}
9 + userData:
10 + assetBundleName:
11 + assetBundleVariant:
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +using System.IO;
5 +using UnityEngine.UI;
6 +
7 +public class Screenshot : MonoBehaviour
8 +{
9 + public GameObject blink; // 사진 찍을 때 깜빡일 것
10 + //public GameObject shareButtons; // 공유 버튼
11 +
12 + bool isCoroutinePlaying; // 코루틴 중복방지
13 +
14 + // 파일 불러올 때 필요
15 + string albumName = "ARHorrorGame"; // 생성될 앨범의 이름
16 + [SerializeField]
17 + GameObject panel; // 찍은 사진이 뜰 패널
18 +
19 +
20 + // 캡쳐 버튼을 누르면 호출
21 + public void Capture_Button()
22 + {
23 + // 중복방지 bool
24 + if (!isCoroutinePlaying)
25 + {
26 + StartCoroutine("captureScreenshot");
27 + }
28 + }
29 +
30 + IEnumerator captureScreenshot()
31 + {
32 + isCoroutinePlaying = true;
33 +
34 + // UI 없앤다...
35 +
36 + yield return new WaitForEndOfFrame();
37 +
38 + // 스크린샷 + 갤러리갱신
39 + ScreenshotAndGallery();
40 +
41 + yield return new WaitForEndOfFrame();
42 +
43 + // 블링크
44 + BlinkUI();
45 +
46 + // 셔터 사운드 넣기...
47 +
48 + yield return new WaitForEndOfFrame();
49 +
50 + // UI 다시 나온다...
51 +
52 + yield return new WaitForSecondsRealtime(0.3f);
53 +
54 + // 찍은 사진이 등장
55 + GetPirctureAndShowIt();
56 +
57 + isCoroutinePlaying = false;
58 + }
59 +
60 + // 흰색 블링크 생성
61 + void BlinkUI()
62 + {
63 + GameObject b = Instantiate(blink);
64 + b.transform.SetParent(transform);
65 + b.transform.localPosition = new Vector3(0, 0, 0);
66 + b.transform.localScale = new Vector3(1, 1, 1);
67 + }
68 +
69 + // 스크린샷 찍고 갤러리에 갱신
70 + public void ScreenshotAndGallery()
71 + {
72 + // 스크린샷
73 + Texture2D ss = new Texture2D(Screen.width, Screen.height, TextureFormat.RGB24, false);
74 + ss.ReadPixels(new Rect(0, 0, Screen.width, Screen.height), 0, 0);
75 + ss.Apply();
76 +
77 + // 갤러리갱신
78 + Debug.Log("" + NativeGallery.SaveImageToGallery(ss, albumName,
79 + "Screenshot_" + System.DateTime.Now.ToString("dd-MM-yyyy-HH-mm-ss") + "{0}.png"));
80 +
81 + // To avoid memory leaks.
82 + // 복사 완료됐기 때문에 원본 메모리 삭제
83 + Destroy(ss);
84 +
85 + }
86 + // 찍은 사진을 Panel에 보여준다.
87 + void GetPirctureAndShowIt()
88 + {
89 + string pathToFile = GetPicture.GetLastPicturePath();
90 + if (pathToFile == null)
91 + {
92 + return;
93 + }
94 + Texture2D texture = GetScreenshotImage(pathToFile);
95 + Sprite sp = Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(0.5f, 0.5f));
96 + panel.SetActive(true);
97 + //shareButtons.SetActive(true);
98 + panel.GetComponent<Image>().sprite = sp;
99 + }
100 + // 찍은 사진을 불러온다.
101 + Texture2D GetScreenshotImage(string filePath)
102 + {
103 + Texture2D texture = null;
104 + byte[] fileBytes;
105 + if (File.Exists(filePath))
106 + {
107 + fileBytes = File.ReadAllBytes(filePath);
108 + texture = new Texture2D(2, 2, TextureFormat.RGB24, false);
109 + texture.LoadImage(fileBytes);
110 + }
111 + return texture;
112 + }
113 +}
1 +fileFormatVersion: 2
2 +guid: e0baf652ad5cdfa42a7ba9e658e97921
3 +MonoImporter:
4 + externalObjects: {}
5 + serializedVersion: 2
6 + defaultReferences: []
7 + executionOrder: 0
8 + icon: {instanceID: 0}
9 + userData:
10 + assetBundleName:
11 + assetBundleVariant:
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +using UnityEngine.UI;
5 +
6 +
7 +public class TakePicture : MonoBehaviour
8 +{
9 + public GameObject txt;
10 + bool isActivated;
11 +
12 + public GameObject flashImage;
13 + Animator flashImageAni;
14 +
15 + public GameObject screenUI;
16 + public GameObject screenShotEvnet;
17 +
18 + void Start()
19 + {
20 + isActivated = false;
21 + flashImageAni = flashImage.GetComponentInChildren<Animator>();
22 + }
23 + public void buttonClick() {
24 + if (isActivated) {
25 + txt.SetActive(false);
26 + isActivated = false;
27 + Hunting.isCaptured = true;
28 +
29 + screenUI.SetActive(false);
30 + screenShotEvnet.GetComponentInChildren<Screenshot>().ScreenshotAndGallery(); //
31 +
32 + flashImageAni.SetTrigger("capture");
33 + screenUI.SetActive(true);
34 + }
35 + else
36 + {
37 +
38 + txt.SetActive(true);
39 + isActivated = true;
40 + }
41 + }
42 +
43 +}
1 +fileFormatVersion: 2
2 +guid: a2cd3cd1beeac2e48a52df8b634c6bf3
3 +MonoImporter:
4 + externalObjects: {}
5 + serializedVersion: 2
6 + defaultReferences: []
7 + executionOrder: 0
8 + icon: {instanceID: 0}
9 + userData:
10 + assetBundleName:
11 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!91 &9100000
4 +AnimatorController:
5 + m_ObjectHideFlags: 0
6 + m_CorrespondingSourceObject: {fileID: 0}
7 + m_PrefabInstance: {fileID: 0}
8 + m_PrefabAsset: {fileID: 0}
9 + m_Name: balloon1
10 + serializedVersion: 5
11 + m_AnimatorParameters: []
12 + m_AnimatorLayers:
13 + - serializedVersion: 5
14 + m_Name: Base Layer
15 + m_StateMachine: {fileID: 8124650137581567221}
16 + m_Mask: {fileID: 0}
17 + m_Motions: []
18 + m_Behaviours: []
19 + m_BlendingMode: 0
20 + m_SyncedLayerIndex: -1
21 + m_DefaultWeight: 0
22 + m_IKPass: 0
23 + m_SyncedLayerAffectsTiming: 0
24 + m_Controller: {fileID: 9100000}
25 +--- !u!1102 &8095014421401256785
26 +AnimatorState:
27 + serializedVersion: 6
28 + m_ObjectHideFlags: 1
29 + m_CorrespondingSourceObject: {fileID: 0}
30 + m_PrefabInstance: {fileID: 0}
31 + m_PrefabAsset: {fileID: 0}
32 + m_Name: balloon_1
33 + m_Speed: 1
34 + m_CycleOffset: 0
35 + m_Transitions: []
36 + m_StateMachineBehaviours: []
37 + m_Position: {x: 50, y: 50, z: 0}
38 + m_IKOnFeet: 0
39 + m_WriteDefaultValues: 1
40 + m_Mirror: 0
41 + m_SpeedParameterActive: 0
42 + m_MirrorParameterActive: 0
43 + m_CycleOffsetParameterActive: 0
44 + m_TimeParameterActive: 0
45 + m_Motion: {fileID: 7400000, guid: 1dbf1541553773b4e8190b3f5df04ec6, type: 2}
46 + m_Tag:
47 + m_SpeedParameter:
48 + m_MirrorParameter:
49 + m_CycleOffsetParameter:
50 + m_TimeParameter:
51 +--- !u!1107 &8124650137581567221
52 +AnimatorStateMachine:
53 + serializedVersion: 6
54 + m_ObjectHideFlags: 1
55 + m_CorrespondingSourceObject: {fileID: 0}
56 + m_PrefabInstance: {fileID: 0}
57 + m_PrefabAsset: {fileID: 0}
58 + m_Name: Base Layer
59 + m_ChildStates:
60 + - serializedVersion: 1
61 + m_State: {fileID: 8095014421401256785}
62 + m_Position: {x: 200, y: 0, z: 0}
63 + m_ChildStateMachines: []
64 + m_AnyStateTransitions: []
65 + m_EntryTransitions: []
66 + m_StateMachineTransitions: {}
67 + m_StateMachineBehaviours: []
68 + m_AnyStatePosition: {x: 50, y: 20, z: 0}
69 + m_EntryPosition: {x: 50, y: 120, z: 0}
70 + m_ExitPosition: {x: 800, y: 120, z: 0}
71 + m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
72 + m_DefaultState: {fileID: 8095014421401256785}
1 +fileFormatVersion: 2
2 +guid: 5bec4d08ef9391142aff290502896950
3 +NativeFormatImporter:
4 + externalObjects: {}
5 + mainObjectFileID: 9100000
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!1102 &-7319361969945201418
4 +AnimatorState:
5 + serializedVersion: 6
6 + m_ObjectHideFlags: 1
7 + m_CorrespondingSourceObject: {fileID: 0}
8 + m_PrefabInstance: {fileID: 0}
9 + m_PrefabAsset: {fileID: 0}
10 + m_Name: balloon_2
11 + m_Speed: 1
12 + m_CycleOffset: 0
13 + m_Transitions: []
14 + m_StateMachineBehaviours: []
15 + m_Position: {x: 50, y: 50, z: 0}
16 + m_IKOnFeet: 0
17 + m_WriteDefaultValues: 1
18 + m_Mirror: 0
19 + m_SpeedParameterActive: 0
20 + m_MirrorParameterActive: 0
21 + m_CycleOffsetParameterActive: 0
22 + m_TimeParameterActive: 0
23 + m_Motion: {fileID: 7400000, guid: a1e94da572daf354ba88a2a1aa833299, type: 2}
24 + m_Tag:
25 + m_SpeedParameter:
26 + m_MirrorParameter:
27 + m_CycleOffsetParameter:
28 + m_TimeParameter:
29 +--- !u!1107 &-4409635720718021344
30 +AnimatorStateMachine:
31 + serializedVersion: 6
32 + m_ObjectHideFlags: 1
33 + m_CorrespondingSourceObject: {fileID: 0}
34 + m_PrefabInstance: {fileID: 0}
35 + m_PrefabAsset: {fileID: 0}
36 + m_Name: Base Layer
37 + m_ChildStates:
38 + - serializedVersion: 1
39 + m_State: {fileID: -7319361969945201418}
40 + m_Position: {x: 200, y: 0, z: 0}
41 + m_ChildStateMachines: []
42 + m_AnyStateTransitions: []
43 + m_EntryTransitions: []
44 + m_StateMachineTransitions: {}
45 + m_StateMachineBehaviours: []
46 + m_AnyStatePosition: {x: 50, y: 20, z: 0}
47 + m_EntryPosition: {x: 50, y: 120, z: 0}
48 + m_ExitPosition: {x: 800, y: 120, z: 0}
49 + m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
50 + m_DefaultState: {fileID: -7319361969945201418}
51 +--- !u!91 &9100000
52 +AnimatorController:
53 + m_ObjectHideFlags: 0
54 + m_CorrespondingSourceObject: {fileID: 0}
55 + m_PrefabInstance: {fileID: 0}
56 + m_PrefabAsset: {fileID: 0}
57 + m_Name: balloon2
58 + serializedVersion: 5
59 + m_AnimatorParameters: []
60 + m_AnimatorLayers:
61 + - serializedVersion: 5
62 + m_Name: Base Layer
63 + m_StateMachine: {fileID: -4409635720718021344}
64 + m_Mask: {fileID: 0}
65 + m_Motions: []
66 + m_Behaviours: []
67 + m_BlendingMode: 0
68 + m_SyncedLayerIndex: -1
69 + m_DefaultWeight: 0
70 + m_IKPass: 0
71 + m_SyncedLayerAffectsTiming: 0
72 + m_Controller: {fileID: 9100000}
1 +fileFormatVersion: 2
2 +guid: af95d6dea145e964da4b7d9054f3006f
3 +NativeFormatImporter:
4 + externalObjects: {}
5 + mainObjectFileID: 9100000
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
No preview for this file type
No preview for this file type
This file is too large to display.
No preview for this file type