Showing
83 changed files
with
6637 additions
and
0 deletions
.gitignore
0 → 100644
1 | +/[Ll]ibrary/ | ||
2 | +/[Tt]emp/ | ||
3 | +/[Oo]bj/ | ||
4 | +/[Bb]uild/ | ||
5 | +/[Bb]uilds/ | ||
6 | +/Assets/AssetStoreTools* | ||
7 | + | ||
8 | +# Visual Studio 2015 cache directory | ||
9 | +/.vs/ | ||
10 | + | ||
11 | +# Autogenerated VS/MD/Consulo solution and project files | ||
12 | +ExportedObj/ | ||
13 | +.consulo/ | ||
14 | +*.csproj | ||
15 | +*.unityproj | ||
16 | +*.sln | ||
17 | +*.suo | ||
18 | +*.tmp | ||
19 | +*.user | ||
20 | +*.userprefs | ||
21 | +*.pidb | ||
22 | +*.booproj | ||
23 | +*.svd | ||
24 | +*.pdb | ||
25 | + | ||
26 | +# Unity3D generated meta files | ||
27 | +*.pidb.meta | ||
28 | + | ||
29 | +# Unity3D Generated File On Crash Reports | ||
30 | +sysinfo.txt | ||
31 | + | ||
32 | +# Builds | ||
33 | +*.apk | ||
34 | +*.unitypackage |
.idea/.idea.Flappy Bird/.idea/.name
0 → 100644
1 | +Flappy Bird | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<project version="4"> | ||
3 | + <component name="ContentModelStore"> | ||
4 | + <e p="$PROJECT_DIR$" t="IncludeRecursive"> | ||
5 | + <e p="Assets" t="Include"> | ||
6 | + <e p="Bird.cs" t="Include" /> | ||
7 | + <e p="ColumnPool.cs" t="Include" /> | ||
8 | + <e p="GameManager.cs" t="Include" /> | ||
9 | + <e p="RepeatingBackground.cs" t="Include" /> | ||
10 | + <e p="ScrollingObject.cs" t="Include" /> | ||
11 | + </e> | ||
12 | + <e p="Flappy Bird.csproj" t="IncludeRecursive" /> | ||
13 | + <e p="Flappy Bird.sln" t="IncludeFlat" /> | ||
14 | + <e p="packages" t="ExcludeRecursive" /> | ||
15 | + <e p="Temp/UnityVS_bin/Debug" t="ExcludeRecursive" /> | ||
16 | + <e p="Temp/UnityVS_obj/Debug" t="ExcludeRecursive" /> | ||
17 | + </e> | ||
18 | + <e p="$USER_HOME$/Library/Caches/Rider2017.3/resharper-host/local/Transient/ReSharperHost/v11/SolutionCaches/_Flappy Bird.1643123988.00" t="ExcludeRecursive" /> | ||
19 | + </component> | ||
20 | +</project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
.idea/.idea.Flappy Bird/.idea/modules.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<project version="4"> | ||
3 | + <component name="ProjectModuleManager"> | ||
4 | + <modules> | ||
5 | + <module fileurl="file://$PROJECT_DIR$/.idea/.idea.Flappy Bird/riderModule.iml" filepath="$PROJECT_DIR$/.idea/.idea.Flappy Bird/riderModule.iml" /> | ||
6 | + </modules> | ||
7 | + </component> | ||
8 | +</project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
.idea/.idea.Flappy Bird/.idea/workspace.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<project version="4"> | ||
3 | + <component name="ChangeListManager"> | ||
4 | + <list default="true" id="b09f7ad8-1acb-4a0d-9d55-49ff1fb32cfd" name="Default" comment="" /> | ||
5 | + <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> | ||
6 | + <option name="TRACKING_ENABLED" value="true" /> | ||
7 | + <option name="SHOW_DIALOG" value="false" /> | ||
8 | + <option name="HIGHLIGHT_CONFLICTS" value="true" /> | ||
9 | + <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> | ||
10 | + <option name="LAST_RESOLUTION" value="IGNORE" /> | ||
11 | + </component> | ||
12 | + <component name="FileEditorManager"> | ||
13 | + <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> | ||
14 | + <file leaf-file-name="BirdTest.cs" pinned="false" current-in-tab="true"> | ||
15 | + <entry file="file://$PROJECT_DIR$/Assets/Test Scripts/BirdTest.cs"> | ||
16 | + <provider selected="true" editor-type-id="text-editor"> | ||
17 | + <state relative-caret-position="660"> | ||
18 | + <caret line="44" column="2" lean-forward="false" selection-start-line="44" selection-start-column="2" selection-end-line="44" selection-end-column="2" /> | ||
19 | + <folding /> | ||
20 | + </state> | ||
21 | + </provider> | ||
22 | + </entry> | ||
23 | + </file> | ||
24 | + </leaf> | ||
25 | + </component> | ||
26 | + <component name="HighlightingSettingsPerFile"> | ||
27 | + <setting file="file://$PROJECT_DIR$/Assets/Test Scripts/BirdTest.cs" root0="SKIP_INSPECTION" /> | ||
28 | + </component> | ||
29 | + <component name="IdeDocumentHistory"> | ||
30 | + <option name="CHANGED_PATHS"> | ||
31 | + <list> | ||
32 | + <option value="$PROJECT_DIR$/Assets/Column.cs" /> | ||
33 | + <option value="$PROJECT_DIR$/Assets/ColumnPool.cs" /> | ||
34 | + <option value="$PROJECT_DIR$/Assets/ScrollingObject.cs" /> | ||
35 | + <option value="$PROJECT_DIR$/Assets/RepeatingBackground.cs" /> | ||
36 | + <option value="$PROJECT_DIR$/Assets/GameManager.cs" /> | ||
37 | + <option value="$PROJECT_DIR$/Assets/Bird.cs" /> | ||
38 | + <option value="$PROJECT_DIR$/Assets/Test Scripts/BirdTest.cs" /> | ||
39 | + </list> | ||
40 | + </option> | ||
41 | + </component> | ||
42 | + <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" /> | ||
43 | + <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" /> | ||
44 | + <component name="JsGulpfileManager"> | ||
45 | + <detection-done>true</detection-done> | ||
46 | + <sorting>DEFINITION_ORDER</sorting> | ||
47 | + </component> | ||
48 | + <component name="ProjectFrameBounds" extendedState="6"> | ||
49 | + <option name="x" value="28" /> | ||
50 | + <option name="y" value="23" /> | ||
51 | + <option name="width" value="1920" /> | ||
52 | + <option name="height" value="1057" /> | ||
53 | + </component> | ||
54 | + <component name="ProjectView"> | ||
55 | + <navigator currentView="SolutionExplorer" proportions="" version="1"> | ||
56 | + <flattenPackages /> | ||
57 | + <showMembers /> | ||
58 | + <showModules /> | ||
59 | + <showLibraryContents /> | ||
60 | + <hideEmptyPackages /> | ||
61 | + <abbreviatePackageNames /> | ||
62 | + <autoscrollToSource /> | ||
63 | + <autoscrollFromSource /> | ||
64 | + <sortByType /> | ||
65 | + <manualOrder /> | ||
66 | + <foldersAlwaysOnTop value="true" /> | ||
67 | + </navigator> | ||
68 | + <panes> | ||
69 | + <pane id="Scratches" /> | ||
70 | + <pane id="SolutionExplorer"> | ||
71 | + <subPane> | ||
72 | + <expand> | ||
73 | + <path> | ||
74 | + <item name="" type="13324e5d:SolutionExplorerViewPane$ProjectViewPaneTreeStructure$createRoot$1" /> | ||
75 | + <item name="Flappy Bird (1 project)" type="977d5f41:SolutionExplorerNodeRider" /> | ||
76 | + </path> | ||
77 | + <path> | ||
78 | + <item name="" type="13324e5d:SolutionExplorerViewPane$ProjectViewPaneTreeStructure$createRoot$1" /> | ||
79 | + <item name="Flappy Bird (1 project)" type="977d5f41:SolutionExplorerNodeRider" /> | ||
80 | + <item name="Flappy Bird" type="977d5f41:SolutionExplorerNodeRider" /> | ||
81 | + </path> | ||
82 | + </expand> | ||
83 | + <select /> | ||
84 | + </subPane> | ||
85 | + <option name="show-file-system" value="false" /> | ||
86 | + <option name="show-all-items" value="false" /> | ||
87 | + </pane> | ||
88 | + </panes> | ||
89 | + </component> | ||
90 | + <component name="PropertiesComponent"> | ||
91 | + <property name="WebServerToolWindowFactoryState" value="false" /> | ||
92 | + </component> | ||
93 | + <component name="RunDashboard"> | ||
94 | + <option name="ruleStates"> | ||
95 | + <list> | ||
96 | + <RuleState> | ||
97 | + <option name="name" value="ConfigurationTypeDashboardGroupingRule" /> | ||
98 | + </RuleState> | ||
99 | + <RuleState> | ||
100 | + <option name="name" value="StatusDashboardGroupingRule" /> | ||
101 | + </RuleState> | ||
102 | + </list> | ||
103 | + </option> | ||
104 | + </component> | ||
105 | + <component name="RunManager"> | ||
106 | + <configuration name="Default" type="DotNetProject" factoryName=".NET Project"> | ||
107 | + <option name="EXE_PATH" value="" /> | ||
108 | + <option name="PROGRAM_PARAMETERS" value="" /> | ||
109 | + <option name="WORKING_DIRECTORY" value="" /> | ||
110 | + <option name="PASS_PARENT_ENVS" value="1" /> | ||
111 | + <envs /> | ||
112 | + <option name="USE_MONO" value="0" /> | ||
113 | + <option name="USE_EXTERNAL_CONSOLE" value="0" /> | ||
114 | + <option name="PROJECT_PATH" value="" /> | ||
115 | + <option name="PROJECT_EXE_PATH_TRACKING" value="1" /> | ||
116 | + <option name="PROJECT_ARGUMENTS_TRACKING" value="1" /> | ||
117 | + <option name="PROJECT_WORKING_DIRECTORY_TRACKING" value="1" /> | ||
118 | + <option name="PROJECT_KIND" value="None" /> | ||
119 | + <option name="PROJECT_TFM" value="" /> | ||
120 | + </configuration> | ||
121 | + </component> | ||
122 | + <component name="ShelveChangesManager" show_recycled="false"> | ||
123 | + <option name="remove_strategy" value="false" /> | ||
124 | + </component> | ||
125 | + <component name="SvnConfiguration"> | ||
126 | + <configuration /> | ||
127 | + </component> | ||
128 | + <component name="TaskManager"> | ||
129 | + <task active="true" id="Default" summary="Default task"> | ||
130 | + <changelist id="b09f7ad8-1acb-4a0d-9d55-49ff1fb32cfd" name="Default" comment="" /> | ||
131 | + <created>1519396969208</created> | ||
132 | + <option name="number" value="Default" /> | ||
133 | + <option name="presentableId" value="Default" /> | ||
134 | + <updated>1519396969208</updated> | ||
135 | + <workItem from="1519396971738" duration="4000" /> | ||
136 | + <workItem from="1519397012939" duration="24000" /> | ||
137 | + <workItem from="1519397065047" duration="307000" /> | ||
138 | + <workItem from="1519402028684" duration="184000" /> | ||
139 | + </task> | ||
140 | + <servers /> | ||
141 | + </component> | ||
142 | + <component name="TimeTrackingManager"> | ||
143 | + <option name="totallyTimeSpent" value="519000" /> | ||
144 | + </component> | ||
145 | + <component name="TodoView"> | ||
146 | + <todo-panel id="selected-file"> | ||
147 | + <is-autoscroll-to-source value="true" /> | ||
148 | + </todo-panel> | ||
149 | + <todo-panel id="all"> | ||
150 | + <are-packages-shown value="true" /> | ||
151 | + <is-autoscroll-to-source value="true" /> | ||
152 | + </todo-panel> | ||
153 | + </component> | ||
154 | + <component name="ToolWindowManager"> | ||
155 | + <frame x="0" y="23" width="1920" height="1057" extended-state="6" /> | ||
156 | + <layout> | ||
157 | + <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> | ||
158 | + <window_info id="Errors In Solution" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | ||
159 | + <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> | ||
160 | + <window_info id="Unit Tests" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
161 | + <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> | ||
162 | + <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
163 | + <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
164 | + <window_info id="NuGet" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
165 | + <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2603834" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> | ||
166 | + <window_info id="Docker" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" /> | ||
167 | + <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | ||
168 | + <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
169 | + <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | ||
170 | + <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> | ||
171 | + <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> | ||
172 | + <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
173 | + <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
174 | + <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> | ||
175 | + <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> | ||
176 | + <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
177 | + <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
178 | + </layout> | ||
179 | + </component> | ||
180 | + <component name="TypeScriptGeneratedFilesManager"> | ||
181 | + <option name="version" value="1" /> | ||
182 | + </component> | ||
183 | + <component name="VcsContentAnnotationSettings"> | ||
184 | + <option name="myLimit" value="2678400000" /> | ||
185 | + </component> | ||
186 | + <component name="XDebuggerManager"> | ||
187 | + <breakpoint-manager /> | ||
188 | + <watches-manager /> | ||
189 | + </component> | ||
190 | + <component name="editorHistoryManager"> | ||
191 | + <entry file="file://$PROJECT_DIR$/Assets/RepeatingBackground.cs" /> | ||
192 | + <entry file="file://$PROJECT_DIR$/Assets/Column.cs" /> | ||
193 | + <entry file="file://$PROJECT_DIR$/Assets/RepeatingBackground.cs" /> | ||
194 | + <entry file="file://$PROJECT_DIR$/Assets/Column.cs" /> | ||
195 | + <entry file="file://$PROJECT_DIR$/Assets/ScrollingObject.cs" /> | ||
196 | + <entry file="file://$PROJECT_DIR$/Assets/RepeatingBackground.cs" /> | ||
197 | + <entry file="file://$PROJECT_DIR$/Assets/GameManager.cs" /> | ||
198 | + <entry file="file://$PROJECT_DIR$/Assets/ColumnPool.cs" /> | ||
199 | + <entry file="file://$PROJECT_DIR$/Assets/Bird.cs" /> | ||
200 | + <entry file="file://$PROJECT_DIR$/Assets/Test Scripts/Editor/BirdTest.cs" /> | ||
201 | + <entry file="file://$PROJECT_DIR$/Assets/Scripts/ColumnPool.cs"> | ||
202 | + <provider selected="true" editor-type-id="text-editor"> | ||
203 | + <state relative-caret-position="45"> | ||
204 | + <caret line="3" column="4" lean-forward="false" selection-start-line="3" selection-start-column="4" selection-end-line="3" selection-end-column="4" /> | ||
205 | + <folding /> | ||
206 | + </state> | ||
207 | + </provider> | ||
208 | + </entry> | ||
209 | + <entry file="file://$PROJECT_DIR$/Flappy Bird.csproj"> | ||
210 | + <provider selected="true" editor-type-id="text-editor"> | ||
211 | + <state relative-caret-position="0"> | ||
212 | + <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" /> | ||
213 | + <folding /> | ||
214 | + </state> | ||
215 | + </provider> | ||
216 | + </entry> | ||
217 | + <entry file="file://$PROJECT_DIR$/Assets/Test Scripts/BirdTest.cs"> | ||
218 | + <provider selected="true" editor-type-id="text-editor"> | ||
219 | + <state relative-caret-position="660"> | ||
220 | + <caret line="44" column="2" lean-forward="false" selection-start-line="44" selection-start-column="2" selection-end-line="44" selection-end-column="2" /> | ||
221 | + <folding /> | ||
222 | + </state> | ||
223 | + </provider> | ||
224 | + </entry> | ||
225 | + </component> | ||
226 | +</project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
.idea/.idea.Flappy Bird/riderModule.iml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<module type="RIDER_MODULE" version="4"> | ||
3 | + <component name="NewModuleRootManager"> | ||
4 | + <content url="file://$MODULE_DIR$/../.." /> | ||
5 | + <orderEntry type="sourceFolder" forTests="false" /> | ||
6 | + </component> | ||
7 | +</module> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<project version="4"> | ||
3 | + <component name="ContentModelStore"> | ||
4 | + <e p="$PROJECT_DIR$" t="IncludeRecursive"> | ||
5 | + <e p="Assembly-CSharp-Editor-firstpass.csproj" t="IncludeRecursive" /> | ||
6 | + <e p="Assembly-CSharp.csproj" t="IncludeRecursive" /> | ||
7 | + <e p="Assets" t="Include"> | ||
8 | + <e p="Plugins" t="Include"> | ||
9 | + <e p="Editor" t="Include"> | ||
10 | + <e p="JetBrains" t="Include"> | ||
11 | + <e p="Unity3DRider.cs" t="Include" /> | ||
12 | + </e> | ||
13 | + </e> | ||
14 | + </e> | ||
15 | + <e p="Scripts" t="Include"> | ||
16 | + <e p="Bird.cs" t="Include" /> | ||
17 | + <e p="Column.cs" t="Include" /> | ||
18 | + <e p="ColumnPool.cs" t="Include" /> | ||
19 | + <e p="GameControl.cs" t="Include" /> | ||
20 | + <e p="IUnityInput.cs" t="Include" /> | ||
21 | + <e p="RepeatingBackground.cs" t="Include" /> | ||
22 | + <e p="ScrollingObject.cs" t="Include" /> | ||
23 | + </e> | ||
24 | + <e p="Test Scripts" t="Include"> | ||
25 | + <e p="BirdTest.cs" t="Include" /> | ||
26 | + </e> | ||
27 | + </e> | ||
28 | + <e p="Flappy-Bird-Complete.sln" t="IncludeFlat" /> | ||
29 | + <e p="Library" t="ExcludeRecursive" /> | ||
30 | + <e p="obj" t="ExcludeRecursive" /> | ||
31 | + <e p="packages" t="ExcludeRecursive" /> | ||
32 | + <e p="Temp" t="ExcludeRecursive"> | ||
33 | + <e p="bin" t="ExcludeRecursive" /> | ||
34 | + </e> | ||
35 | + </e> | ||
36 | + <e p="$USER_HOME$/Library/Caches/Rider2017.3/resharper-host/local/Transient/ReSharperHost/v11/SolutionCaches/_Flappy-Bird-Complete.-1616831725.00" t="ExcludeRecursive" /> | ||
37 | + </component> | ||
38 | +</project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<project version="4"> | ||
3 | + <component name="ProjectModuleManager"> | ||
4 | + <modules> | ||
5 | + <module fileurl="file://$PROJECT_DIR$/.idea/.idea.Flappy-Bird-Complete/riderModule.iml" filepath="$PROJECT_DIR$/.idea/.idea.Flappy-Bird-Complete/riderModule.iml" /> | ||
6 | + </modules> | ||
7 | + </component> | ||
8 | +</project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<project version="4"> | ||
3 | + <component name="ChangeListManager"> | ||
4 | + <list default="true" id="afd3f229-bc7c-4b9a-a4ba-9032db46852f" name="Default" comment="" /> | ||
5 | + <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> | ||
6 | + <option name="TRACKING_ENABLED" value="true" /> | ||
7 | + <option name="SHOW_DIALOG" value="false" /> | ||
8 | + <option name="HIGHLIGHT_CONFLICTS" value="true" /> | ||
9 | + <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> | ||
10 | + <option name="LAST_RESOLUTION" value="IGNORE" /> | ||
11 | + </component> | ||
12 | + <component name="FindInProjectRecents"> | ||
13 | + <findStrings> | ||
14 | + <find>AreEqual</find> | ||
15 | + <find>OnCollisionEnter2D</find> | ||
16 | + <find>Test</find> | ||
17 | + <find>GameContorl</find> | ||
18 | + <find>BirdScored</find> | ||
19 | + <find>position</find> | ||
20 | + </findStrings> | ||
21 | + </component> | ||
22 | + <component name="HighlightingSettingsPerFile"> | ||
23 | + <setting file="file://$PROJECT_DIR$/Assets/Scripts/Column.cs" root0="FORCE_HIGHLIGHTING" /> | ||
24 | + <setting file="file://$PROJECT_DIR$/Assets/Scripts/IUnityInput.cs" root0="FORCE_HIGHLIGHTING" /> | ||
25 | + <setting file="file://$PROJECT_DIR$/Assets/Scripts/Bird.cs" root0="FORCE_HIGHLIGHTING" /> | ||
26 | + <setting file="file://$PROJECT_DIR$/Assets/Scripts/GameControl.cs" root0="FORCE_HIGHLIGHTING" /> | ||
27 | + <setting file="file://$PROJECT_DIR$/Assets/Test Scripts/BirdTest.cs" root0="FORCE_HIGHLIGHTING" /> | ||
28 | + <setting file="file://$PROJECT_DIR$/Assets/Scripts/ScrollingObject.cs" root0="FORCE_HIGHLIGHTING" /> | ||
29 | + </component> | ||
30 | + <component name="IdeDocumentHistory"> | ||
31 | + <option name="CHANGED_PATHS"> | ||
32 | + <list> | ||
33 | + <option value="$PROJECT_DIR$/Assets/Test Scripts/Editor/BirdTest.cs" /> | ||
34 | + <option value="$PROJECT_DIR$/Assets/Scripts/IUnityInput.cs" /> | ||
35 | + <option value="$PROJECT_DIR$/Assets/Scripts/Column.cs" /> | ||
36 | + <option value="$PROJECT_DIR$/Assets/Scripts/GameControl.cs" /> | ||
37 | + <option value="$PROJECT_DIR$/Assets/Scripts/Bird.cs" /> | ||
38 | + <option value="$PROJECT_DIR$/Assets/Test Scripts/BirdTest.cs" /> | ||
39 | + </list> | ||
40 | + </option> | ||
41 | + </component> | ||
42 | + <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" /> | ||
43 | + <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" /> | ||
44 | + <component name="JsGulpfileManager"> | ||
45 | + <detection-done>true</detection-done> | ||
46 | + <sorting>DEFINITION_ORDER</sorting> | ||
47 | + </component> | ||
48 | + <component name="ProjectFrameBounds" extendedState="6"> | ||
49 | + <option name="x" value="-153" /> | ||
50 | + <option name="y" value="23" /> | ||
51 | + <option name="width" value="1920" /> | ||
52 | + <option name="height" value="1057" /> | ||
53 | + </component> | ||
54 | + <component name="ProjectView"> | ||
55 | + <navigator currentView="SolutionExplorer" proportions="" version="1"> | ||
56 | + <flattenPackages /> | ||
57 | + <showMembers /> | ||
58 | + <showModules /> | ||
59 | + <showLibraryContents /> | ||
60 | + <hideEmptyPackages /> | ||
61 | + <abbreviatePackageNames /> | ||
62 | + <autoscrollToSource /> | ||
63 | + <autoscrollFromSource /> | ||
64 | + <sortByType /> | ||
65 | + <manualOrder /> | ||
66 | + <foldersAlwaysOnTop value="true" /> | ||
67 | + </navigator> | ||
68 | + <panes> | ||
69 | + <pane id="Scratches" /> | ||
70 | + <pane id="SolutionExplorer"> | ||
71 | + <subPane> | ||
72 | + <expand> | ||
73 | + <path> | ||
74 | + <item name="" type="13324e5d:SolutionExplorerViewPane$ProjectViewPaneTreeStructure$createRoot$1" /> | ||
75 | + <item name="Flappy-Bird-Complete (2 projects)" type="977d5f41:SolutionExplorerNodeRider" /> | ||
76 | + </path> | ||
77 | + </expand> | ||
78 | + <select /> | ||
79 | + </subPane> | ||
80 | + <option name="show-file-system" value="false" /> | ||
81 | + <option name="show-all-items" value="false" /> | ||
82 | + </pane> | ||
83 | + </panes> | ||
84 | + </component> | ||
85 | + <component name="PropertiesComponent"> | ||
86 | + <property name="WebServerToolWindowFactoryState" value="false" /> | ||
87 | + </component> | ||
88 | + <component name="RunDashboard"> | ||
89 | + <option name="ruleStates"> | ||
90 | + <list> | ||
91 | + <RuleState> | ||
92 | + <option name="name" value="ConfigurationTypeDashboardGroupingRule" /> | ||
93 | + </RuleState> | ||
94 | + <RuleState> | ||
95 | + <option name="name" value="StatusDashboardGroupingRule" /> | ||
96 | + </RuleState> | ||
97 | + </list> | ||
98 | + </option> | ||
99 | + </component> | ||
100 | + <component name="RunManager"> | ||
101 | + <configuration name="Attach to Unity Editor" type="UNITY_DEBUG_RUN_CONFIGURATION" factoryName="Unity Debug" /> | ||
102 | + </component> | ||
103 | + <component name="ShelveChangesManager" show_recycled="false"> | ||
104 | + <option name="remove_strategy" value="false" /> | ||
105 | + </component> | ||
106 | + <component name="SvnConfiguration"> | ||
107 | + <configuration /> | ||
108 | + </component> | ||
109 | + <component name="TaskManager"> | ||
110 | + <task active="true" id="Default" summary="Default task"> | ||
111 | + <changelist id="afd3f229-bc7c-4b9a-a4ba-9032db46852f" name="Default" comment="" /> | ||
112 | + <created>1519397432125</created> | ||
113 | + <option name="number" value="Default" /> | ||
114 | + <option name="presentableId" value="Default" /> | ||
115 | + <updated>1519397432125</updated> | ||
116 | + <workItem from="1519397434801" duration="4478000" /> | ||
117 | + <workItem from="1519402071355" duration="142000" /> | ||
118 | + <workItem from="1519402250249" duration="1900000" /> | ||
119 | + </task> | ||
120 | + <servers /> | ||
121 | + </component> | ||
122 | + <component name="TimeTrackingManager"> | ||
123 | + <option name="totallyTimeSpent" value="6520000" /> | ||
124 | + </component> | ||
125 | + <component name="TodoView"> | ||
126 | + <todo-panel id="selected-file"> | ||
127 | + <is-autoscroll-to-source value="true" /> | ||
128 | + </todo-panel> | ||
129 | + <todo-panel id="all"> | ||
130 | + <are-packages-shown value="true" /> | ||
131 | + <is-autoscroll-to-source value="true" /> | ||
132 | + </todo-panel> | ||
133 | + </component> | ||
134 | + <component name="ToolWindowManager"> | ||
135 | + <frame x="0" y="23" width="1920" height="1057" extended-state="6" /> | ||
136 | + <layout> | ||
137 | + <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" /> | ||
138 | + <window_info id="Errors In Solution" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | ||
139 | + <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" /> | ||
140 | + <window_info id="Unit Tests" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32952183" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
141 | + <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
142 | + <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" /> | ||
143 | + <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
144 | + <window_info id="NuGet" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32952183" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
145 | + <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25772098" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" /> | ||
146 | + <window_info id="Docker" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" /> | ||
147 | + <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | ||
148 | + <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
149 | + <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" /> | ||
150 | + <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" /> | ||
151 | + <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" /> | ||
152 | + <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
153 | + <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" /> | ||
154 | + <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" /> | ||
155 | + <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" /> | ||
156 | + <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
157 | + <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" /> | ||
158 | + </layout> | ||
159 | + </component> | ||
160 | + <component name="TypeScriptGeneratedFilesManager"> | ||
161 | + <option name="version" value="1" /> | ||
162 | + </component> | ||
163 | + <component name="VcsContentAnnotationSettings"> | ||
164 | + <option name="myLimit" value="2678400000" /> | ||
165 | + </component> | ||
166 | + <component name="XDebuggerManager"> | ||
167 | + <breakpoint-manager /> | ||
168 | + <watches-manager /> | ||
169 | + </component> | ||
170 | +</project> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<module type="RIDER_MODULE" version="4"> | ||
3 | + <component name="NewModuleRootManager"> | ||
4 | + <content url="file://$MODULE_DIR$/../.." /> | ||
5 | + <orderEntry type="sourceFolder" forTests="false" /> | ||
6 | + </component> | ||
7 | +</module> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
Assets/Animations.meta
0 → 100644
Assets/Animations/Die.anim
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!74 &7400000 | ||
4 | +AnimationClip: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + m_PrefabParentObject: {fileID: 0} | ||
7 | + m_PrefabInternal: {fileID: 0} | ||
8 | + m_Name: Die | ||
9 | + serializedVersion: 6 | ||
10 | + m_Legacy: 0 | ||
11 | + m_Compressed: 0 | ||
12 | + m_UseHighQualityCurve: 1 | ||
13 | + m_RotationCurves: [] | ||
14 | + m_CompressedRotationCurves: [] | ||
15 | + m_EulerCurves: [] | ||
16 | + m_PositionCurves: [] | ||
17 | + m_ScaleCurves: [] | ||
18 | + m_FloatCurves: [] | ||
19 | + m_PPtrCurves: | ||
20 | + - curve: | ||
21 | + - time: 0 | ||
22 | + value: {fileID: 21300004, guid: 8d941401e08ea064ab302bb0b1ae8cc4, type: 3} | ||
23 | + attribute: m_Sprite | ||
24 | + path: | ||
25 | + classID: 212 | ||
26 | + script: {fileID: 0} | ||
27 | + m_SampleRate: 60 | ||
28 | + m_WrapMode: 0 | ||
29 | + m_Bounds: | ||
30 | + m_Center: {x: 0, y: 0, z: 0} | ||
31 | + m_Extent: {x: 0, y: 0, z: 0} | ||
32 | + m_ClipBindingConstant: | ||
33 | + genericBindings: | ||
34 | + - serializedVersion: 2 | ||
35 | + path: 0 | ||
36 | + attribute: 0 | ||
37 | + script: {fileID: 0} | ||
38 | + typeID: 212 | ||
39 | + customType: 23 | ||
40 | + isPPtrCurve: 1 | ||
41 | + pptrCurveMapping: | ||
42 | + - {fileID: 21300004, guid: 8d941401e08ea064ab302bb0b1ae8cc4, type: 3} | ||
43 | + m_AnimationClipSettings: | ||
44 | + serializedVersion: 2 | ||
45 | + m_AdditiveReferencePoseClip: {fileID: 0} | ||
46 | + m_AdditiveReferencePoseTime: 0 | ||
47 | + m_StartTime: 0 | ||
48 | + m_StopTime: 0.016666668 | ||
49 | + m_OrientationOffsetY: 0 | ||
50 | + m_Level: 0 | ||
51 | + m_CycleOffset: 0 | ||
52 | + m_HasAdditiveReferencePose: 0 | ||
53 | + m_LoopTime: 1 | ||
54 | + m_LoopBlend: 0 | ||
55 | + m_LoopBlendOrientation: 0 | ||
56 | + m_LoopBlendPositionY: 0 | ||
57 | + m_LoopBlendPositionXZ: 0 | ||
58 | + m_KeepOriginalOrientation: 0 | ||
59 | + m_KeepOriginalPositionY: 1 | ||
60 | + m_KeepOriginalPositionXZ: 0 | ||
61 | + m_HeightFromFeet: 0 | ||
62 | + m_Mirror: 0 | ||
63 | + m_EditorCurves: [] | ||
64 | + m_EulerEditorCurves: [] | ||
65 | + m_HasGenericRootTransform: 0 | ||
66 | + m_HasMotionFloatCurves: 0 | ||
67 | + m_GenerateMotionCurves: 0 | ||
68 | + m_Events: [] |
Assets/Animations/Die.anim.meta
0 → 100644
Assets/Animations/Flap.anim
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!74 &7400000 | ||
4 | +AnimationClip: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + m_PrefabParentObject: {fileID: 0} | ||
7 | + m_PrefabInternal: {fileID: 0} | ||
8 | + m_Name: Flap | ||
9 | + serializedVersion: 6 | ||
10 | + m_Legacy: 0 | ||
11 | + m_Compressed: 0 | ||
12 | + m_UseHighQualityCurve: 1 | ||
13 | + m_RotationCurves: [] | ||
14 | + m_CompressedRotationCurves: [] | ||
15 | + m_EulerCurves: [] | ||
16 | + m_PositionCurves: [] | ||
17 | + m_ScaleCurves: [] | ||
18 | + m_FloatCurves: [] | ||
19 | + m_PPtrCurves: | ||
20 | + - curve: | ||
21 | + - time: 0 | ||
22 | + value: {fileID: 21300002, guid: 8d941401e08ea064ab302bb0b1ae8cc4, type: 3} | ||
23 | + attribute: m_Sprite | ||
24 | + path: | ||
25 | + classID: 212 | ||
26 | + script: {fileID: 0} | ||
27 | + m_SampleRate: 60 | ||
28 | + m_WrapMode: 0 | ||
29 | + m_Bounds: | ||
30 | + m_Center: {x: 0, y: 0, z: 0} | ||
31 | + m_Extent: {x: 0, y: 0, z: 0} | ||
32 | + m_ClipBindingConstant: | ||
33 | + genericBindings: | ||
34 | + - serializedVersion: 2 | ||
35 | + path: 0 | ||
36 | + attribute: 0 | ||
37 | + script: {fileID: 0} | ||
38 | + typeID: 212 | ||
39 | + customType: 23 | ||
40 | + isPPtrCurve: 1 | ||
41 | + pptrCurveMapping: | ||
42 | + - {fileID: 21300002, guid: 8d941401e08ea064ab302bb0b1ae8cc4, type: 3} | ||
43 | + m_AnimationClipSettings: | ||
44 | + serializedVersion: 2 | ||
45 | + m_AdditiveReferencePoseClip: {fileID: 0} | ||
46 | + m_AdditiveReferencePoseTime: 0 | ||
47 | + m_StartTime: 0 | ||
48 | + m_StopTime: 0.016666668 | ||
49 | + m_OrientationOffsetY: 0 | ||
50 | + m_Level: 0 | ||
51 | + m_CycleOffset: 0 | ||
52 | + m_HasAdditiveReferencePose: 0 | ||
53 | + m_LoopTime: 1 | ||
54 | + m_LoopBlend: 0 | ||
55 | + m_LoopBlendOrientation: 0 | ||
56 | + m_LoopBlendPositionY: 0 | ||
57 | + m_LoopBlendPositionXZ: 0 | ||
58 | + m_KeepOriginalOrientation: 0 | ||
59 | + m_KeepOriginalPositionY: 1 | ||
60 | + m_KeepOriginalPositionXZ: 0 | ||
61 | + m_HeightFromFeet: 0 | ||
62 | + m_Mirror: 0 | ||
63 | + m_EditorCurves: [] | ||
64 | + m_EulerEditorCurves: [] | ||
65 | + m_HasGenericRootTransform: 0 | ||
66 | + m_HasMotionFloatCurves: 0 | ||
67 | + m_GenerateMotionCurves: 0 | ||
68 | + m_Events: [] |
Assets/Animations/Flap.anim.meta
0 → 100644
Assets/Animations/Idle.anim
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!74 &7400000 | ||
4 | +AnimationClip: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + m_PrefabParentObject: {fileID: 0} | ||
7 | + m_PrefabInternal: {fileID: 0} | ||
8 | + m_Name: Idle | ||
9 | + serializedVersion: 6 | ||
10 | + m_Legacy: 0 | ||
11 | + m_Compressed: 0 | ||
12 | + m_UseHighQualityCurve: 1 | ||
13 | + m_RotationCurves: [] | ||
14 | + m_CompressedRotationCurves: [] | ||
15 | + m_EulerCurves: [] | ||
16 | + m_PositionCurves: [] | ||
17 | + m_ScaleCurves: [] | ||
18 | + m_FloatCurves: [] | ||
19 | + m_PPtrCurves: | ||
20 | + - curve: | ||
21 | + - time: 0 | ||
22 | + value: {fileID: 21300000, guid: 8d941401e08ea064ab302bb0b1ae8cc4, type: 3} | ||
23 | + attribute: m_Sprite | ||
24 | + path: | ||
25 | + classID: 212 | ||
26 | + script: {fileID: 0} | ||
27 | + m_SampleRate: 60 | ||
28 | + m_WrapMode: 0 | ||
29 | + m_Bounds: | ||
30 | + m_Center: {x: 0, y: 0, z: 0} | ||
31 | + m_Extent: {x: 0, y: 0, z: 0} | ||
32 | + m_ClipBindingConstant: | ||
33 | + genericBindings: | ||
34 | + - serializedVersion: 2 | ||
35 | + path: 0 | ||
36 | + attribute: 0 | ||
37 | + script: {fileID: 0} | ||
38 | + typeID: 212 | ||
39 | + customType: 23 | ||
40 | + isPPtrCurve: 1 | ||
41 | + pptrCurveMapping: | ||
42 | + - {fileID: 21300000, guid: 8d941401e08ea064ab302bb0b1ae8cc4, type: 3} | ||
43 | + m_AnimationClipSettings: | ||
44 | + serializedVersion: 2 | ||
45 | + m_AdditiveReferencePoseClip: {fileID: 0} | ||
46 | + m_AdditiveReferencePoseTime: 0 | ||
47 | + m_StartTime: 0 | ||
48 | + m_StopTime: 0.016666668 | ||
49 | + m_OrientationOffsetY: 0 | ||
50 | + m_Level: 0 | ||
51 | + m_CycleOffset: 0 | ||
52 | + m_HasAdditiveReferencePose: 0 | ||
53 | + m_LoopTime: 1 | ||
54 | + m_LoopBlend: 0 | ||
55 | + m_LoopBlendOrientation: 0 | ||
56 | + m_LoopBlendPositionY: 0 | ||
57 | + m_LoopBlendPositionXZ: 0 | ||
58 | + m_KeepOriginalOrientation: 0 | ||
59 | + m_KeepOriginalPositionY: 1 | ||
60 | + m_KeepOriginalPositionXZ: 0 | ||
61 | + m_HeightFromFeet: 0 | ||
62 | + m_Mirror: 0 | ||
63 | + m_EditorCurves: [] | ||
64 | + m_EulerEditorCurves: [] | ||
65 | + m_HasGenericRootTransform: 0 | ||
66 | + m_HasMotionFloatCurves: 0 | ||
67 | + m_GenerateMotionCurves: 0 | ||
68 | + m_Events: [] |
Assets/Animations/Idle.anim.meta
0 → 100644
Assets/Fonts.meta
0 → 100644
Assets/Fonts/LuckiestGuy.ttf
0 → 100644
No preview for this file type
Assets/Fonts/LuckiestGuy.ttf.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: 3a94f0ec6a1bae64bb1c1e74a9e30ad3 | ||
3 | +timeCreated: 1515667280 | ||
4 | +licenseType: Free | ||
5 | +TrueTypeFontImporter: | ||
6 | + externalObjects: {} | ||
7 | + serializedVersion: 4 | ||
8 | + fontSize: 16 | ||
9 | + forceTextureCase: -2 | ||
10 | + characterSpacing: 0 | ||
11 | + characterPadding: 1 | ||
12 | + includeFontData: 1 | ||
13 | + fontName: Luckiest Guy | ||
14 | + fontNames: | ||
15 | + - Luckiest Guy | ||
16 | + fallbackFontReferences: [] | ||
17 | + customCharacters: | ||
18 | + fontRenderingMode: 0 | ||
19 | + ascentCalculationMode: 1 | ||
20 | + userData: | ||
21 | + assetBundleName: | ||
22 | + assetBundleVariant: |
Assets/Main.unity
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!29 &1 | ||
4 | +OcclusionCullingSettings: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + serializedVersion: 2 | ||
7 | + m_OcclusionBakeSettings: | ||
8 | + smallestOccluder: 5 | ||
9 | + smallestHole: 0.25 | ||
10 | + backfaceThreshold: 100 | ||
11 | + m_SceneGUID: 00000000000000000000000000000000 | ||
12 | + m_OcclusionCullingData: {fileID: 0} | ||
13 | +--- !u!104 &2 | ||
14 | +RenderSettings: | ||
15 | + m_ObjectHideFlags: 0 | ||
16 | + serializedVersion: 8 | ||
17 | + m_Fog: 0 | ||
18 | + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} | ||
19 | + m_FogMode: 3 | ||
20 | + m_FogDensity: 0.01 | ||
21 | + m_LinearFogStart: 0 | ||
22 | + m_LinearFogEnd: 300 | ||
23 | + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} | ||
24 | + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} | ||
25 | + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} | ||
26 | + m_AmbientIntensity: 1 | ||
27 | + m_AmbientMode: 3 | ||
28 | + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} | ||
29 | + m_SkyboxMaterial: {fileID: 0} | ||
30 | + m_HaloStrength: 0.5 | ||
31 | + m_FlareStrength: 1 | ||
32 | + m_FlareFadeSpeed: 3 | ||
33 | + m_HaloTexture: {fileID: 0} | ||
34 | + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} | ||
35 | + m_DefaultReflectionMode: 0 | ||
36 | + m_DefaultReflectionResolution: 128 | ||
37 | + m_ReflectionBounces: 1 | ||
38 | + m_ReflectionIntensity: 1 | ||
39 | + m_CustomReflection: {fileID: 0} | ||
40 | + m_Sun: {fileID: 0} | ||
41 | + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1} | ||
42 | +--- !u!157 &3 | ||
43 | +LightmapSettings: | ||
44 | + m_ObjectHideFlags: 0 | ||
45 | + serializedVersion: 11 | ||
46 | + m_GIWorkflowMode: 1 | ||
47 | + m_GISettings: | ||
48 | + serializedVersion: 2 | ||
49 | + m_BounceScale: 1 | ||
50 | + m_IndirectOutputScale: 1 | ||
51 | + m_AlbedoBoost: 1 | ||
52 | + m_TemporalCoherenceThreshold: 1 | ||
53 | + m_EnvironmentLightingMode: 0 | ||
54 | + m_EnableBakedLightmaps: 0 | ||
55 | + m_EnableRealtimeLightmaps: 0 | ||
56 | + m_LightmapEditorSettings: | ||
57 | + serializedVersion: 9 | ||
58 | + m_Resolution: 2 | ||
59 | + m_BakeResolution: 40 | ||
60 | + m_TextureWidth: 1024 | ||
61 | + m_TextureHeight: 1024 | ||
62 | + m_AO: 0 | ||
63 | + m_AOMaxDistance: 1 | ||
64 | + m_CompAOExponent: 1 | ||
65 | + m_CompAOExponentDirect: 0 | ||
66 | + m_Padding: 2 | ||
67 | + m_LightmapParameters: {fileID: 0} | ||
68 | + m_LightmapsBakeMode: 1 | ||
69 | + m_TextureCompression: 1 | ||
70 | + m_FinalGather: 0 | ||
71 | + m_FinalGatherFiltering: 1 | ||
72 | + m_FinalGatherRayCount: 256 | ||
73 | + m_ReflectionCompression: 2 | ||
74 | + m_MixedBakeMode: 2 | ||
75 | + m_BakeBackend: 0 | ||
76 | + m_PVRSampling: 1 | ||
77 | + m_PVRDirectSampleCount: 32 | ||
78 | + m_PVRSampleCount: 500 | ||
79 | + m_PVRBounces: 2 | ||
80 | + m_PVRFilterTypeDirect: 0 | ||
81 | + m_PVRFilterTypeIndirect: 0 | ||
82 | + m_PVRFilterTypeAO: 0 | ||
83 | + m_PVRFilteringMode: 1 | ||
84 | + m_PVRCulling: 1 | ||
85 | + m_PVRFilteringGaussRadiusDirect: 1 | ||
86 | + m_PVRFilteringGaussRadiusIndirect: 5 | ||
87 | + m_PVRFilteringGaussRadiusAO: 2 | ||
88 | + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 | ||
89 | + m_PVRFilteringAtrousPositionSigmaIndirect: 2 | ||
90 | + m_PVRFilteringAtrousPositionSigmaAO: 1 | ||
91 | + m_ShowResolutionOverlay: 1 | ||
92 | + m_LightingDataAsset: {fileID: 0} | ||
93 | + m_UseShadowmask: 1 | ||
94 | +--- !u!196 &4 | ||
95 | +NavMeshSettings: | ||
96 | + serializedVersion: 2 | ||
97 | + m_ObjectHideFlags: 0 | ||
98 | + m_BuildSettings: | ||
99 | + serializedVersion: 2 | ||
100 | + agentTypeID: 0 | ||
101 | + agentRadius: 0.5 | ||
102 | + agentHeight: 2 | ||
103 | + agentSlope: 45 | ||
104 | + agentClimb: 0.4 | ||
105 | + ledgeDropHeight: 0 | ||
106 | + maxJumpAcrossDistance: 0 | ||
107 | + minRegionArea: 2 | ||
108 | + manualCellSize: 0 | ||
109 | + cellSize: 0.16666667 | ||
110 | + manualTileSize: 0 | ||
111 | + tileSize: 256 | ||
112 | + accuratePlacement: 0 | ||
113 | + debug: | ||
114 | + m_Flags: 0 | ||
115 | + m_NavMeshData: {fileID: 0} | ||
116 | +--- !u!1 &622097441 | ||
117 | +GameObject: | ||
118 | + m_ObjectHideFlags: 0 | ||
119 | + m_PrefabParentObject: {fileID: 0} | ||
120 | + m_PrefabInternal: {fileID: 0} | ||
121 | + serializedVersion: 5 | ||
122 | + m_Component: | ||
123 | + - component: {fileID: 622097444} | ||
124 | + - component: {fileID: 622097443} | ||
125 | + - component: {fileID: 622097442} | ||
126 | + m_Layer: 0 | ||
127 | + m_Name: EventSystem | ||
128 | + m_TagString: Untagged | ||
129 | + m_Icon: {fileID: 0} | ||
130 | + m_NavMeshLayer: 0 | ||
131 | + m_StaticEditorFlags: 0 | ||
132 | + m_IsActive: 1 | ||
133 | +--- !u!114 &622097442 | ||
134 | +MonoBehaviour: | ||
135 | + m_ObjectHideFlags: 0 | ||
136 | + m_PrefabParentObject: {fileID: 0} | ||
137 | + m_PrefabInternal: {fileID: 0} | ||
138 | + m_GameObject: {fileID: 622097441} | ||
139 | + m_Enabled: 1 | ||
140 | + m_EditorHideFlags: 0 | ||
141 | + m_Script: {fileID: 1077351063, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} | ||
142 | + m_Name: | ||
143 | + m_EditorClassIdentifier: | ||
144 | + m_HorizontalAxis: Horizontal | ||
145 | + m_VerticalAxis: Vertical | ||
146 | + m_SubmitButton: Submit | ||
147 | + m_CancelButton: Cancel | ||
148 | + m_InputActionsPerSecond: 10 | ||
149 | + m_RepeatDelay: 0.5 | ||
150 | + m_ForceModuleActive: 0 | ||
151 | +--- !u!114 &622097443 | ||
152 | +MonoBehaviour: | ||
153 | + m_ObjectHideFlags: 0 | ||
154 | + m_PrefabParentObject: {fileID: 0} | ||
155 | + m_PrefabInternal: {fileID: 0} | ||
156 | + m_GameObject: {fileID: 622097441} | ||
157 | + m_Enabled: 1 | ||
158 | + m_EditorHideFlags: 0 | ||
159 | + m_Script: {fileID: -619905303, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} | ||
160 | + m_Name: | ||
161 | + m_EditorClassIdentifier: | ||
162 | + m_FirstSelected: {fileID: 0} | ||
163 | + m_sendNavigationEvents: 1 | ||
164 | + m_DragThreshold: 5 | ||
165 | +--- !u!4 &622097444 | ||
166 | +Transform: | ||
167 | + m_ObjectHideFlags: 0 | ||
168 | + m_PrefabParentObject: {fileID: 0} | ||
169 | + m_PrefabInternal: {fileID: 0} | ||
170 | + m_GameObject: {fileID: 622097441} | ||
171 | + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
172 | + m_LocalPosition: {x: 0, y: 0, z: 0} | ||
173 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
174 | + m_Children: [] | ||
175 | + m_Father: {fileID: 0} | ||
176 | + m_RootOrder: 5 | ||
177 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
178 | +--- !u!1 &625784442 | ||
179 | +GameObject: | ||
180 | + m_ObjectHideFlags: 0 | ||
181 | + m_PrefabParentObject: {fileID: 0} | ||
182 | + m_PrefabInternal: {fileID: 0} | ||
183 | + serializedVersion: 5 | ||
184 | + m_Component: | ||
185 | + - component: {fileID: 625784445} | ||
186 | + - component: {fileID: 625784444} | ||
187 | + - component: {fileID: 625784443} | ||
188 | + - component: {fileID: 625784446} | ||
189 | + - component: {fileID: 625784447} | ||
190 | + - component: {fileID: 625784448} | ||
191 | + m_Layer: 0 | ||
192 | + m_Name: Bird | ||
193 | + m_TagString: Untagged | ||
194 | + m_Icon: {fileID: 0} | ||
195 | + m_NavMeshLayer: 0 | ||
196 | + m_StaticEditorFlags: 0 | ||
197 | + m_IsActive: 1 | ||
198 | +--- !u!50 &625784443 | ||
199 | +Rigidbody2D: | ||
200 | + serializedVersion: 4 | ||
201 | + m_ObjectHideFlags: 0 | ||
202 | + m_PrefabParentObject: {fileID: 0} | ||
203 | + m_PrefabInternal: {fileID: 0} | ||
204 | + m_GameObject: {fileID: 625784442} | ||
205 | + m_BodyType: 0 | ||
206 | + m_Simulated: 1 | ||
207 | + m_UseFullKinematicContacts: 0 | ||
208 | + m_UseAutoMass: 0 | ||
209 | + m_Mass: 1 | ||
210 | + m_LinearDrag: 0 | ||
211 | + m_AngularDrag: 0.05 | ||
212 | + m_GravityScale: 1 | ||
213 | + m_Material: {fileID: 0} | ||
214 | + m_Interpolate: 0 | ||
215 | + m_SleepingMode: 1 | ||
216 | + m_CollisionDetection: 0 | ||
217 | + m_Constraints: 0 | ||
218 | +--- !u!212 &625784444 | ||
219 | +SpriteRenderer: | ||
220 | + m_ObjectHideFlags: 0 | ||
221 | + m_PrefabParentObject: {fileID: 0} | ||
222 | + m_PrefabInternal: {fileID: 0} | ||
223 | + m_GameObject: {fileID: 625784442} | ||
224 | + m_Enabled: 1 | ||
225 | + m_CastShadows: 0 | ||
226 | + m_ReceiveShadows: 0 | ||
227 | + m_DynamicOccludee: 1 | ||
228 | + m_MotionVectors: 1 | ||
229 | + m_LightProbeUsage: 1 | ||
230 | + m_ReflectionProbeUsage: 1 | ||
231 | + m_Materials: | ||
232 | + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} | ||
233 | + m_StaticBatchInfo: | ||
234 | + firstSubMesh: 0 | ||
235 | + subMeshCount: 0 | ||
236 | + m_StaticBatchRoot: {fileID: 0} | ||
237 | + m_ProbeAnchor: {fileID: 0} | ||
238 | + m_LightProbeVolumeOverride: {fileID: 0} | ||
239 | + m_ScaleInLightmap: 1 | ||
240 | + m_PreserveUVs: 0 | ||
241 | + m_IgnoreNormalsForChartDetection: 0 | ||
242 | + m_ImportantGI: 0 | ||
243 | + m_StitchLightmapSeams: 0 | ||
244 | + m_SelectedEditorRenderState: 0 | ||
245 | + m_MinimumChartSize: 4 | ||
246 | + m_AutoUVMaxDistance: 0.5 | ||
247 | + m_AutoUVMaxAngle: 89 | ||
248 | + m_LightmapParameters: {fileID: 0} | ||
249 | + m_SortingLayerID: 1403543497 | ||
250 | + m_SortingLayer: 3 | ||
251 | + m_SortingOrder: 0 | ||
252 | + m_Sprite: {fileID: 21300000, guid: 8d941401e08ea064ab302bb0b1ae8cc4, type: 3} | ||
253 | + m_Color: {r: 1, g: 1, b: 1, a: 1} | ||
254 | + m_FlipX: 0 | ||
255 | + m_FlipY: 0 | ||
256 | + m_DrawMode: 0 | ||
257 | + m_Size: {x: 1.13, y: 0.67} | ||
258 | + m_AdaptiveModeThreshold: 0.5 | ||
259 | + m_SpriteTileMode: 0 | ||
260 | + m_WasSpriteAssigned: 1 | ||
261 | + m_MaskInteraction: 0 | ||
262 | +--- !u!4 &625784445 | ||
263 | +Transform: | ||
264 | + m_ObjectHideFlags: 0 | ||
265 | + m_PrefabParentObject: {fileID: 0} | ||
266 | + m_PrefabInternal: {fileID: 0} | ||
267 | + m_GameObject: {fileID: 625784442} | ||
268 | + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
269 | + m_LocalPosition: {x: 0, y: 0, z: 0} | ||
270 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
271 | + m_Children: [] | ||
272 | + m_Father: {fileID: 0} | ||
273 | + m_RootOrder: 1 | ||
274 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
275 | +--- !u!58 &625784446 | ||
276 | +CircleCollider2D: | ||
277 | + m_ObjectHideFlags: 0 | ||
278 | + m_PrefabParentObject: {fileID: 0} | ||
279 | + m_PrefabInternal: {fileID: 0} | ||
280 | + m_GameObject: {fileID: 625784442} | ||
281 | + m_Enabled: 1 | ||
282 | + m_Density: 1 | ||
283 | + m_Material: {fileID: 0} | ||
284 | + m_IsTrigger: 0 | ||
285 | + m_UsedByEffector: 0 | ||
286 | + m_UsedByComposite: 0 | ||
287 | + m_Offset: {x: -0.14, y: 0} | ||
288 | + serializedVersion: 2 | ||
289 | + m_Radius: 0.27 | ||
290 | +--- !u!114 &625784447 | ||
291 | +MonoBehaviour: | ||
292 | + m_ObjectHideFlags: 0 | ||
293 | + m_PrefabParentObject: {fileID: 0} | ||
294 | + m_PrefabInternal: {fileID: 0} | ||
295 | + m_GameObject: {fileID: 625784442} | ||
296 | + m_Enabled: 1 | ||
297 | + m_EditorHideFlags: 0 | ||
298 | + m_Script: {fileID: 11500000, guid: ec40af56bc8453b4cbedbb0bcbc47943, type: 3} | ||
299 | + m_Name: | ||
300 | + m_EditorClassIdentifier: | ||
301 | + upForce: 200 | ||
302 | +--- !u!95 &625784448 | ||
303 | +Animator: | ||
304 | + serializedVersion: 3 | ||
305 | + m_ObjectHideFlags: 0 | ||
306 | + m_PrefabParentObject: {fileID: 0} | ||
307 | + m_PrefabInternal: {fileID: 0} | ||
308 | + m_GameObject: {fileID: 625784442} | ||
309 | + m_Enabled: 1 | ||
310 | + m_Avatar: {fileID: 0} | ||
311 | + m_Controller: {fileID: 9100000, guid: b287b335dbdc6814e972f36f77260521, type: 2} | ||
312 | + m_CullingMode: 0 | ||
313 | + m_UpdateMode: 0 | ||
314 | + m_ApplyRootMotion: 0 | ||
315 | + m_LinearVelocityBlending: 0 | ||
316 | + m_WarningMessage: | ||
317 | + m_HasTransformHierarchy: 1 | ||
318 | + m_AllowConstantClipSamplingOptimization: 1 | ||
319 | +--- !u!1 &630819422 | ||
320 | +GameObject: | ||
321 | + m_ObjectHideFlags: 0 | ||
322 | + m_PrefabParentObject: {fileID: 0} | ||
323 | + m_PrefabInternal: {fileID: 0} | ||
324 | + serializedVersion: 5 | ||
325 | + m_Component: | ||
326 | + - component: {fileID: 630819424} | ||
327 | + - component: {fileID: 630819423} | ||
328 | + m_Layer: 0 | ||
329 | + m_Name: GameControl | ||
330 | + m_TagString: Untagged | ||
331 | + m_Icon: {fileID: 0} | ||
332 | + m_NavMeshLayer: 0 | ||
333 | + m_StaticEditorFlags: 0 | ||
334 | + m_IsActive: 1 | ||
335 | +--- !u!114 &630819423 | ||
336 | +MonoBehaviour: | ||
337 | + m_ObjectHideFlags: 0 | ||
338 | + m_PrefabParentObject: {fileID: 0} | ||
339 | + m_PrefabInternal: {fileID: 0} | ||
340 | + m_GameObject: {fileID: 630819422} | ||
341 | + m_Enabled: 1 | ||
342 | + m_EditorHideFlags: 0 | ||
343 | + m_Script: {fileID: 11500000, guid: 40cf1fd6d5f973d4cbef0c3a00ba6d3a, type: 3} | ||
344 | + m_Name: | ||
345 | + m_EditorClassIdentifier: | ||
346 | + scoreText: {fileID: 1472281677} | ||
347 | + gameOvertext: {fileID: 1374875433} | ||
348 | + gameOver: 0 | ||
349 | + scrollSpeed: -1.5 | ||
350 | +--- !u!4 &630819424 | ||
351 | +Transform: | ||
352 | + m_ObjectHideFlags: 0 | ||
353 | + m_PrefabParentObject: {fileID: 0} | ||
354 | + m_PrefabInternal: {fileID: 0} | ||
355 | + m_GameObject: {fileID: 630819422} | ||
356 | + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
357 | + m_LocalPosition: {x: 0, y: 0, z: 0} | ||
358 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
359 | + m_Children: [] | ||
360 | + m_Father: {fileID: 0} | ||
361 | + m_RootOrder: 6 | ||
362 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
363 | +--- !u!1 &725369614 | ||
364 | +GameObject: | ||
365 | + m_ObjectHideFlags: 0 | ||
366 | + m_PrefabParentObject: {fileID: 0} | ||
367 | + m_PrefabInternal: {fileID: 0} | ||
368 | + serializedVersion: 5 | ||
369 | + m_Component: | ||
370 | + - component: {fileID: 725369620} | ||
371 | + - component: {fileID: 725369619} | ||
372 | + - component: {fileID: 725369618} | ||
373 | + - component: {fileID: 725369617} | ||
374 | + - component: {fileID: 725369616} | ||
375 | + - component: {fileID: 725369615} | ||
376 | + m_Layer: 0 | ||
377 | + m_Name: Ground (1) | ||
378 | + m_TagString: Untagged | ||
379 | + m_Icon: {fileID: 0} | ||
380 | + m_NavMeshLayer: 0 | ||
381 | + m_StaticEditorFlags: 0 | ||
382 | + m_IsActive: 1 | ||
383 | +--- !u!114 &725369615 | ||
384 | +MonoBehaviour: | ||
385 | + m_ObjectHideFlags: 0 | ||
386 | + m_PrefabParentObject: {fileID: 0} | ||
387 | + m_PrefabInternal: {fileID: 0} | ||
388 | + m_GameObject: {fileID: 725369614} | ||
389 | + m_Enabled: 1 | ||
390 | + m_EditorHideFlags: 0 | ||
391 | + m_Script: {fileID: 11500000, guid: fbfcbcfa5a0c15148b227cf5b6f9c878, type: 3} | ||
392 | + m_Name: | ||
393 | + m_EditorClassIdentifier: | ||
394 | +--- !u!114 &725369616 | ||
395 | +MonoBehaviour: | ||
396 | + m_ObjectHideFlags: 0 | ||
397 | + m_PrefabParentObject: {fileID: 0} | ||
398 | + m_PrefabInternal: {fileID: 0} | ||
399 | + m_GameObject: {fileID: 725369614} | ||
400 | + m_Enabled: 1 | ||
401 | + m_EditorHideFlags: 0 | ||
402 | + m_Script: {fileID: 11500000, guid: 7b1a752e74fb5054ca7c529e71e13e25, type: 3} | ||
403 | + m_Name: | ||
404 | + m_EditorClassIdentifier: | ||
405 | +--- !u!50 &725369617 | ||
406 | +Rigidbody2D: | ||
407 | + serializedVersion: 4 | ||
408 | + m_ObjectHideFlags: 0 | ||
409 | + m_PrefabParentObject: {fileID: 0} | ||
410 | + m_PrefabInternal: {fileID: 0} | ||
411 | + m_GameObject: {fileID: 725369614} | ||
412 | + m_BodyType: 1 | ||
413 | + m_Simulated: 1 | ||
414 | + m_UseFullKinematicContacts: 0 | ||
415 | + m_UseAutoMass: 0 | ||
416 | + m_Mass: 1 | ||
417 | + m_LinearDrag: 0 | ||
418 | + m_AngularDrag: 0.05 | ||
419 | + m_GravityScale: 1 | ||
420 | + m_Material: {fileID: 0} | ||
421 | + m_Interpolate: 0 | ||
422 | + m_SleepingMode: 1 | ||
423 | + m_CollisionDetection: 0 | ||
424 | + m_Constraints: 0 | ||
425 | +--- !u!61 &725369618 | ||
426 | +BoxCollider2D: | ||
427 | + m_ObjectHideFlags: 0 | ||
428 | + m_PrefabParentObject: {fileID: 0} | ||
429 | + m_PrefabInternal: {fileID: 0} | ||
430 | + m_GameObject: {fileID: 725369614} | ||
431 | + m_Enabled: 1 | ||
432 | + m_Density: 1 | ||
433 | + m_Material: {fileID: 0} | ||
434 | + m_IsTrigger: 0 | ||
435 | + m_UsedByEffector: 0 | ||
436 | + m_UsedByComposite: 0 | ||
437 | + m_Offset: {x: 0, y: -1.28} | ||
438 | + m_SpriteTilingProperty: | ||
439 | + border: {x: 0, y: 0, z: 0, w: 0} | ||
440 | + pivot: {x: 0.5, y: 0.5} | ||
441 | + oldSize: {x: 20.48, y: 5.12} | ||
442 | + newSize: {x: 20.48, y: 5.12} | ||
443 | + adaptiveTilingThreshold: 0.5 | ||
444 | + drawMode: 0 | ||
445 | + adaptiveTiling: 0 | ||
446 | + m_AutoTiling: 0 | ||
447 | + serializedVersion: 2 | ||
448 | + m_Size: {x: 20.48, y: 2.56} | ||
449 | + m_EdgeRadius: 0 | ||
450 | +--- !u!212 &725369619 | ||
451 | +SpriteRenderer: | ||
452 | + m_ObjectHideFlags: 0 | ||
453 | + m_PrefabParentObject: {fileID: 0} | ||
454 | + m_PrefabInternal: {fileID: 0} | ||
455 | + m_GameObject: {fileID: 725369614} | ||
456 | + m_Enabled: 1 | ||
457 | + m_CastShadows: 0 | ||
458 | + m_ReceiveShadows: 0 | ||
459 | + m_DynamicOccludee: 1 | ||
460 | + m_MotionVectors: 1 | ||
461 | + m_LightProbeUsage: 1 | ||
462 | + m_ReflectionProbeUsage: 1 | ||
463 | + m_Materials: | ||
464 | + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} | ||
465 | + m_StaticBatchInfo: | ||
466 | + firstSubMesh: 0 | ||
467 | + subMeshCount: 0 | ||
468 | + m_StaticBatchRoot: {fileID: 0} | ||
469 | + m_ProbeAnchor: {fileID: 0} | ||
470 | + m_LightProbeVolumeOverride: {fileID: 0} | ||
471 | + m_ScaleInLightmap: 1 | ||
472 | + m_PreserveUVs: 0 | ||
473 | + m_IgnoreNormalsForChartDetection: 0 | ||
474 | + m_ImportantGI: 0 | ||
475 | + m_StitchLightmapSeams: 0 | ||
476 | + m_SelectedEditorRenderState: 0 | ||
477 | + m_MinimumChartSize: 4 | ||
478 | + m_AutoUVMaxDistance: 0.5 | ||
479 | + m_AutoUVMaxAngle: 89 | ||
480 | + m_LightmapParameters: {fileID: 0} | ||
481 | + m_SortingLayerID: 1403543497 | ||
482 | + m_SortingLayer: 3 | ||
483 | + m_SortingOrder: 0 | ||
484 | + m_Sprite: {fileID: 21300000, guid: 646ba64a995b11045865c637d69ba84e, type: 3} | ||
485 | + m_Color: {r: 1, g: 1, b: 1, a: 1} | ||
486 | + m_FlipX: 0 | ||
487 | + m_FlipY: 0 | ||
488 | + m_DrawMode: 0 | ||
489 | + m_Size: {x: 20.48, y: 5.12} | ||
490 | + m_AdaptiveModeThreshold: 0.5 | ||
491 | + m_SpriteTileMode: 0 | ||
492 | + m_WasSpriteAssigned: 1 | ||
493 | + m_MaskInteraction: 0 | ||
494 | +--- !u!4 &725369620 | ||
495 | +Transform: | ||
496 | + m_ObjectHideFlags: 0 | ||
497 | + m_PrefabParentObject: {fileID: 0} | ||
498 | + m_PrefabInternal: {fileID: 0} | ||
499 | + m_GameObject: {fileID: 725369614} | ||
500 | + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
501 | + m_LocalPosition: {x: 20.47, y: -3, z: 0} | ||
502 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
503 | + m_Children: | ||
504 | + - {fileID: 1305724275} | ||
505 | + m_Father: {fileID: 0} | ||
506 | + m_RootOrder: 3 | ||
507 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
508 | +--- !u!1 &787515954 | ||
509 | +GameObject: | ||
510 | + m_ObjectHideFlags: 0 | ||
511 | + m_PrefabParentObject: {fileID: 0} | ||
512 | + m_PrefabInternal: {fileID: 0} | ||
513 | + serializedVersion: 5 | ||
514 | + m_Component: | ||
515 | + - component: {fileID: 787515958} | ||
516 | + - component: {fileID: 787515957} | ||
517 | + - component: {fileID: 787515956} | ||
518 | + - component: {fileID: 787515955} | ||
519 | + m_Layer: 0 | ||
520 | + m_Name: Main Camera | ||
521 | + m_TagString: MainCamera | ||
522 | + m_Icon: {fileID: 0} | ||
523 | + m_NavMeshLayer: 0 | ||
524 | + m_StaticEditorFlags: 0 | ||
525 | + m_IsActive: 1 | ||
526 | +--- !u!81 &787515955 | ||
527 | +AudioListener: | ||
528 | + m_ObjectHideFlags: 0 | ||
529 | + m_PrefabParentObject: {fileID: 0} | ||
530 | + m_PrefabInternal: {fileID: 0} | ||
531 | + m_GameObject: {fileID: 787515954} | ||
532 | + m_Enabled: 1 | ||
533 | +--- !u!124 &787515956 | ||
534 | +Behaviour: | ||
535 | + m_ObjectHideFlags: 0 | ||
536 | + m_PrefabParentObject: {fileID: 0} | ||
537 | + m_PrefabInternal: {fileID: 0} | ||
538 | + m_GameObject: {fileID: 787515954} | ||
539 | + m_Enabled: 1 | ||
540 | +--- !u!20 &787515957 | ||
541 | +Camera: | ||
542 | + m_ObjectHideFlags: 0 | ||
543 | + m_PrefabParentObject: {fileID: 0} | ||
544 | + m_PrefabInternal: {fileID: 0} | ||
545 | + m_GameObject: {fileID: 787515954} | ||
546 | + m_Enabled: 1 | ||
547 | + serializedVersion: 2 | ||
548 | + m_ClearFlags: 1 | ||
549 | + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} | ||
550 | + m_NormalizedViewPortRect: | ||
551 | + serializedVersion: 2 | ||
552 | + x: 0 | ||
553 | + y: 0 | ||
554 | + width: 1 | ||
555 | + height: 1 | ||
556 | + near clip plane: 0.3 | ||
557 | + far clip plane: 1000 | ||
558 | + field of view: 60 | ||
559 | + orthographic: 1 | ||
560 | + orthographic size: 5 | ||
561 | + m_Depth: -1 | ||
562 | + m_CullingMask: | ||
563 | + serializedVersion: 2 | ||
564 | + m_Bits: 4294967295 | ||
565 | + m_RenderingPath: -1 | ||
566 | + m_TargetTexture: {fileID: 0} | ||
567 | + m_TargetDisplay: 0 | ||
568 | + m_TargetEye: 3 | ||
569 | + m_HDR: 1 | ||
570 | + m_AllowMSAA: 1 | ||
571 | + m_AllowDynamicResolution: 0 | ||
572 | + m_ForceIntoRT: 0 | ||
573 | + m_OcclusionCulling: 1 | ||
574 | + m_StereoConvergence: 10 | ||
575 | + m_StereoSeparation: 0.022 | ||
576 | +--- !u!4 &787515958 | ||
577 | +Transform: | ||
578 | + m_ObjectHideFlags: 0 | ||
579 | + m_PrefabParentObject: {fileID: 0} | ||
580 | + m_PrefabInternal: {fileID: 0} | ||
581 | + m_GameObject: {fileID: 787515954} | ||
582 | + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
583 | + m_LocalPosition: {x: 0, y: 0, z: -10} | ||
584 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
585 | + m_Children: [] | ||
586 | + m_Father: {fileID: 0} | ||
587 | + m_RootOrder: 0 | ||
588 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
589 | +--- !u!1 &1137182426 | ||
590 | +GameObject: | ||
591 | + m_ObjectHideFlags: 0 | ||
592 | + m_PrefabParentObject: {fileID: 0} | ||
593 | + m_PrefabInternal: {fileID: 0} | ||
594 | + serializedVersion: 5 | ||
595 | + m_Component: | ||
596 | + - component: {fileID: 1137182429} | ||
597 | + - component: {fileID: 1137182428} | ||
598 | + - component: {fileID: 1137182427} | ||
599 | + - component: {fileID: 1137182430} | ||
600 | + - component: {fileID: 1137182431} | ||
601 | + - component: {fileID: 1137182432} | ||
602 | + m_Layer: 0 | ||
603 | + m_Name: Ground | ||
604 | + m_TagString: Untagged | ||
605 | + m_Icon: {fileID: 0} | ||
606 | + m_NavMeshLayer: 0 | ||
607 | + m_StaticEditorFlags: 0 | ||
608 | + m_IsActive: 1 | ||
609 | +--- !u!61 &1137182427 | ||
610 | +BoxCollider2D: | ||
611 | + m_ObjectHideFlags: 0 | ||
612 | + m_PrefabParentObject: {fileID: 0} | ||
613 | + m_PrefabInternal: {fileID: 0} | ||
614 | + m_GameObject: {fileID: 1137182426} | ||
615 | + m_Enabled: 1 | ||
616 | + m_Density: 1 | ||
617 | + m_Material: {fileID: 0} | ||
618 | + m_IsTrigger: 0 | ||
619 | + m_UsedByEffector: 0 | ||
620 | + m_UsedByComposite: 0 | ||
621 | + m_Offset: {x: 0, y: -1.28} | ||
622 | + m_SpriteTilingProperty: | ||
623 | + border: {x: 0, y: 0, z: 0, w: 0} | ||
624 | + pivot: {x: 0.5, y: 0.5} | ||
625 | + oldSize: {x: 20.48, y: 5.12} | ||
626 | + newSize: {x: 20.48, y: 5.12} | ||
627 | + adaptiveTilingThreshold: 0.5 | ||
628 | + drawMode: 0 | ||
629 | + adaptiveTiling: 0 | ||
630 | + m_AutoTiling: 0 | ||
631 | + serializedVersion: 2 | ||
632 | + m_Size: {x: 20.48, y: 2.56} | ||
633 | + m_EdgeRadius: 0 | ||
634 | +--- !u!212 &1137182428 | ||
635 | +SpriteRenderer: | ||
636 | + m_ObjectHideFlags: 0 | ||
637 | + m_PrefabParentObject: {fileID: 0} | ||
638 | + m_PrefabInternal: {fileID: 0} | ||
639 | + m_GameObject: {fileID: 1137182426} | ||
640 | + m_Enabled: 1 | ||
641 | + m_CastShadows: 0 | ||
642 | + m_ReceiveShadows: 0 | ||
643 | + m_DynamicOccludee: 1 | ||
644 | + m_MotionVectors: 1 | ||
645 | + m_LightProbeUsage: 1 | ||
646 | + m_ReflectionProbeUsage: 1 | ||
647 | + m_Materials: | ||
648 | + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} | ||
649 | + m_StaticBatchInfo: | ||
650 | + firstSubMesh: 0 | ||
651 | + subMeshCount: 0 | ||
652 | + m_StaticBatchRoot: {fileID: 0} | ||
653 | + m_ProbeAnchor: {fileID: 0} | ||
654 | + m_LightProbeVolumeOverride: {fileID: 0} | ||
655 | + m_ScaleInLightmap: 1 | ||
656 | + m_PreserveUVs: 0 | ||
657 | + m_IgnoreNormalsForChartDetection: 0 | ||
658 | + m_ImportantGI: 0 | ||
659 | + m_StitchLightmapSeams: 0 | ||
660 | + m_SelectedEditorRenderState: 0 | ||
661 | + m_MinimumChartSize: 4 | ||
662 | + m_AutoUVMaxDistance: 0.5 | ||
663 | + m_AutoUVMaxAngle: 89 | ||
664 | + m_LightmapParameters: {fileID: 0} | ||
665 | + m_SortingLayerID: 1403543497 | ||
666 | + m_SortingLayer: 3 | ||
667 | + m_SortingOrder: 0 | ||
668 | + m_Sprite: {fileID: 21300000, guid: 646ba64a995b11045865c637d69ba84e, type: 3} | ||
669 | + m_Color: {r: 1, g: 1, b: 1, a: 1} | ||
670 | + m_FlipX: 0 | ||
671 | + m_FlipY: 0 | ||
672 | + m_DrawMode: 0 | ||
673 | + m_Size: {x: 20.48, y: 5.12} | ||
674 | + m_AdaptiveModeThreshold: 0.5 | ||
675 | + m_SpriteTileMode: 0 | ||
676 | + m_WasSpriteAssigned: 1 | ||
677 | + m_MaskInteraction: 0 | ||
678 | +--- !u!4 &1137182429 | ||
679 | +Transform: | ||
680 | + m_ObjectHideFlags: 0 | ||
681 | + m_PrefabParentObject: {fileID: 0} | ||
682 | + m_PrefabInternal: {fileID: 0} | ||
683 | + m_GameObject: {fileID: 1137182426} | ||
684 | + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
685 | + m_LocalPosition: {x: 0, y: -3, z: 0} | ||
686 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
687 | + m_Children: | ||
688 | + - {fileID: 1354322671} | ||
689 | + m_Father: {fileID: 0} | ||
690 | + m_RootOrder: 2 | ||
691 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
692 | +--- !u!50 &1137182430 | ||
693 | +Rigidbody2D: | ||
694 | + serializedVersion: 4 | ||
695 | + m_ObjectHideFlags: 0 | ||
696 | + m_PrefabParentObject: {fileID: 0} | ||
697 | + m_PrefabInternal: {fileID: 0} | ||
698 | + m_GameObject: {fileID: 1137182426} | ||
699 | + m_BodyType: 1 | ||
700 | + m_Simulated: 1 | ||
701 | + m_UseFullKinematicContacts: 0 | ||
702 | + m_UseAutoMass: 0 | ||
703 | + m_Mass: 1 | ||
704 | + m_LinearDrag: 0 | ||
705 | + m_AngularDrag: 0.05 | ||
706 | + m_GravityScale: 1 | ||
707 | + m_Material: {fileID: 0} | ||
708 | + m_Interpolate: 0 | ||
709 | + m_SleepingMode: 1 | ||
710 | + m_CollisionDetection: 0 | ||
711 | + m_Constraints: 0 | ||
712 | +--- !u!114 &1137182431 | ||
713 | +MonoBehaviour: | ||
714 | + m_ObjectHideFlags: 0 | ||
715 | + m_PrefabParentObject: {fileID: 0} | ||
716 | + m_PrefabInternal: {fileID: 0} | ||
717 | + m_GameObject: {fileID: 1137182426} | ||
718 | + m_Enabled: 1 | ||
719 | + m_EditorHideFlags: 0 | ||
720 | + m_Script: {fileID: 11500000, guid: 7b1a752e74fb5054ca7c529e71e13e25, type: 3} | ||
721 | + m_Name: | ||
722 | + m_EditorClassIdentifier: | ||
723 | +--- !u!114 &1137182432 | ||
724 | +MonoBehaviour: | ||
725 | + m_ObjectHideFlags: 0 | ||
726 | + m_PrefabParentObject: {fileID: 0} | ||
727 | + m_PrefabInternal: {fileID: 0} | ||
728 | + m_GameObject: {fileID: 1137182426} | ||
729 | + m_Enabled: 1 | ||
730 | + m_EditorHideFlags: 0 | ||
731 | + m_Script: {fileID: 11500000, guid: fbfcbcfa5a0c15148b227cf5b6f9c878, type: 3} | ||
732 | + m_Name: | ||
733 | + m_EditorClassIdentifier: | ||
734 | +--- !u!1 &1305724274 | ||
735 | +GameObject: | ||
736 | + m_ObjectHideFlags: 0 | ||
737 | + m_PrefabParentObject: {fileID: 0} | ||
738 | + m_PrefabInternal: {fileID: 0} | ||
739 | + serializedVersion: 5 | ||
740 | + m_Component: | ||
741 | + - component: {fileID: 1305724275} | ||
742 | + - component: {fileID: 1305724276} | ||
743 | + m_Layer: 0 | ||
744 | + m_Name: Sky | ||
745 | + m_TagString: Untagged | ||
746 | + m_Icon: {fileID: 0} | ||
747 | + m_NavMeshLayer: 0 | ||
748 | + m_StaticEditorFlags: 0 | ||
749 | + m_IsActive: 1 | ||
750 | +--- !u!4 &1305724275 | ||
751 | +Transform: | ||
752 | + m_ObjectHideFlags: 0 | ||
753 | + m_PrefabParentObject: {fileID: 0} | ||
754 | + m_PrefabInternal: {fileID: 0} | ||
755 | + m_GameObject: {fileID: 1305724274} | ||
756 | + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
757 | + m_LocalPosition: {x: 0, y: 3, z: 0} | ||
758 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
759 | + m_Children: [] | ||
760 | + m_Father: {fileID: 725369620} | ||
761 | + m_RootOrder: 0 | ||
762 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
763 | +--- !u!212 &1305724276 | ||
764 | +SpriteRenderer: | ||
765 | + m_ObjectHideFlags: 0 | ||
766 | + m_PrefabParentObject: {fileID: 0} | ||
767 | + m_PrefabInternal: {fileID: 0} | ||
768 | + m_GameObject: {fileID: 1305724274} | ||
769 | + m_Enabled: 1 | ||
770 | + m_CastShadows: 0 | ||
771 | + m_ReceiveShadows: 0 | ||
772 | + m_DynamicOccludee: 1 | ||
773 | + m_MotionVectors: 1 | ||
774 | + m_LightProbeUsage: 1 | ||
775 | + m_ReflectionProbeUsage: 1 | ||
776 | + m_Materials: | ||
777 | + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} | ||
778 | + m_StaticBatchInfo: | ||
779 | + firstSubMesh: 0 | ||
780 | + subMeshCount: 0 | ||
781 | + m_StaticBatchRoot: {fileID: 0} | ||
782 | + m_ProbeAnchor: {fileID: 0} | ||
783 | + m_LightProbeVolumeOverride: {fileID: 0} | ||
784 | + m_ScaleInLightmap: 1 | ||
785 | + m_PreserveUVs: 0 | ||
786 | + m_IgnoreNormalsForChartDetection: 0 | ||
787 | + m_ImportantGI: 0 | ||
788 | + m_StitchLightmapSeams: 0 | ||
789 | + m_SelectedEditorRenderState: 0 | ||
790 | + m_MinimumChartSize: 4 | ||
791 | + m_AutoUVMaxDistance: 0.5 | ||
792 | + m_AutoUVMaxAngle: 89 | ||
793 | + m_LightmapParameters: {fileID: 0} | ||
794 | + m_SortingLayerID: -2098274951 | ||
795 | + m_SortingLayer: 1 | ||
796 | + m_SortingOrder: 0 | ||
797 | + m_Sprite: {fileID: 21300000, guid: 1543d7b8032198341b61c3c08aa7502e, type: 3} | ||
798 | + m_Color: {r: 1, g: 1, b: 1, a: 1} | ||
799 | + m_FlipX: 0 | ||
800 | + m_FlipY: 0 | ||
801 | + m_DrawMode: 0 | ||
802 | + m_Size: {x: 20.48, y: 10.24} | ||
803 | + m_AdaptiveModeThreshold: 0.5 | ||
804 | + m_SpriteTileMode: 0 | ||
805 | + m_WasSpriteAssigned: 1 | ||
806 | + m_MaskInteraction: 0 | ||
807 | +--- !u!1 &1354322670 | ||
808 | +GameObject: | ||
809 | + m_ObjectHideFlags: 0 | ||
810 | + m_PrefabParentObject: {fileID: 0} | ||
811 | + m_PrefabInternal: {fileID: 0} | ||
812 | + serializedVersion: 5 | ||
813 | + m_Component: | ||
814 | + - component: {fileID: 1354322671} | ||
815 | + - component: {fileID: 1354322672} | ||
816 | + m_Layer: 0 | ||
817 | + m_Name: Sky | ||
818 | + m_TagString: Untagged | ||
819 | + m_Icon: {fileID: 0} | ||
820 | + m_NavMeshLayer: 0 | ||
821 | + m_StaticEditorFlags: 0 | ||
822 | + m_IsActive: 1 | ||
823 | +--- !u!4 &1354322671 | ||
824 | +Transform: | ||
825 | + m_ObjectHideFlags: 0 | ||
826 | + m_PrefabParentObject: {fileID: 0} | ||
827 | + m_PrefabInternal: {fileID: 0} | ||
828 | + m_GameObject: {fileID: 1354322670} | ||
829 | + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
830 | + m_LocalPosition: {x: 0, y: 3, z: 0} | ||
831 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
832 | + m_Children: [] | ||
833 | + m_Father: {fileID: 1137182429} | ||
834 | + m_RootOrder: 0 | ||
835 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
836 | +--- !u!212 &1354322672 | ||
837 | +SpriteRenderer: | ||
838 | + m_ObjectHideFlags: 0 | ||
839 | + m_PrefabParentObject: {fileID: 0} | ||
840 | + m_PrefabInternal: {fileID: 0} | ||
841 | + m_GameObject: {fileID: 1354322670} | ||
842 | + m_Enabled: 1 | ||
843 | + m_CastShadows: 0 | ||
844 | + m_ReceiveShadows: 0 | ||
845 | + m_DynamicOccludee: 1 | ||
846 | + m_MotionVectors: 1 | ||
847 | + m_LightProbeUsage: 1 | ||
848 | + m_ReflectionProbeUsage: 1 | ||
849 | + m_Materials: | ||
850 | + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} | ||
851 | + m_StaticBatchInfo: | ||
852 | + firstSubMesh: 0 | ||
853 | + subMeshCount: 0 | ||
854 | + m_StaticBatchRoot: {fileID: 0} | ||
855 | + m_ProbeAnchor: {fileID: 0} | ||
856 | + m_LightProbeVolumeOverride: {fileID: 0} | ||
857 | + m_ScaleInLightmap: 1 | ||
858 | + m_PreserveUVs: 0 | ||
859 | + m_IgnoreNormalsForChartDetection: 0 | ||
860 | + m_ImportantGI: 0 | ||
861 | + m_StitchLightmapSeams: 0 | ||
862 | + m_SelectedEditorRenderState: 0 | ||
863 | + m_MinimumChartSize: 4 | ||
864 | + m_AutoUVMaxDistance: 0.5 | ||
865 | + m_AutoUVMaxAngle: 89 | ||
866 | + m_LightmapParameters: {fileID: 0} | ||
867 | + m_SortingLayerID: -2098274951 | ||
868 | + m_SortingLayer: 1 | ||
869 | + m_SortingOrder: 0 | ||
870 | + m_Sprite: {fileID: 21300000, guid: 1543d7b8032198341b61c3c08aa7502e, type: 3} | ||
871 | + m_Color: {r: 1, g: 1, b: 1, a: 1} | ||
872 | + m_FlipX: 0 | ||
873 | + m_FlipY: 0 | ||
874 | + m_DrawMode: 0 | ||
875 | + m_Size: {x: 20.48, y: 10.24} | ||
876 | + m_AdaptiveModeThreshold: 0.5 | ||
877 | + m_SpriteTileMode: 0 | ||
878 | + m_WasSpriteAssigned: 1 | ||
879 | + m_MaskInteraction: 0 | ||
880 | +--- !u!1 &1374875433 | ||
881 | +GameObject: | ||
882 | + m_ObjectHideFlags: 0 | ||
883 | + m_PrefabParentObject: {fileID: 0} | ||
884 | + m_PrefabInternal: {fileID: 0} | ||
885 | + serializedVersion: 5 | ||
886 | + m_Component: | ||
887 | + - component: {fileID: 1374875434} | ||
888 | + - component: {fileID: 1374875437} | ||
889 | + - component: {fileID: 1374875436} | ||
890 | + - component: {fileID: 1374875435} | ||
891 | + m_Layer: 5 | ||
892 | + m_Name: GameOver Text | ||
893 | + m_TagString: Untagged | ||
894 | + m_Icon: {fileID: 0} | ||
895 | + m_NavMeshLayer: 0 | ||
896 | + m_StaticEditorFlags: 0 | ||
897 | + m_IsActive: 0 | ||
898 | +--- !u!224 &1374875434 | ||
899 | +RectTransform: | ||
900 | + m_ObjectHideFlags: 0 | ||
901 | + m_PrefabParentObject: {fileID: 0} | ||
902 | + m_PrefabInternal: {fileID: 0} | ||
903 | + m_GameObject: {fileID: 1374875433} | ||
904 | + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} | ||
905 | + m_LocalPosition: {x: 0, y: 0, z: 0} | ||
906 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
907 | + m_Children: | ||
908 | + - {fileID: 1897390451} | ||
909 | + m_Father: {fileID: 1462165167} | ||
910 | + m_RootOrder: 1 | ||
911 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
912 | + m_AnchorMin: {x: 0.5, y: 1} | ||
913 | + m_AnchorMax: {x: 0.5, y: 1} | ||
914 | + m_AnchoredPosition: {x: 0, y: -34.2} | ||
915 | + m_SizeDelta: {x: 160, y: 30} | ||
916 | + m_Pivot: {x: 0.5, y: 0.5} | ||
917 | +--- !u!114 &1374875435 | ||
918 | +MonoBehaviour: | ||
919 | + m_ObjectHideFlags: 0 | ||
920 | + m_PrefabParentObject: {fileID: 0} | ||
921 | + m_PrefabInternal: {fileID: 0} | ||
922 | + m_GameObject: {fileID: 1374875433} | ||
923 | + m_Enabled: 1 | ||
924 | + m_EditorHideFlags: 0 | ||
925 | + m_Script: {fileID: 1573420865, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} | ||
926 | + m_Name: | ||
927 | + m_EditorClassIdentifier: | ||
928 | + m_EffectColor: {r: 0, g: 0, b: 0, a: 0.5} | ||
929 | + m_EffectDistance: {x: 2, y: 2} | ||
930 | + m_UseGraphicAlpha: 1 | ||
931 | +--- !u!114 &1374875436 | ||
932 | +MonoBehaviour: | ||
933 | + m_ObjectHideFlags: 0 | ||
934 | + m_PrefabParentObject: {fileID: 0} | ||
935 | + m_PrefabInternal: {fileID: 0} | ||
936 | + m_GameObject: {fileID: 1374875433} | ||
937 | + m_Enabled: 1 | ||
938 | + m_EditorHideFlags: 0 | ||
939 | + m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} | ||
940 | + m_Name: | ||
941 | + m_EditorClassIdentifier: | ||
942 | + m_Material: {fileID: 0} | ||
943 | + m_Color: {r: 1, g: 1, b: 1, a: 1} | ||
944 | + m_RaycastTarget: 1 | ||
945 | + m_OnCullStateChanged: | ||
946 | + m_PersistentCalls: | ||
947 | + m_Calls: [] | ||
948 | + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, | ||
949 | + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | ||
950 | + m_FontData: | ||
951 | + m_Font: {fileID: 12800000, guid: 3a94f0ec6a1bae64bb1c1e74a9e30ad3, type: 3} | ||
952 | + m_FontSize: 40 | ||
953 | + m_FontStyle: 0 | ||
954 | + m_BestFit: 0 | ||
955 | + m_MinSize: 10 | ||
956 | + m_MaxSize: 67 | ||
957 | + m_Alignment: 4 | ||
958 | + m_AlignByGeometry: 0 | ||
959 | + m_RichText: 1 | ||
960 | + m_HorizontalOverflow: 1 | ||
961 | + m_VerticalOverflow: 1 | ||
962 | + m_LineSpacing: 1 | ||
963 | + m_Text: GameOver | ||
964 | +--- !u!222 &1374875437 | ||
965 | +CanvasRenderer: | ||
966 | + m_ObjectHideFlags: 0 | ||
967 | + m_PrefabParentObject: {fileID: 0} | ||
968 | + m_PrefabInternal: {fileID: 0} | ||
969 | + m_GameObject: {fileID: 1374875433} | ||
970 | +--- !u!1 &1462165163 | ||
971 | +GameObject: | ||
972 | + m_ObjectHideFlags: 0 | ||
973 | + m_PrefabParentObject: {fileID: 0} | ||
974 | + m_PrefabInternal: {fileID: 0} | ||
975 | + serializedVersion: 5 | ||
976 | + m_Component: | ||
977 | + - component: {fileID: 1462165167} | ||
978 | + - component: {fileID: 1462165166} | ||
979 | + - component: {fileID: 1462165165} | ||
980 | + - component: {fileID: 1462165164} | ||
981 | + m_Layer: 5 | ||
982 | + m_Name: Canvas | ||
983 | + m_TagString: Untagged | ||
984 | + m_Icon: {fileID: 0} | ||
985 | + m_NavMeshLayer: 0 | ||
986 | + m_StaticEditorFlags: 0 | ||
987 | + m_IsActive: 1 | ||
988 | +--- !u!114 &1462165164 | ||
989 | +MonoBehaviour: | ||
990 | + m_ObjectHideFlags: 0 | ||
991 | + m_PrefabParentObject: {fileID: 0} | ||
992 | + m_PrefabInternal: {fileID: 0} | ||
993 | + m_GameObject: {fileID: 1462165163} | ||
994 | + m_Enabled: 1 | ||
995 | + m_EditorHideFlags: 0 | ||
996 | + m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} | ||
997 | + m_Name: | ||
998 | + m_EditorClassIdentifier: | ||
999 | + m_IgnoreReversedGraphics: 1 | ||
1000 | + m_BlockingObjects: 0 | ||
1001 | + m_BlockingMask: | ||
1002 | + serializedVersion: 2 | ||
1003 | + m_Bits: 4294967295 | ||
1004 | +--- !u!114 &1462165165 | ||
1005 | +MonoBehaviour: | ||
1006 | + m_ObjectHideFlags: 0 | ||
1007 | + m_PrefabParentObject: {fileID: 0} | ||
1008 | + m_PrefabInternal: {fileID: 0} | ||
1009 | + m_GameObject: {fileID: 1462165163} | ||
1010 | + m_Enabled: 1 | ||
1011 | + m_EditorHideFlags: 0 | ||
1012 | + m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} | ||
1013 | + m_Name: | ||
1014 | + m_EditorClassIdentifier: | ||
1015 | + m_UiScaleMode: 0 | ||
1016 | + m_ReferencePixelsPerUnit: 100 | ||
1017 | + m_ScaleFactor: 1 | ||
1018 | + m_ReferenceResolution: {x: 800, y: 600} | ||
1019 | + m_ScreenMatchMode: 0 | ||
1020 | + m_MatchWidthOrHeight: 0 | ||
1021 | + m_PhysicalUnit: 3 | ||
1022 | + m_FallbackScreenDPI: 96 | ||
1023 | + m_DefaultSpriteDPI: 96 | ||
1024 | + m_DynamicPixelsPerUnit: 1 | ||
1025 | +--- !u!223 &1462165166 | ||
1026 | +Canvas: | ||
1027 | + m_ObjectHideFlags: 0 | ||
1028 | + m_PrefabParentObject: {fileID: 0} | ||
1029 | + m_PrefabInternal: {fileID: 0} | ||
1030 | + m_GameObject: {fileID: 1462165163} | ||
1031 | + m_Enabled: 1 | ||
1032 | + serializedVersion: 3 | ||
1033 | + m_RenderMode: 0 | ||
1034 | + m_Camera: {fileID: 0} | ||
1035 | + m_PlaneDistance: 100 | ||
1036 | + m_PixelPerfect: 0 | ||
1037 | + m_ReceivesEvents: 1 | ||
1038 | + m_OverrideSorting: 0 | ||
1039 | + m_OverridePixelPerfect: 0 | ||
1040 | + m_SortingBucketNormalizedSize: 0 | ||
1041 | + m_AdditionalShaderChannelsFlag: 0 | ||
1042 | + m_SortingLayerID: 0 | ||
1043 | + m_SortingOrder: 0 | ||
1044 | + m_TargetDisplay: 0 | ||
1045 | +--- !u!224 &1462165167 | ||
1046 | +RectTransform: | ||
1047 | + m_ObjectHideFlags: 0 | ||
1048 | + m_PrefabParentObject: {fileID: 0} | ||
1049 | + m_PrefabInternal: {fileID: 0} | ||
1050 | + m_GameObject: {fileID: 1462165163} | ||
1051 | + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
1052 | + m_LocalPosition: {x: 0, y: 0, z: 0} | ||
1053 | + m_LocalScale: {x: 0, y: 0, z: 0} | ||
1054 | + m_Children: | ||
1055 | + - {fileID: 1472281675} | ||
1056 | + - {fileID: 1374875434} | ||
1057 | + m_Father: {fileID: 0} | ||
1058 | + m_RootOrder: 4 | ||
1059 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
1060 | + m_AnchorMin: {x: 0, y: 0} | ||
1061 | + m_AnchorMax: {x: 0, y: 0} | ||
1062 | + m_AnchoredPosition: {x: 0, y: 0} | ||
1063 | + m_SizeDelta: {x: 0, y: 0} | ||
1064 | + m_Pivot: {x: 0, y: 0} | ||
1065 | +--- !u!1 &1472281674 | ||
1066 | +GameObject: | ||
1067 | + m_ObjectHideFlags: 0 | ||
1068 | + m_PrefabParentObject: {fileID: 0} | ||
1069 | + m_PrefabInternal: {fileID: 0} | ||
1070 | + serializedVersion: 5 | ||
1071 | + m_Component: | ||
1072 | + - component: {fileID: 1472281675} | ||
1073 | + - component: {fileID: 1472281678} | ||
1074 | + - component: {fileID: 1472281677} | ||
1075 | + - component: {fileID: 1472281676} | ||
1076 | + m_Layer: 5 | ||
1077 | + m_Name: ScoreText | ||
1078 | + m_TagString: Untagged | ||
1079 | + m_Icon: {fileID: 0} | ||
1080 | + m_NavMeshLayer: 0 | ||
1081 | + m_StaticEditorFlags: 0 | ||
1082 | + m_IsActive: 1 | ||
1083 | +--- !u!224 &1472281675 | ||
1084 | +RectTransform: | ||
1085 | + m_ObjectHideFlags: 0 | ||
1086 | + m_PrefabParentObject: {fileID: 0} | ||
1087 | + m_PrefabInternal: {fileID: 0} | ||
1088 | + m_GameObject: {fileID: 1472281674} | ||
1089 | + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
1090 | + m_LocalPosition: {x: 0, y: 0, z: 0} | ||
1091 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
1092 | + m_Children: [] | ||
1093 | + m_Father: {fileID: 1462165167} | ||
1094 | + m_RootOrder: 0 | ||
1095 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
1096 | + m_AnchorMin: {x: 0.5, y: 0} | ||
1097 | + m_AnchorMax: {x: 0.5, y: 0} | ||
1098 | + m_AnchoredPosition: {x: 0, y: 15} | ||
1099 | + m_SizeDelta: {x: 160, y: 30} | ||
1100 | + m_Pivot: {x: 0.5, y: 0.5} | ||
1101 | +--- !u!114 &1472281676 | ||
1102 | +MonoBehaviour: | ||
1103 | + m_ObjectHideFlags: 0 | ||
1104 | + m_PrefabParentObject: {fileID: 0} | ||
1105 | + m_PrefabInternal: {fileID: 0} | ||
1106 | + m_GameObject: {fileID: 1472281674} | ||
1107 | + m_Enabled: 1 | ||
1108 | + m_EditorHideFlags: 0 | ||
1109 | + m_Script: {fileID: 1573420865, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} | ||
1110 | + m_Name: | ||
1111 | + m_EditorClassIdentifier: | ||
1112 | + m_EffectColor: {r: 0, g: 0, b: 0, a: 0.5} | ||
1113 | + m_EffectDistance: {x: 2, y: 2} | ||
1114 | + m_UseGraphicAlpha: 1 | ||
1115 | +--- !u!114 &1472281677 | ||
1116 | +MonoBehaviour: | ||
1117 | + m_ObjectHideFlags: 0 | ||
1118 | + m_PrefabParentObject: {fileID: 0} | ||
1119 | + m_PrefabInternal: {fileID: 0} | ||
1120 | + m_GameObject: {fileID: 1472281674} | ||
1121 | + m_Enabled: 1 | ||
1122 | + m_EditorHideFlags: 0 | ||
1123 | + m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} | ||
1124 | + m_Name: | ||
1125 | + m_EditorClassIdentifier: | ||
1126 | + m_Material: {fileID: 0} | ||
1127 | + m_Color: {r: 1, g: 1, b: 1, a: 1} | ||
1128 | + m_RaycastTarget: 1 | ||
1129 | + m_OnCullStateChanged: | ||
1130 | + m_PersistentCalls: | ||
1131 | + m_Calls: [] | ||
1132 | + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, | ||
1133 | + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | ||
1134 | + m_FontData: | ||
1135 | + m_Font: {fileID: 12800000, guid: 3a94f0ec6a1bae64bb1c1e74a9e30ad3, type: 3} | ||
1136 | + m_FontSize: 28 | ||
1137 | + m_FontStyle: 0 | ||
1138 | + m_BestFit: 0 | ||
1139 | + m_MinSize: 10 | ||
1140 | + m_MaxSize: 67 | ||
1141 | + m_Alignment: 4 | ||
1142 | + m_AlignByGeometry: 0 | ||
1143 | + m_RichText: 1 | ||
1144 | + m_HorizontalOverflow: 1 | ||
1145 | + m_VerticalOverflow: 1 | ||
1146 | + m_LineSpacing: 1 | ||
1147 | + m_Text: 'Score: 0' | ||
1148 | +--- !u!222 &1472281678 | ||
1149 | +CanvasRenderer: | ||
1150 | + m_ObjectHideFlags: 0 | ||
1151 | + m_PrefabParentObject: {fileID: 0} | ||
1152 | + m_PrefabInternal: {fileID: 0} | ||
1153 | + m_GameObject: {fileID: 1472281674} | ||
1154 | +--- !u!1 &1822542788 | ||
1155 | +GameObject: | ||
1156 | + m_ObjectHideFlags: 0 | ||
1157 | + m_PrefabParentObject: {fileID: 0} | ||
1158 | + m_PrefabInternal: {fileID: 0} | ||
1159 | + serializedVersion: 5 | ||
1160 | + m_Component: | ||
1161 | + - component: {fileID: 1822542790} | ||
1162 | + - component: {fileID: 1822542789} | ||
1163 | + m_Layer: 0 | ||
1164 | + m_Name: Column Pool | ||
1165 | + m_TagString: Untagged | ||
1166 | + m_Icon: {fileID: 0} | ||
1167 | + m_NavMeshLayer: 0 | ||
1168 | + m_StaticEditorFlags: 0 | ||
1169 | + m_IsActive: 1 | ||
1170 | +--- !u!114 &1822542789 | ||
1171 | +MonoBehaviour: | ||
1172 | + m_ObjectHideFlags: 0 | ||
1173 | + m_PrefabParentObject: {fileID: 0} | ||
1174 | + m_PrefabInternal: {fileID: 0} | ||
1175 | + m_GameObject: {fileID: 1822542788} | ||
1176 | + m_Enabled: 1 | ||
1177 | + m_EditorHideFlags: 0 | ||
1178 | + m_Script: {fileID: 11500000, guid: 526fa13eb98519b49b2d1b6cfa2175a7, type: 3} | ||
1179 | + m_Name: | ||
1180 | + m_EditorClassIdentifier: | ||
1181 | + columnPrefab: {fileID: 1720303228931250, guid: c2c9aa14a7d79f9429aa9c0fafc9997b, | ||
1182 | + type: 2} | ||
1183 | + columnPoolSize: 5 | ||
1184 | + spawnRate: 3 | ||
1185 | + columnMin: -1 | ||
1186 | + columnMax: 3.5 | ||
1187 | +--- !u!4 &1822542790 | ||
1188 | +Transform: | ||
1189 | + m_ObjectHideFlags: 0 | ||
1190 | + m_PrefabParentObject: {fileID: 0} | ||
1191 | + m_PrefabInternal: {fileID: 0} | ||
1192 | + m_GameObject: {fileID: 1822542788} | ||
1193 | + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
1194 | + m_LocalPosition: {x: 0, y: 0, z: 0} | ||
1195 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
1196 | + m_Children: [] | ||
1197 | + m_Father: {fileID: 0} | ||
1198 | + m_RootOrder: 7 | ||
1199 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
1200 | +--- !u!1 &1897390450 | ||
1201 | +GameObject: | ||
1202 | + m_ObjectHideFlags: 0 | ||
1203 | + m_PrefabParentObject: {fileID: 0} | ||
1204 | + m_PrefabInternal: {fileID: 0} | ||
1205 | + serializedVersion: 5 | ||
1206 | + m_Component: | ||
1207 | + - component: {fileID: 1897390451} | ||
1208 | + - component: {fileID: 1897390454} | ||
1209 | + - component: {fileID: 1897390453} | ||
1210 | + - component: {fileID: 1897390452} | ||
1211 | + m_Layer: 5 | ||
1212 | + m_Name: Restart Text | ||
1213 | + m_TagString: Untagged | ||
1214 | + m_Icon: {fileID: 0} | ||
1215 | + m_NavMeshLayer: 0 | ||
1216 | + m_StaticEditorFlags: 0 | ||
1217 | + m_IsActive: 1 | ||
1218 | +--- !u!224 &1897390451 | ||
1219 | +RectTransform: | ||
1220 | + m_ObjectHideFlags: 0 | ||
1221 | + m_PrefabParentObject: {fileID: 0} | ||
1222 | + m_PrefabInternal: {fileID: 0} | ||
1223 | + m_GameObject: {fileID: 1897390450} | ||
1224 | + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} | ||
1225 | + m_LocalPosition: {x: 0, y: 0, z: 0} | ||
1226 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
1227 | + m_Children: [] | ||
1228 | + m_Father: {fileID: 1374875434} | ||
1229 | + m_RootOrder: 0 | ||
1230 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
1231 | + m_AnchorMin: {x: 0.5, y: 1} | ||
1232 | + m_AnchorMax: {x: 0.5, y: 1} | ||
1233 | + m_AnchoredPosition: {x: 0, y: -43.000004} | ||
1234 | + m_SizeDelta: {x: 160, y: 30} | ||
1235 | + m_Pivot: {x: 0.5, y: 0.5} | ||
1236 | +--- !u!114 &1897390452 | ||
1237 | +MonoBehaviour: | ||
1238 | + m_ObjectHideFlags: 0 | ||
1239 | + m_PrefabParentObject: {fileID: 0} | ||
1240 | + m_PrefabInternal: {fileID: 0} | ||
1241 | + m_GameObject: {fileID: 1897390450} | ||
1242 | + m_Enabled: 1 | ||
1243 | + m_EditorHideFlags: 0 | ||
1244 | + m_Script: {fileID: 1573420865, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} | ||
1245 | + m_Name: | ||
1246 | + m_EditorClassIdentifier: | ||
1247 | + m_EffectColor: {r: 0, g: 0, b: 0, a: 0.5} | ||
1248 | + m_EffectDistance: {x: 2, y: 2} | ||
1249 | + m_UseGraphicAlpha: 1 | ||
1250 | +--- !u!114 &1897390453 | ||
1251 | +MonoBehaviour: | ||
1252 | + m_ObjectHideFlags: 0 | ||
1253 | + m_PrefabParentObject: {fileID: 0} | ||
1254 | + m_PrefabInternal: {fileID: 0} | ||
1255 | + m_GameObject: {fileID: 1897390450} | ||
1256 | + m_Enabled: 1 | ||
1257 | + m_EditorHideFlags: 0 | ||
1258 | + m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} | ||
1259 | + m_Name: | ||
1260 | + m_EditorClassIdentifier: | ||
1261 | + m_Material: {fileID: 0} | ||
1262 | + m_Color: {r: 1, g: 1, b: 1, a: 1} | ||
1263 | + m_RaycastTarget: 1 | ||
1264 | + m_OnCullStateChanged: | ||
1265 | + m_PersistentCalls: | ||
1266 | + m_Calls: [] | ||
1267 | + m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI, | ||
1268 | + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | ||
1269 | + m_FontData: | ||
1270 | + m_Font: {fileID: 12800000, guid: 3a94f0ec6a1bae64bb1c1e74a9e30ad3, type: 3} | ||
1271 | + m_FontSize: 22 | ||
1272 | + m_FontStyle: 0 | ||
1273 | + m_BestFit: 0 | ||
1274 | + m_MinSize: 10 | ||
1275 | + m_MaxSize: 67 | ||
1276 | + m_Alignment: 4 | ||
1277 | + m_AlignByGeometry: 0 | ||
1278 | + m_RichText: 1 | ||
1279 | + m_HorizontalOverflow: 1 | ||
1280 | + m_VerticalOverflow: 1 | ||
1281 | + m_LineSpacing: 1 | ||
1282 | + m_Text: Flap to Restart | ||
1283 | +--- !u!222 &1897390454 | ||
1284 | +CanvasRenderer: | ||
1285 | + m_ObjectHideFlags: 0 | ||
1286 | + m_PrefabParentObject: {fileID: 0} | ||
1287 | + m_PrefabInternal: {fileID: 0} | ||
1288 | + m_GameObject: {fileID: 1897390450} |
Assets/Main.unity.meta
0 → 100644
Assets/Plugins.meta
0 → 100644
Assets/Plugins/Editor.meta
0 → 100644
Assets/Plugins/Editor/JetBrains.meta
0 → 100644
1 | +//------------------------------------------------------------------------------ | ||
2 | +// <auto-generated> | ||
3 | +// This code was generated by a tool. | ||
4 | +// Version: 2.1.3.4269 | ||
5 | +// | ||
6 | +// Changes to this file may cause incorrect behavior and will be lost if | ||
7 | +// the code is regenerated. | ||
8 | +// </auto-generated> | ||
9 | +//------------------------------------------------------------------------------ | ||
10 | +using Application = UnityEngine.Application; | ||
11 | +using Debug = UnityEngine.Debug; | ||
12 | +using System.Collections.Generic; | ||
13 | +using System.Diagnostics; | ||
14 | +using System.IO; | ||
15 | +using System.Linq; | ||
16 | +using System.Net; | ||
17 | +using System.Reflection; | ||
18 | +using System.Runtime.CompilerServices; | ||
19 | +using System.Runtime.InteropServices; | ||
20 | +using System.Text.RegularExpressions; | ||
21 | +using System.Text; | ||
22 | +using System.Xml.Linq; | ||
23 | +using System; | ||
24 | +using UnityEditor; | ||
25 | +using UnityEngine; | ||
26 | + | ||
27 | +namespace Plugins.Editor.JetBrains | ||
28 | +{ | ||
29 | + public class RiderAssetPostprocessor : AssetPostprocessor | ||
30 | + { | ||
31 | + public static void OnGeneratedCSProjectFiles() | ||
32 | + { | ||
33 | + if (!RiderPlugin.Enabled) | ||
34 | + return; | ||
35 | + var currentDirectory = Directory.GetCurrentDirectory(); | ||
36 | + var projectFiles = Directory.GetFiles(currentDirectory, "*.csproj"); | ||
37 | + | ||
38 | + foreach (var file in projectFiles) | ||
39 | + { | ||
40 | + UpgradeProjectFile(file); | ||
41 | + } | ||
42 | + | ||
43 | + var slnFile = Directory.GetFiles(currentDirectory, "*.sln").FirstOrDefault(); | ||
44 | + if (string.IsNullOrEmpty(slnFile)) | ||
45 | + return; | ||
46 | + | ||
47 | + RiderPlugin.Log(RiderPlugin.LoggingLevel.Verbose, string.Format("Post-processing {0}", slnFile)); | ||
48 | + string slnAllText = File.ReadAllText(slnFile); | ||
49 | + const string unityProjectGuid = @"Project(""{E097FAD1-6243-4DAD-9C02-E9B9EFC3FFC1}"")"; | ||
50 | + if (!slnAllText.Contains(unityProjectGuid)) | ||
51 | + { | ||
52 | + string matchGUID = @"Project\(\""\{[A-Z0-9]{8}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{12}\}\""\)"; | ||
53 | + // Unity may put a random guid, unityProjectGuid will help VSTU recognize Rider-generated projects | ||
54 | + slnAllText = Regex.Replace(slnAllText, matchGUID, unityProjectGuid); | ||
55 | + } | ||
56 | + | ||
57 | + var lines = slnAllText.Split(new[] {Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries); | ||
58 | + var sb = new StringBuilder(); | ||
59 | + foreach (var line in lines) | ||
60 | + { | ||
61 | + if (line.StartsWith("Project(")) | ||
62 | + { | ||
63 | + MatchCollection mc = Regex.Matches(line, "\"([^\"]*)\""); | ||
64 | + //RiderPlugin.Log(RiderPlugin.LoggingLevel.Info, "mc[1]: "+mc[1].Value); | ||
65 | + //RiderPlugin.Log(RiderPlugin.LoggingLevel.Info, "mc[2]: "+mc[2].Value); | ||
66 | + var to = GetFileNameWithoutExtension(mc[2].Value.Substring(1, mc[2].Value.Length-1)); // remove quotes | ||
67 | + //RiderPlugin.Log(RiderPlugin.LoggingLevel.Info, "to:" + to); | ||
68 | + //RiderPlugin.Log(RiderPlugin.LoggingLevel.Info, line); | ||
69 | + var newLine = line.Substring(0, mc[1].Index + 1) + to + line.Substring(mc[1].Index + mc[1].Value.Length - 1); | ||
70 | + sb.Append(newLine); | ||
71 | + //RiderPlugin.Log(RiderPlugin.LoggingLevel.Info, newLine); | ||
72 | + } | ||
73 | + else | ||
74 | + { | ||
75 | + sb.Append(line); | ||
76 | + } | ||
77 | + sb.Append(Environment.NewLine); | ||
78 | + } | ||
79 | + File.WriteAllText(slnFile, sb.ToString()); | ||
80 | + } | ||
81 | + | ||
82 | + private static string GetFileNameWithoutExtension(string path) | ||
83 | + { | ||
84 | + if (string.IsNullOrEmpty(path)) | ||
85 | + return null; | ||
86 | + int length; | ||
87 | + return (length = path.LastIndexOf('.')) == -1 ? path : path.Substring(0, length); | ||
88 | + } | ||
89 | + | ||
90 | + private static void UpgradeProjectFile(string projectFile) | ||
91 | + { | ||
92 | + RiderPlugin.Log(RiderPlugin.LoggingLevel.Verbose, string.Format("Post-processing {0}", projectFile)); | ||
93 | + var doc = XDocument.Load(projectFile); | ||
94 | + var projectContentElement = doc.Root; | ||
95 | + XNamespace xmlns = projectContentElement.Name.NamespaceName; // do not use var | ||
96 | + | ||
97 | + FixTargetFrameworkVersion(projectContentElement, xmlns); | ||
98 | + FixSystemXml(projectContentElement, xmlns); | ||
99 | + SetLangVersion(projectContentElement, xmlns); | ||
100 | + // Unity_5_6_OR_NEWER switched to nunit 3.5 | ||
101 | +#if UNITY_5_6_OR_NEWER | ||
102 | + ChangeNunitReference(projectContentElement, xmlns); | ||
103 | +#endif | ||
104 | + | ||
105 | +#if !UNITY_2017_1_OR_NEWER // Unity 2017.1 and later has this features by itself | ||
106 | + SetManuallyDefinedComilingSettings(projectFile, projectContentElement, xmlns); | ||
107 | + SetXCodeDllReference("UnityEditor.iOS.Extensions.Xcode.dll", xmlns, projectContentElement); | ||
108 | + SetXCodeDllReference("UnityEditor.iOS.Extensions.Common.dll", xmlns, projectContentElement); | ||
109 | +#endif | ||
110 | + ApplyManualCompilingSettingsReferences(projectContentElement, xmlns); | ||
111 | + doc.Save(projectFile); | ||
112 | + } | ||
113 | + | ||
114 | + private static void FixSystemXml(XElement projectContentElement, XNamespace xmlns) | ||
115 | + { | ||
116 | + var el = projectContentElement | ||
117 | + .Elements(xmlns+"ItemGroup") | ||
118 | + .Elements(xmlns+"Reference") | ||
119 | + .FirstOrDefault(a => a.Attribute("Include").Value=="System.XML"); | ||
120 | + if (el != null) | ||
121 | + { | ||
122 | + el.Attribute("Include").Value = "System.Xml"; | ||
123 | + } | ||
124 | + } | ||
125 | + | ||
126 | + private static void ChangeNunitReference(XElement projectContentElement, XNamespace xmlns) | ||
127 | + { | ||
128 | + var el = projectContentElement | ||
129 | + .Elements(xmlns+"ItemGroup") | ||
130 | + .Elements(xmlns+"Reference") | ||
131 | + .FirstOrDefault(a => a.Attribute("Include").Value=="nunit.framework"); | ||
132 | + if (el != null) | ||
133 | + { | ||
134 | + var hintPath = el.Elements(xmlns + "HintPath").FirstOrDefault(); | ||
135 | + if (hintPath != null) | ||
136 | + { | ||
137 | + var projectDirectory = Directory.GetParent(Application.dataPath).FullName; | ||
138 | + var path = Path.Combine(projectDirectory, "Library/resharper-unity-libs/nunit3.5.0/nunit.framework.dll"); | ||
139 | + if (new FileInfo(path).Exists) | ||
140 | + hintPath.Value = path; | ||
141 | + } | ||
142 | + } | ||
143 | + } | ||
144 | + | ||
145 | + private static readonly string PROJECT_MANUAL_CONFIG_ABSOLUTE_FILE_PATH = Path.Combine(UnityEngine.Application.dataPath, "mcs.rsp"); | ||
146 | +#if !UNITY_2017_1_OR_NEWER // Unity 2017.1 and later has this features by itself | ||
147 | + private const string UNITY_PLAYER_PROJECT_NAME = "Assembly-CSharp.csproj"; | ||
148 | + private const string UNITY_EDITOR_PROJECT_NAME = "Assembly-CSharp-Editor.csproj"; | ||
149 | + private const string UNITY_UNSAFE_KEYWORD = "-unsafe"; | ||
150 | + private const string UNITY_DEFINE_KEYWORD = "-define:"; | ||
151 | + private static readonly string PLAYER_PROJECT_MANUAL_CONFIG_ABSOLUTE_FILE_PATH = Path.Combine(UnityEngine.Application.dataPath, "smcs.rsp"); | ||
152 | + private static readonly string EDITOR_PROJECT_MANUAL_CONFIG_ABSOLUTE_FILE_PATH = Path.Combine(UnityEngine.Application.dataPath, "gmcs.rsp"); | ||
153 | + | ||
154 | + private static void SetManuallyDefinedComilingSettings(string projectFile, XElement projectContentElement, XNamespace xmlns) | ||
155 | + { | ||
156 | + string configPath = null; | ||
157 | + | ||
158 | + if (IsPlayerProjectFile(projectFile) || IsEditorProjectFile(projectFile)) | ||
159 | + { | ||
160 | + //Prefer mcs.rsp if it exists | ||
161 | + if (File.Exists(PROJECT_MANUAL_CONFIG_ABSOLUTE_FILE_PATH)) | ||
162 | + { | ||
163 | + configPath = PROJECT_MANUAL_CONFIG_ABSOLUTE_FILE_PATH; | ||
164 | + } | ||
165 | + else | ||
166 | + { | ||
167 | + if (IsPlayerProjectFile(projectFile)) | ||
168 | + configPath = PLAYER_PROJECT_MANUAL_CONFIG_ABSOLUTE_FILE_PATH; | ||
169 | + else if (IsEditorProjectFile(projectFile)) | ||
170 | + configPath = EDITOR_PROJECT_MANUAL_CONFIG_ABSOLUTE_FILE_PATH; | ||
171 | + } | ||
172 | + } | ||
173 | + | ||
174 | + if(!string.IsNullOrEmpty(configPath)) | ||
175 | + ApplyManualCompilingSettings(configPath | ||
176 | + , projectContentElement | ||
177 | + , xmlns); | ||
178 | + } | ||
179 | + | ||
180 | + private static void ApplyManualCompilingSettings(string configFilePath, XElement projectContentElement, XNamespace xmlns) | ||
181 | + { | ||
182 | + if (File.Exists(configFilePath)) | ||
183 | + { | ||
184 | + var configText = File.ReadAllText(configFilePath); | ||
185 | + if (configText.Contains(UNITY_UNSAFE_KEYWORD)) | ||
186 | + { | ||
187 | + // Add AllowUnsafeBlocks to the .csproj. Unity doesn't generate it (although VSTU does). | ||
188 | + // Strictly necessary to compile unsafe code | ||
189 | + ApplyAllowUnsafeBlocks(projectContentElement, xmlns); | ||
190 | + } | ||
191 | + if (configText.Contains(UNITY_DEFINE_KEYWORD)) | ||
192 | + { | ||
193 | + // defines could be | ||
194 | + // 1) -define:DEFINE1,DEFINE2 | ||
195 | + // 2) -define:DEFINE1;DEFINE2 | ||
196 | + // 3) -define:DEFINE1 -define:DEFINE2 | ||
197 | + // 4) -define:DEFINE1,DEFINE2;DEFINE3 | ||
198 | + // tested on "-define:DEF1;DEF2 -define:DEF3,DEF4;DEFFFF \n -define:DEF5" | ||
199 | + // result: DEF1, DEF2, DEF3, DEF4, DEFFFF, DEF5 | ||
200 | + | ||
201 | + var definesList = new List<string>(); | ||
202 | + var compileFlags = configText.Split(' ', '\n'); | ||
203 | + foreach (var flag in compileFlags) | ||
204 | + { | ||
205 | + var f = flag.Trim(); | ||
206 | + if (f.Contains(UNITY_DEFINE_KEYWORD)) | ||
207 | + { | ||
208 | + var defineEndPos = f.IndexOf(UNITY_DEFINE_KEYWORD) + UNITY_DEFINE_KEYWORD.Length; | ||
209 | + var definesSubString = f.Substring(defineEndPos,f.Length - defineEndPos); | ||
210 | + definesSubString = definesSubString.Replace(";", ","); | ||
211 | + definesList.AddRange(definesSubString.Split(',')); | ||
212 | + } | ||
213 | + } | ||
214 | + | ||
215 | + ApplyCustomDefines(definesList.ToArray(), projectContentElement, xmlns); | ||
216 | + } | ||
217 | + } | ||
218 | + } | ||
219 | + | ||
220 | + private static void ApplyCustomDefines(string[] customDefines, XElement projectContentElement, XNamespace xmlns) | ||
221 | + { | ||
222 | + var definesString = string.Join(";", customDefines); | ||
223 | + | ||
224 | + var DefineConstants = projectContentElement | ||
225 | + .Elements(xmlns+"PropertyGroup") | ||
226 | + .Elements(xmlns+"DefineConstants") | ||
227 | + .FirstOrDefault(definesConsts=> !string.IsNullOrEmpty(definesConsts.Value)); | ||
228 | + | ||
229 | + if (DefineConstants != null) | ||
230 | + { | ||
231 | + DefineConstants.SetValue(DefineConstants.Value + ";" + definesString); | ||
232 | + } | ||
233 | + } | ||
234 | + | ||
235 | + private static void ApplyAllowUnsafeBlocks(XElement projectContentElement, XNamespace xmlns) | ||
236 | + { | ||
237 | + projectContentElement.AddFirst( | ||
238 | + new XElement(xmlns + "PropertyGroup", new XElement(xmlns + "AllowUnsafeBlocks", true))); | ||
239 | + } | ||
240 | + | ||
241 | + private static bool IsPlayerProjectFile(string projectFile) | ||
242 | + { | ||
243 | + return Path.GetFileName(projectFile) == UNITY_PLAYER_PROJECT_NAME; | ||
244 | + } | ||
245 | + | ||
246 | + private static bool IsEditorProjectFile(string projectFile) | ||
247 | + { | ||
248 | + return Path.GetFileName(projectFile) == UNITY_EDITOR_PROJECT_NAME; | ||
249 | + } | ||
250 | + | ||
251 | + private static void SetXCodeDllReference(string name, XNamespace xmlns, XElement projectContentElement) | ||
252 | + { | ||
253 | + string unityAppBaseFolder = Path.GetDirectoryName(EditorApplication.applicationPath); | ||
254 | + | ||
255 | + var xcodeDllPath = Path.Combine(unityAppBaseFolder, Path.Combine("Data/PlaybackEngines/iOSSupport", name)); | ||
256 | + if (!File.Exists(xcodeDllPath)) | ||
257 | + xcodeDllPath = Path.Combine(unityAppBaseFolder, Path.Combine("PlaybackEngines/iOSSupport", name)); | ||
258 | + | ||
259 | + if (File.Exists(xcodeDllPath)) | ||
260 | + { | ||
261 | + var itemGroup = new XElement(xmlns + "ItemGroup"); | ||
262 | + var reference = new XElement(xmlns + "Reference"); | ||
263 | + reference.Add(new XAttribute("Include", Path.GetFileNameWithoutExtension(xcodeDllPath))); | ||
264 | + reference.Add(new XElement(xmlns + "HintPath", xcodeDllPath)); | ||
265 | + itemGroup.Add(reference); | ||
266 | + projectContentElement.Add(itemGroup); | ||
267 | + } | ||
268 | + } | ||
269 | +#endif | ||
270 | + private const string UNITY_REFERENCE_KEYWORD = "-r:"; | ||
271 | + /// <summary> | ||
272 | + /// Handles custom references -r: in "mcs.rsp" | ||
273 | + /// </summary> | ||
274 | + /// <param name="projectContentElement"></param> | ||
275 | + /// <param name="xmlns"></param> | ||
276 | + private static void ApplyManualCompilingSettingsReferences(XElement projectContentElement, XNamespace xmlns) | ||
277 | + { | ||
278 | + if (!File.Exists(PROJECT_MANUAL_CONFIG_ABSOLUTE_FILE_PATH)) | ||
279 | + return; | ||
280 | + | ||
281 | + var configFilePath = PROJECT_MANUAL_CONFIG_ABSOLUTE_FILE_PATH; | ||
282 | + | ||
283 | + if (File.Exists(configFilePath)) | ||
284 | + { | ||
285 | + var configText = File.ReadAllText(configFilePath); | ||
286 | + if (configText.Contains(UNITY_REFERENCE_KEYWORD)) | ||
287 | + { | ||
288 | + var referenceList = new List<string>(); | ||
289 | + var compileFlags = configText.Split(' ', '\n'); | ||
290 | + foreach (var flag in compileFlags) | ||
291 | + { | ||
292 | + var f = flag.Trim(); | ||
293 | + if (f.Contains(UNITY_REFERENCE_KEYWORD)) | ||
294 | + { | ||
295 | + var defineEndPos = f.IndexOf(UNITY_REFERENCE_KEYWORD) + UNITY_REFERENCE_KEYWORD.Length; | ||
296 | + var definesSubString = f.Substring(defineEndPos,f.Length - defineEndPos); | ||
297 | + definesSubString = definesSubString.Replace(";", ","); | ||
298 | + referenceList.AddRange(definesSubString.Split(',')); | ||
299 | + } | ||
300 | + } | ||
301 | + | ||
302 | + foreach (var referenceName in referenceList) | ||
303 | + { | ||
304 | + ApplyCustomReference(referenceName, projectContentElement, xmlns); | ||
305 | + } | ||
306 | + } | ||
307 | + } | ||
308 | + } | ||
309 | + | ||
310 | + private static void ApplyCustomReference(string name, XElement projectContentElement, XNamespace xmlns) | ||
311 | + { | ||
312 | + var itemGroup = new XElement(xmlns + "ItemGroup"); | ||
313 | + var reference = new XElement(xmlns + "Reference"); | ||
314 | + reference.Add(new XAttribute("Include", Path.GetFileNameWithoutExtension(name))); | ||
315 | + itemGroup.Add(reference); | ||
316 | + projectContentElement.Add(itemGroup); | ||
317 | + } | ||
318 | + | ||
319 | + // Helps resolve System.Linq under mono 4 - RIDER-573 | ||
320 | + private static void FixTargetFrameworkVersion(XElement projectElement, XNamespace xmlns) | ||
321 | + { | ||
322 | + var targetFrameworkVersion = projectElement.Elements(xmlns + "PropertyGroup") | ||
323 | + .Elements(xmlns + "TargetFrameworkVersion") | ||
324 | + .FirstOrDefault(); // Processing csproj files, which are not Unity-generated #56 | ||
325 | + if (targetFrameworkVersion != null) | ||
326 | + { | ||
327 | + if (net46) | ||
328 | + targetFrameworkVersion.SetValue("v"+RiderPlugin.TargetFrameworkVersion); | ||
329 | + else | ||
330 | + targetFrameworkVersion.SetValue("v"+RiderPlugin.TargetFrameworkVersionOldMono); | ||
331 | + | ||
332 | + } | ||
333 | + } | ||
334 | + | ||
335 | + private static void SetLangVersion(XElement projectElement, XNamespace xmlns) | ||
336 | + { | ||
337 | + // Add LangVersion to the .csproj. Unity doesn't generate it (although VSTU does). | ||
338 | + // Not strictly necessary, as the Unity plugin for Rider will work it out, but setting | ||
339 | + // it makes Rider work if it's not installed. | ||
340 | + var langVersion = projectElement.Elements(xmlns + "PropertyGroup").Elements(xmlns + "LangVersion") | ||
341 | + .FirstOrDefault(); // Processing csproj files, which are not Unity-generated #56 | ||
342 | + if (langVersion != null) | ||
343 | + { | ||
344 | + langVersion.SetValue(GetLanguageLevel()); | ||
345 | + } | ||
346 | + else | ||
347 | + { | ||
348 | + projectElement.AddFirst(new XElement(xmlns + "PropertyGroup", | ||
349 | + new XElement(xmlns + "LangVersion", GetLanguageLevel()))); | ||
350 | + } | ||
351 | + } | ||
352 | + | ||
353 | + private static string GetLanguageLevel() | ||
354 | + { | ||
355 | + // https://bitbucket.org/alexzzzz/unity-c-5.0-and-6.0-integration/src | ||
356 | + if (Directory.Exists(Path.Combine(Directory.GetCurrentDirectory(), "CSharp70Support"))) | ||
357 | + return "7"; | ||
358 | + if (Directory.Exists(Path.Combine(Directory.GetCurrentDirectory(), "CSharp60Support"))) | ||
359 | + return "6"; | ||
360 | + | ||
361 | + // Unity 5.5 supports C# 6, but only when targeting .NET 4.6. The enum doesn't exist pre Unity 5.5 | ||
362 | +#if !UNITY_5_6_OR_NEWER | ||
363 | + if ((int)PlayerSettings.apiCompatibilityLevel >= 3) | ||
364 | + #else | ||
365 | + if ((int) PlayerSettings.GetApiCompatibilityLevel(EditorUserBuildSettings.selectedBuildTargetGroup) >= 3) | ||
366 | +#endif | ||
367 | + return "6"; | ||
368 | + | ||
369 | + return "4"; | ||
370 | + } | ||
371 | + | ||
372 | + private static bool net46 = | ||
373 | +#if NET_4_6 | ||
374 | + true; | ||
375 | +#else | ||
376 | + false; | ||
377 | +#endif | ||
378 | + | ||
379 | + private static Type ourPdb2MdbDriver; | ||
380 | + private static Type Pdb2MdbDriver | ||
381 | + { | ||
382 | + get | ||
383 | + { | ||
384 | + if (ourPdb2MdbDriver != null) | ||
385 | + return ourPdb2MdbDriver; | ||
386 | + Assembly assembly; | ||
387 | + try | ||
388 | + { | ||
389 | + var path = Path.Combine(Directory.GetCurrentDirectory(), @"Library\resharper-unity-libs\pdb2mdb.exe"); | ||
390 | + var bytes = File.ReadAllBytes(path); | ||
391 | + assembly = Assembly.Load(bytes); | ||
392 | + } | ||
393 | + catch (Exception) | ||
394 | + { | ||
395 | + RiderPlugin.Log(RiderPlugin.LoggingLevel.Verbose, "Loading pdb2mdb failed."); | ||
396 | + assembly = null; | ||
397 | + } | ||
398 | + | ||
399 | + if (assembly == null) | ||
400 | + return null; | ||
401 | + var type = assembly.GetType("Pdb2Mdb.Driver"); | ||
402 | + if (type == null) | ||
403 | + return null; | ||
404 | + return ourPdb2MdbDriver = type; | ||
405 | + } | ||
406 | + } | ||
407 | + | ||
408 | + public static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromPath) | ||
409 | + { | ||
410 | + if (!RiderPlugin.Enabled) | ||
411 | + return; | ||
412 | + var toBeConverted = importedAssets.Where(a => | ||
413 | + a.EndsWith(".dll", StringComparison.OrdinalIgnoreCase) && | ||
414 | + importedAssets.Any(a1 => a1 == Path.ChangeExtension(a, ".pdb")) && | ||
415 | + importedAssets.All(b => b != Path.ChangeExtension(a, ".dll.mdb"))) | ||
416 | + .ToArray(); | ||
417 | + foreach (var asset in toBeConverted) | ||
418 | + { | ||
419 | + var pdb = Path.ChangeExtension(asset, ".pdb"); | ||
420 | + if (!IsPortablePdb(pdb)) | ||
421 | + ConvertSymbolsForAssembly(asset); | ||
422 | + else | ||
423 | + RiderPlugin.Log(RiderPlugin.LoggingLevel.Verbose, string.Format("mdb generation for Portable pdb is not supported. {0}", pdb)); | ||
424 | + } | ||
425 | + } | ||
426 | + | ||
427 | + private static void ConvertSymbolsForAssembly(string asset) | ||
428 | + { | ||
429 | + if (Pdb2MdbDriver == null) | ||
430 | + { | ||
431 | + RiderPlugin.Log(RiderPlugin.LoggingLevel.Verbose, "FailedToConvertDebugSymbolsNoPdb2mdb."); | ||
432 | + return; | ||
433 | + } | ||
434 | + | ||
435 | + var method = Pdb2MdbDriver.GetMethod("Main", BindingFlags.Static | BindingFlags.NonPublic); | ||
436 | + if (method == null) | ||
437 | + { | ||
438 | + RiderPlugin.Log(RiderPlugin.LoggingLevel.Verbose, "WarningFailedToConvertDebugSymbolsPdb2mdbMainIsNull."); | ||
439 | + return; | ||
440 | + } | ||
441 | + | ||
442 | + var strArray = new[] { Path.GetFullPath(asset) }; | ||
443 | + method.Invoke(null, new object[] { strArray }); | ||
444 | + } | ||
445 | + | ||
446 | + //https://github.com/xamarin/xamarin-android/commit/4e30546f | ||
447 | + const uint ppdb_signature = 0x424a5342; | ||
448 | + public static bool IsPortablePdb(string filename) | ||
449 | + { | ||
450 | + try | ||
451 | + { | ||
452 | + using (var fs = new FileStream(filename, FileMode.Open, FileAccess.Read)) | ||
453 | + { | ||
454 | + using (var br = new BinaryReader(fs)) | ||
455 | + { | ||
456 | + return br.ReadUInt32() == ppdb_signature; | ||
457 | + } | ||
458 | + } | ||
459 | + } | ||
460 | + catch | ||
461 | + { | ||
462 | + return false; | ||
463 | + } | ||
464 | + } | ||
465 | + } | ||
466 | +} | ||
467 | + | ||
468 | +namespace Plugins.Editor.JetBrains | ||
469 | +{ | ||
470 | + [InitializeOnLoad] | ||
471 | + public static class RiderPlugin | ||
472 | + { | ||
473 | + private static bool Initialized; | ||
474 | + private static string SlnFile; | ||
475 | + | ||
476 | + public static void Log(LoggingLevel level, string initialText) | ||
477 | + { | ||
478 | + if (level < SelectedLoggingLevel) return; | ||
479 | + | ||
480 | + var text = "[Rider] "+DateTime.Now.ToString("HH:mm:ss:ff")+" [" + level + "] " + initialText; | ||
481 | + | ||
482 | + switch (level) | ||
483 | + { | ||
484 | + case LoggingLevel.Warning: | ||
485 | + Debug.LogWarning(text); | ||
486 | + break; | ||
487 | + default: | ||
488 | + Debug.Log(text); | ||
489 | + break; | ||
490 | + } | ||
491 | + } | ||
492 | + | ||
493 | + private static string GetDefaultApp() | ||
494 | + { | ||
495 | + var allFoundPaths = GetAllRiderPaths().Select(a=>new FileInfo(a).FullName).ToArray(); | ||
496 | + var alreadySetPath = new FileInfo(GetExternalScriptEditor()).FullName; | ||
497 | + | ||
498 | + if (!string.IsNullOrEmpty(alreadySetPath) && RiderPathExist(alreadySetPath) && !allFoundPaths.Any() || | ||
499 | + !string.IsNullOrEmpty(alreadySetPath) && RiderPathExist(alreadySetPath) && allFoundPaths.Any() && | ||
500 | + allFoundPaths.Contains(alreadySetPath)) | ||
501 | + { | ||
502 | + RiderPath = alreadySetPath; | ||
503 | + } | ||
504 | + else if (!string.IsNullOrEmpty(RiderPath) && allFoundPaths.Contains(new FileInfo(RiderPath).FullName)) {} | ||
505 | + else | ||
506 | + RiderPath = allFoundPaths.FirstOrDefault(); | ||
507 | + | ||
508 | + return RiderPath; | ||
509 | + } | ||
510 | + | ||
511 | + private static string[] GetAllRiderPaths() | ||
512 | + { | ||
513 | + switch (SystemInfoRiderPlugin.operatingSystemFamily) | ||
514 | + { | ||
515 | + case OperatingSystemFamily.Windows: | ||
516 | + string[] folders = | ||
517 | + { | ||
518 | + @"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\JetBrains", Path.Combine( | ||
519 | + Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), | ||
520 | + @"Microsoft\Windows\Start Menu\Programs\JetBrains Toolbox") | ||
521 | + }; | ||
522 | + | ||
523 | + var newPathLnks = folders.Select(b => new DirectoryInfo(b)).Where(a => a.Exists) | ||
524 | + .SelectMany(c => c.GetFiles("*Rider*.lnk")).ToArray(); | ||
525 | + if (newPathLnks.Any()) | ||
526 | + { | ||
527 | + var newPaths = newPathLnks | ||
528 | + .Select(newPathLnk => new FileInfo(ShortcutResolver.Resolve(newPathLnk.FullName))) | ||
529 | + .Where(fi => File.Exists(fi.FullName)) | ||
530 | + .ToArray() | ||
531 | + .OrderByDescending(fi => FileVersionInfo.GetVersionInfo(fi.FullName).ProductVersion) | ||
532 | + .Select(a => a.FullName).ToArray(); | ||
533 | + | ||
534 | + return newPaths; | ||
535 | + } | ||
536 | + break; | ||
537 | + | ||
538 | + case OperatingSystemFamily.MacOSX: | ||
539 | + // "/Applications/*Rider*.app" | ||
540 | + //"~/Applications/JetBrains Toolbox/*Rider*.app" | ||
541 | + string[] foldersMac = | ||
542 | + { | ||
543 | + "/Applications", Path.Combine(Environment.GetEnvironmentVariable("HOME"), "Applications/JetBrains Toolbox") | ||
544 | + }; | ||
545 | + var newPathsMac = foldersMac.Select(b => new DirectoryInfo(b)).Where(a => a.Exists) | ||
546 | + .SelectMany(c => c.GetDirectories("*Rider*.app")) | ||
547 | + .Select(a => a.FullName).ToArray(); | ||
548 | + return newPathsMac; | ||
549 | + } | ||
550 | + return new string[0]; | ||
551 | + } | ||
552 | + | ||
553 | + private static string GetTargetFrameworkVersionDefault(string defaultValue) | ||
554 | + { | ||
555 | + if (SystemInfoRiderPlugin.operatingSystemFamily == OperatingSystemFamily.Windows) | ||
556 | + { | ||
557 | + var dir = new DirectoryInfo(@"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework"); | ||
558 | + if (dir.Exists) | ||
559 | + { | ||
560 | + var availableVersions = dir.GetDirectories("v*").Select(a => a.Name.Substring(1)) | ||
561 | + .Where(v => TryCatch(v, s => { })).ToArray(); | ||
562 | + if (availableVersions.Any() && !availableVersions.Contains(defaultValue)) | ||
563 | + { | ||
564 | + defaultValue = availableVersions.OrderBy(a => new Version(a)).Last(); | ||
565 | + } | ||
566 | + } | ||
567 | + } | ||
568 | + return defaultValue; | ||
569 | + } | ||
570 | + | ||
571 | + | ||
572 | + public static string TargetFrameworkVersion | ||
573 | + { | ||
574 | + get | ||
575 | + { | ||
576 | + return EditorPrefs.GetString("Rider_TargetFrameworkVersion", GetTargetFrameworkVersionDefault("4.6")); | ||
577 | + } | ||
578 | + set | ||
579 | + { | ||
580 | + TryCatch(value, val => | ||
581 | + { | ||
582 | + EditorPrefs.SetString("Rider_TargetFrameworkVersion", val); | ||
583 | + }); | ||
584 | + } | ||
585 | + } | ||
586 | + | ||
587 | + public static string TargetFrameworkVersionOldMono | ||
588 | + { | ||
589 | + get | ||
590 | + { | ||
591 | + return EditorPrefs.GetString("Rider_TargetFrameworkVersionOldMono", GetTargetFrameworkVersionDefault("3.5")); | ||
592 | + } | ||
593 | + set | ||
594 | + { | ||
595 | + TryCatch(value, val => | ||
596 | + { | ||
597 | + EditorPrefs.SetString("Rider_TargetFrameworkVersionOldMono", val); | ||
598 | + }); | ||
599 | + } | ||
600 | + } | ||
601 | + | ||
602 | + private static bool TryCatch(string value, Action<string> action) | ||
603 | + { | ||
604 | + try | ||
605 | + { | ||
606 | + new Version(value); // mono 2.6 doesn't support Version.TryParse | ||
607 | + action(value); | ||
608 | + return true; | ||
609 | + } | ||
610 | + catch (ArgumentException) | ||
611 | + { | ||
612 | + } // can't put loggin here because ot fire on every symbol | ||
613 | + catch (FormatException) | ||
614 | + { | ||
615 | + } | ||
616 | + return false; | ||
617 | + } | ||
618 | + | ||
619 | + public static string RiderPath | ||
620 | + { | ||
621 | + get { return EditorPrefs.GetString("Rider_RiderPath", GetAllRiderPaths().FirstOrDefault()); } | ||
622 | + set { EditorPrefs.SetString("Rider_RiderPath", value); } | ||
623 | + } | ||
624 | + | ||
625 | + public enum LoggingLevel | ||
626 | + { | ||
627 | + Verbose = 0, | ||
628 | + Info = 1, | ||
629 | + Warning = 2 | ||
630 | + } | ||
631 | + | ||
632 | + public static LoggingLevel SelectedLoggingLevel | ||
633 | + { | ||
634 | + get { return (LoggingLevel) EditorPrefs.GetInt("Rider_SelectedLoggingLevel", 1); } | ||
635 | + set { EditorPrefs.SetInt("Rider_SelectedLoggingLevel", (int) value); } | ||
636 | + } | ||
637 | + | ||
638 | + public static bool RiderInitializedOnce | ||
639 | + { | ||
640 | + get { return EditorPrefs.GetBool("RiderInitializedOnce", false); } | ||
641 | + set { EditorPrefs.SetBool("RiderInitializedOnce", value); } | ||
642 | + } | ||
643 | + | ||
644 | + internal static bool Enabled | ||
645 | + { | ||
646 | + get | ||
647 | + { | ||
648 | + var defaultApp = GetExternalScriptEditor(); | ||
649 | + return !string.IsNullOrEmpty(defaultApp) && Path.GetFileName(defaultApp).ToLower().Contains("rider"); | ||
650 | + } | ||
651 | + } | ||
652 | + | ||
653 | + static RiderPlugin() | ||
654 | + { | ||
655 | + var riderPath = GetDefaultApp(); | ||
656 | + if (!RiderPathExist(riderPath)) | ||
657 | + return; | ||
658 | + | ||
659 | + AddRiderToRecentlyUsedScriptApp(riderPath, "RecentlyUsedScriptApp"); | ||
660 | + if (!RiderInitializedOnce) | ||
661 | + { | ||
662 | + SetExternalScriptEditor(riderPath); | ||
663 | + RiderInitializedOnce = true; | ||
664 | + } | ||
665 | + if (Enabled) | ||
666 | + { | ||
667 | + InitRiderPlugin(); | ||
668 | + } | ||
669 | + } | ||
670 | + | ||
671 | + private static void InitRiderPlugin() | ||
672 | + { | ||
673 | + var projectDirectory = Directory.GetParent(Application.dataPath).FullName; | ||
674 | + | ||
675 | + var projectName = Path.GetFileName(projectDirectory); | ||
676 | + SlnFile = Path.Combine(projectDirectory, string.Format("{0}.sln", projectName)); | ||
677 | + | ||
678 | + InitializeEditorInstanceJson(projectDirectory); | ||
679 | + | ||
680 | + RiderAssetPostprocessor.OnGeneratedCSProjectFiles(); | ||
681 | + | ||
682 | + Log(LoggingLevel.Info, "Rider plugin initialized. You may change the amount of Rider Debug output via Edit -> Preferences -> Rider -> Logging Level"); | ||
683 | + Initialized = true; | ||
684 | + } | ||
685 | + | ||
686 | + private static void AddRiderToRecentlyUsedScriptApp(string userAppPath, string recentAppsKey) | ||
687 | + { | ||
688 | + for (int index = 0; index < 10; ++index) | ||
689 | + { | ||
690 | + string path = EditorPrefs.GetString(recentAppsKey + (object) index); | ||
691 | + if (File.Exists(path) && Path.GetFileName(path).ToLower().Contains("rider")) | ||
692 | + return; | ||
693 | + } | ||
694 | + EditorPrefs.SetString(recentAppsKey + 9, userAppPath); | ||
695 | + } | ||
696 | + | ||
697 | + private static string GetExternalScriptEditor() | ||
698 | + { | ||
699 | + return EditorPrefs.GetString("kScriptsDefaultApp"); | ||
700 | + } | ||
701 | + | ||
702 | + private static void SetExternalScriptEditor(string path) | ||
703 | + { | ||
704 | + EditorPrefs.SetString("kScriptsDefaultApp", path); | ||
705 | + } | ||
706 | + | ||
707 | + private static bool RiderPathExist(string path) | ||
708 | + { | ||
709 | + if (string.IsNullOrEmpty(path)) | ||
710 | + return false; | ||
711 | + // windows or mac | ||
712 | + var fileInfo = new FileInfo(path); | ||
713 | + if (!fileInfo.Name.ToLower().Contains("rider")) | ||
714 | + return false; | ||
715 | + var directoryInfo = new DirectoryInfo(path); | ||
716 | + return fileInfo.Exists || (SystemInfoRiderPlugin.operatingSystemFamily == OperatingSystemFamily.MacOSX && | ||
717 | + directoryInfo.Exists); | ||
718 | + } | ||
719 | + | ||
720 | + /// <summary> | ||
721 | + /// Creates and deletes Library/EditorInstance.json containing version and process ID | ||
722 | + /// </summary> | ||
723 | + /// <param name="projectDirectory">Path to the project root directory</param> | ||
724 | + private static void InitializeEditorInstanceJson(string projectDirectory) | ||
725 | + { | ||
726 | + // Only manage EditorInstance.json for 4.x and 5.x - it's a native feature for 2017.x | ||
727 | +#if !UNITY_2017_1_OR_NEWER | ||
728 | + Log(LoggingLevel.Verbose, "Writing Library/EditorInstance.json"); | ||
729 | + | ||
730 | + var library = Path.Combine(projectDirectory, "Library"); | ||
731 | + var editorInstanceJsonPath = Path.Combine(library, "EditorInstance.json"); | ||
732 | + | ||
733 | + File.WriteAllText(editorInstanceJsonPath, string.Format(@"{{ | ||
734 | + ""process_id"": {0}, | ||
735 | + ""version"": ""{1}"" | ||
736 | +}}", Process.GetCurrentProcess().Id, Application.unityVersion)); | ||
737 | + | ||
738 | + AppDomain.CurrentDomain.DomainUnload += (sender, args) => | ||
739 | + { | ||
740 | + Log(LoggingLevel.Verbose, "Deleting Library/EditorInstance.json"); | ||
741 | + File.Delete(editorInstanceJsonPath); | ||
742 | + }; | ||
743 | +#endif | ||
744 | + } | ||
745 | + | ||
746 | + /// <summary> | ||
747 | + /// Asset Open Callback (from Unity) | ||
748 | + /// </summary> | ||
749 | + /// <remarks> | ||
750 | + /// Called when Unity is about to open an asset. | ||
751 | + /// </remarks> | ||
752 | + [UnityEditor.Callbacks.OnOpenAssetAttribute()] | ||
753 | + static bool OnOpenedAsset(int instanceID, int line) | ||
754 | + { | ||
755 | + if (Enabled) | ||
756 | + { | ||
757 | + if (!Initialized) | ||
758 | + { | ||
759 | + // make sure the plugin was initialized first. | ||
760 | + // this can happen in case "Rider" was set as the default scripting app only after this plugin was imported. | ||
761 | + InitRiderPlugin(); | ||
762 | + } | ||
763 | + | ||
764 | + string appPath = Path.GetDirectoryName(Application.dataPath); | ||
765 | + | ||
766 | + // determine asset that has been double clicked in the project view | ||
767 | + var selected = EditorUtility.InstanceIDToObject(instanceID); | ||
768 | + | ||
769 | + var assetFilePath = Path.Combine(appPath, AssetDatabase.GetAssetPath(selected)); | ||
770 | + if (!(selected.GetType().ToString() == "UnityEditor.MonoScript" || | ||
771 | + selected.GetType().ToString() == "UnityEngine.Shader" || | ||
772 | + (selected.GetType().ToString() == "UnityEngine.TextAsset" && | ||
773 | +#if UNITY_5 || UNITY_5_5_OR_NEWER | ||
774 | + EditorSettings.projectGenerationUserExtensions.Contains(Path.GetExtension(assetFilePath).Substring(1)) | ||
775 | +#else | ||
776 | + EditorSettings.externalVersionControl.Contains(Path.GetExtension(assetFilePath).Substring(1)) | ||
777 | +#endif | ||
778 | + ))) | ||
779 | + return false; | ||
780 | + | ||
781 | + SyncSolution(); // added to handle opening file, which was just recently created. | ||
782 | + if (DetectPortAndOpenFile(line, assetFilePath, SystemInfoRiderPlugin.operatingSystemFamily == OperatingSystemFamily.Windows)) | ||
783 | + return true; | ||
784 | + var args = string.Format("{0}{1}{0} --line {2} {0}{3}{0}", "\"", SlnFile, line, assetFilePath); | ||
785 | + return CallRider(args); | ||
786 | + } | ||
787 | + | ||
788 | + return false; | ||
789 | + } | ||
790 | + | ||
791 | + | ||
792 | + private static bool DetectPortAndOpenFile(int line, string filePath, bool isWindows) | ||
793 | + { | ||
794 | + if (SystemInfoRiderPlugin.operatingSystemFamily == OperatingSystemFamily.Windows) | ||
795 | + { | ||
796 | + var process = GetRiderProcess(); | ||
797 | + if (process == null) | ||
798 | + return false; | ||
799 | + } | ||
800 | + | ||
801 | + var ports = Enumerable.Range(63342, 20); | ||
802 | + var res = ports.Any(port => | ||
803 | + { | ||
804 | + var aboutUrl = string.Format("http://localhost:{0}/api/about/", port); | ||
805 | + var aboutUri = new Uri(aboutUrl); | ||
806 | + | ||
807 | + using (var client = new WebClient()) | ||
808 | + { | ||
809 | + client.Headers.Add("origin", string.Format("http://localhost:{0}", port)); | ||
810 | + client.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded"; | ||
811 | + | ||
812 | + try | ||
813 | + { | ||
814 | + var responce = CallHttpApi(aboutUri, client); | ||
815 | + if (responce.ToLower().Contains("rider")) | ||
816 | + { | ||
817 | + return HttpOpenFile(line, filePath, isWindows, port, client); | ||
818 | + } | ||
819 | + } | ||
820 | + catch (Exception e) | ||
821 | + { | ||
822 | + Log(LoggingLevel.Verbose, string.Format("Exception in DetectPortAndOpenFile: {0}", e)); | ||
823 | + } | ||
824 | + } | ||
825 | + return false; | ||
826 | + }); | ||
827 | + return res; | ||
828 | + } | ||
829 | + | ||
830 | + private static bool HttpOpenFile(int line, string filePath, bool isWindows, int port, WebClient client) | ||
831 | + { | ||
832 | + var url = string.Format("http://localhost:{0}/api/file?file={1}{2}", port, filePath, | ||
833 | + line < 0 | ||
834 | + ? "&p=0" | ||
835 | + : "&line=" + line); // &p is needed to workaround https://youtrack.jetbrains.com/issue/IDEA-172350 | ||
836 | + if (isWindows) | ||
837 | + url = string.Format(@"http://localhost:{0}/api/file/{1}{2}", port, filePath, line < 0 ? "" : ":" + line); | ||
838 | + | ||
839 | + var uri = new Uri(url); | ||
840 | + Log(LoggingLevel.Verbose, string.Format("HttpRequestOpenFile({0})", uri.AbsoluteUri)); | ||
841 | + | ||
842 | + CallHttpApi(uri, client); | ||
843 | + ActivateWindow(); | ||
844 | + return true; | ||
845 | + } | ||
846 | + | ||
847 | + private static string CallHttpApi(Uri uri, WebClient client) | ||
848 | + { | ||
849 | + var responseString = client.DownloadString(uri.AbsoluteUri); | ||
850 | + Log(LoggingLevel.Verbose, string.Format("CallHttpApi {0} response: {1}", uri.AbsoluteUri, responseString)); | ||
851 | + return responseString; | ||
852 | + } | ||
853 | + | ||
854 | + private static bool CallRider(string args) | ||
855 | + { | ||
856 | + var defaultApp = GetDefaultApp(); | ||
857 | + if (!RiderPathExist(defaultApp)) | ||
858 | + { | ||
859 | + return false; | ||
860 | + } | ||
861 | + | ||
862 | + var proc = new Process(); | ||
863 | + if (SystemInfoRiderPlugin.operatingSystemFamily == OperatingSystemFamily.MacOSX) | ||
864 | + { | ||
865 | + proc.StartInfo.FileName = "open"; | ||
866 | + proc.StartInfo.Arguments = string.Format("-n {0}{1}{0} --args {2}", "\"", "/" + defaultApp, args); | ||
867 | + Log(LoggingLevel.Verbose, string.Format("{0} {1}", proc.StartInfo.FileName, proc.StartInfo.Arguments)); | ||
868 | + } | ||
869 | + else | ||
870 | + { | ||
871 | + proc.StartInfo.FileName = defaultApp; | ||
872 | + proc.StartInfo.Arguments = args; | ||
873 | + Log(LoggingLevel.Verbose, string.Format("{2}{0}{2}" + " {1}", proc.StartInfo.FileName, proc.StartInfo.Arguments, "\"")); | ||
874 | + } | ||
875 | + | ||
876 | + proc.StartInfo.UseShellExecute = false; | ||
877 | + proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; | ||
878 | + proc.StartInfo.CreateNoWindow = true; | ||
879 | + proc.StartInfo.RedirectStandardOutput = true; | ||
880 | + proc.Start(); | ||
881 | + | ||
882 | + ActivateWindow(); | ||
883 | + return true; | ||
884 | + } | ||
885 | + | ||
886 | + private static void ActivateWindow() | ||
887 | + { | ||
888 | + if (SystemInfoRiderPlugin.operatingSystemFamily == OperatingSystemFamily.Windows) | ||
889 | + { | ||
890 | + try | ||
891 | + { | ||
892 | + var process = GetRiderProcess(); | ||
893 | + if (process != null) | ||
894 | + { | ||
895 | + // Collect top level windows | ||
896 | + var topLevelWindows = User32Dll.GetTopLevelWindowHandles(); | ||
897 | + // Get process main window title | ||
898 | + var windowHandle = topLevelWindows.FirstOrDefault(hwnd => User32Dll.GetWindowProcessId(hwnd) == process.Id); | ||
899 | + Log(LoggingLevel.Info, string.Format("ActivateWindow: {0} {1}", process.Id, windowHandle)); | ||
900 | + if (windowHandle != IntPtr.Zero) | ||
901 | + { | ||
902 | + //User32Dll.ShowWindow(windowHandle, 9); //SW_RESTORE = 9 | ||
903 | + User32Dll.SetForegroundWindow(windowHandle); | ||
904 | + } | ||
905 | + } | ||
906 | + } | ||
907 | + catch (Exception e) | ||
908 | + { | ||
909 | + Log(LoggingLevel.Warning, "Exception on ActivateWindow: " + e); | ||
910 | + } | ||
911 | + } | ||
912 | + } | ||
913 | + | ||
914 | + private static Process GetRiderProcess() | ||
915 | + { | ||
916 | + var process = Process.GetProcesses().FirstOrDefault(p => | ||
917 | + { | ||
918 | + string processName; | ||
919 | + try | ||
920 | + { | ||
921 | + processName = | ||
922 | + p.ProcessName; // some processes like kaspersky antivirus throw exception on attempt to get ProcessName | ||
923 | + } | ||
924 | + catch (Exception) | ||
925 | + { | ||
926 | + return false; | ||
927 | + } | ||
928 | + | ||
929 | + return !p.HasExited && processName.ToLower().Contains("rider"); | ||
930 | + }); | ||
931 | + return process; | ||
932 | + } | ||
933 | + | ||
934 | + // The default "Open C# Project" menu item will use the external script editor to load the .sln | ||
935 | + // file, but unless Unity knows the external script editor can properly load solutions, it will | ||
936 | + // also launch MonoDevelop (or the OS registered app for .sln files). This menu item side steps | ||
937 | + // that issue, and opens the solution in Rider without opening MonoDevelop as well. | ||
938 | + // Unity 2017.1 and later recognise Rider as an app that can load solutions, so this menu isn't | ||
939 | + // needed in newer versions. | ||
940 | + [MenuItem("Assets/Open C# Project in Rider", false, 1000)] | ||
941 | + static void MenuOpenProject() | ||
942 | + { | ||
943 | + // Force the project files to be sync | ||
944 | + SyncSolution(); | ||
945 | + | ||
946 | + // Load Project | ||
947 | + CallRider(string.Format("{0}{1}{0}", "\"", SlnFile)); | ||
948 | + } | ||
949 | + | ||
950 | + [MenuItem("Assets/Open C# Project in Rider", true, 1000)] | ||
951 | + static bool ValidateMenuOpenProject() | ||
952 | + { | ||
953 | + return Enabled; | ||
954 | + } | ||
955 | + | ||
956 | + /// <summary> | ||
957 | + /// Force Unity To Write Project File | ||
958 | + /// </summary> | ||
959 | + private static void SyncSolution() | ||
960 | + { | ||
961 | + System.Type T = System.Type.GetType("UnityEditor.SyncVS,UnityEditor"); | ||
962 | + System.Reflection.MethodInfo SyncSolution = T.GetMethod("SyncSolution", | ||
963 | + System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static); | ||
964 | + SyncSolution.Invoke(null, null); | ||
965 | + } | ||
966 | + | ||
967 | + /// <summary> | ||
968 | + /// JetBrains Rider Integration Preferences Item | ||
969 | + /// </summary> | ||
970 | + /// <remarks> | ||
971 | + /// Contains all 3 toggles: Enable/Disable; Debug On/Off; Writing Launch File On/Off | ||
972 | + /// </remarks> | ||
973 | + [PreferenceItem("Rider")] | ||
974 | + static void RiderPreferencesItem() | ||
975 | + { | ||
976 | + EditorGUILayout.BeginVertical(); | ||
977 | + EditorGUI.BeginChangeCheck(); | ||
978 | + | ||
979 | + var alternatives = GetAllRiderPaths(); | ||
980 | + if (alternatives.Any()) | ||
981 | + { | ||
982 | + int index = Array.IndexOf(alternatives, RiderPath); | ||
983 | + var alts = alternatives.Select(s => s.Replace("/", ":")) | ||
984 | + .ToArray(); // hack around https://fogbugz.unity3d.com/default.asp?940857_tirhinhe3144t4vn | ||
985 | + RiderPath = alternatives[EditorGUILayout.Popup("Rider executable:", index == -1 ? 0 : index, alts)]; | ||
986 | + if (EditorGUILayout.Toggle(new GUIContent("Rider is default editor"), Enabled)) | ||
987 | + { | ||
988 | + SetExternalScriptEditor(RiderPath); | ||
989 | + EditorGUILayout.HelpBox("Unckecking will restore default external editor.", MessageType.None); | ||
990 | + } | ||
991 | + else | ||
992 | + { | ||
993 | + SetExternalScriptEditor(string.Empty); | ||
994 | + EditorGUILayout.HelpBox("Checking will set Rider as default external editor", MessageType.None); | ||
995 | + } | ||
996 | + } | ||
997 | + | ||
998 | + GUILayout.BeginVertical(); | ||
999 | + string status = "TargetFrameworkVersion for Runtime"; | ||
1000 | + EditorGUILayout.TextArea(status, EditorStyles.boldLabel); | ||
1001 | + var help = @"TargetFramework >= 4.5 is recommended."; | ||
1002 | + TargetFrameworkVersion = | ||
1003 | + EditorGUILayout.TextField( | ||
1004 | + new GUIContent("NET 4.6", | ||
1005 | + help), TargetFrameworkVersion); | ||
1006 | + EditorGUILayout.HelpBox(help, MessageType.None); | ||
1007 | + var helpOldMono = @"TargetFramework = 3.5 is recommended. | ||
1008 | + - With 4.5 Rider may show ambiguous references in UniRx."; | ||
1009 | + | ||
1010 | + TargetFrameworkVersionOldMono = | ||
1011 | + EditorGUILayout.TextField( | ||
1012 | + new GUIContent("NET 3.5", | ||
1013 | + helpOldMono), TargetFrameworkVersionOldMono); | ||
1014 | + EditorGUILayout.HelpBox(helpOldMono, MessageType.None); | ||
1015 | + | ||
1016 | + GUILayout.EndVertical(); | ||
1017 | + | ||
1018 | + EditorGUI.EndChangeCheck(); | ||
1019 | + | ||
1020 | + EditorGUI.BeginChangeCheck(); | ||
1021 | + | ||
1022 | + var loggingMsg = | ||
1023 | + @"Sets the amount of Rider Debug output. If you are about to report an issue, please select Verbose logging level and attach Unity console output to the issue."; | ||
1024 | + SelectedLoggingLevel = (LoggingLevel) EditorGUILayout.EnumPopup(new GUIContent("Logging Level", loggingMsg), SelectedLoggingLevel); | ||
1025 | + EditorGUILayout.HelpBox(loggingMsg, MessageType.None); | ||
1026 | + | ||
1027 | + EditorGUI.EndChangeCheck(); | ||
1028 | + | ||
1029 | + var url = "https://github.com/JetBrains/resharper-unity"; | ||
1030 | + LinkButton(url, url); | ||
1031 | + | ||
1032 | +/* if (GUILayout.Button("reset RiderInitializedOnce = false")) | ||
1033 | + { | ||
1034 | + RiderInitializedOnce = false; | ||
1035 | + }*/ | ||
1036 | + | ||
1037 | + EditorGUILayout.EndVertical(); | ||
1038 | + } | ||
1039 | + | ||
1040 | + private static void LinkButton(string caption, string url) | ||
1041 | + { | ||
1042 | + var style = GUI.skin.label; | ||
1043 | + style.richText = true; | ||
1044 | + caption = string.Format("<color=#0000FF>{0}</color>", caption); | ||
1045 | + | ||
1046 | + bool bClicked = GUILayout.Button(caption, style); | ||
1047 | + | ||
1048 | + var rect = GUILayoutUtility.GetLastRect(); | ||
1049 | + rect.width = style.CalcSize(new GUIContent(caption)).x; | ||
1050 | + EditorGUIUtility.AddCursorRect(rect, MouseCursor.Link); | ||
1051 | + | ||
1052 | + if (bClicked) | ||
1053 | + Application.OpenURL(url); | ||
1054 | + } | ||
1055 | + | ||
1056 | + #region SystemInfoRiderPlugin | ||
1057 | + | ||
1058 | + private static class SystemInfoRiderPlugin | ||
1059 | + { | ||
1060 | + public static OperatingSystemFamily operatingSystemFamily | ||
1061 | + { | ||
1062 | + get | ||
1063 | + { | ||
1064 | +#if UNITY_5_5_OR_NEWER | ||
1065 | +return SystemInfo.operatingSystemFamily; | ||
1066 | +#else | ||
1067 | + if (SystemInfo.operatingSystem.StartsWith("Mac", StringComparison.InvariantCultureIgnoreCase)) | ||
1068 | + { | ||
1069 | + return OperatingSystemFamily.MacOSX; | ||
1070 | + } | ||
1071 | + if (SystemInfo.operatingSystem.StartsWith("Win", StringComparison.InvariantCultureIgnoreCase)) | ||
1072 | + { | ||
1073 | + return OperatingSystemFamily.Windows; | ||
1074 | + } | ||
1075 | + if (SystemInfo.operatingSystem.StartsWith("Lin", StringComparison.InvariantCultureIgnoreCase)) | ||
1076 | + { | ||
1077 | + return OperatingSystemFamily.Linux; | ||
1078 | + } | ||
1079 | + return OperatingSystemFamily.Other; | ||
1080 | +#endif | ||
1081 | + } | ||
1082 | + } | ||
1083 | + } | ||
1084 | +#if !UNITY_5_5_OR_NEWER | ||
1085 | + enum OperatingSystemFamily | ||
1086 | + { | ||
1087 | + Other, | ||
1088 | + MacOSX, | ||
1089 | + Windows, | ||
1090 | + Linux, | ||
1091 | + } | ||
1092 | +#endif | ||
1093 | + #endregion | ||
1094 | + | ||
1095 | + static class User32Dll | ||
1096 | + { | ||
1097 | + | ||
1098 | + /// <summary> | ||
1099 | + /// Gets the ID of the process that owns the window. | ||
1100 | + /// Note that creating a <see cref="Process"/> wrapper for that is very expensive because it causes an enumeration of all the system processes to happen. | ||
1101 | + /// </summary> | ||
1102 | + public static int GetWindowProcessId(IntPtr hwnd) | ||
1103 | + { | ||
1104 | + uint dwProcessId; | ||
1105 | + GetWindowThreadProcessId(hwnd, out dwProcessId); | ||
1106 | + return unchecked((int) dwProcessId); | ||
1107 | + } | ||
1108 | + | ||
1109 | + /// <summary> | ||
1110 | + /// Lists the handles of all the top-level windows currently available in the system. | ||
1111 | + /// </summary> | ||
1112 | + public static List<IntPtr> GetTopLevelWindowHandles() | ||
1113 | + { | ||
1114 | + var retval = new List<IntPtr>(); | ||
1115 | + EnumWindowsProc callback = (hwnd, param) => | ||
1116 | + { | ||
1117 | + retval.Add(hwnd); | ||
1118 | + return 1; | ||
1119 | + }; | ||
1120 | + EnumWindows(Marshal.GetFunctionPointerForDelegate(callback), IntPtr.Zero); | ||
1121 | + GC.KeepAlive(callback); | ||
1122 | + return retval; | ||
1123 | + } | ||
1124 | + | ||
1125 | + public delegate Int32 EnumWindowsProc(IntPtr hwnd, IntPtr lParam); | ||
1126 | + | ||
1127 | + [DllImport("user32.dll", CharSet = CharSet.Unicode, PreserveSig = true, SetLastError = true, | ||
1128 | + ExactSpelling = true)] | ||
1129 | + public static extern Int32 EnumWindows(IntPtr lpEnumFunc, IntPtr lParam); | ||
1130 | + | ||
1131 | + [DllImport("user32.dll", SetLastError = true)] | ||
1132 | + static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId); | ||
1133 | + | ||
1134 | + [DllImport("user32.dll", CharSet = CharSet.Unicode, PreserveSig = true, SetLastError = true, | ||
1135 | + ExactSpelling = true)] | ||
1136 | + public static extern Int32 SetForegroundWindow(IntPtr hWnd); | ||
1137 | + | ||
1138 | + [DllImport("user32.dll", CharSet = CharSet.Unicode, PreserveSig = true, SetLastError = true, | ||
1139 | + ExactSpelling = true)] | ||
1140 | + public static extern UInt32 ShowWindow(IntPtr hWnd, Int32 nCmdShow); | ||
1141 | + } | ||
1142 | + | ||
1143 | + static class ShortcutResolver | ||
1144 | + { | ||
1145 | + #region Signitures imported from http://pinvoke.net | ||
1146 | + | ||
1147 | + [DllImport("shfolder.dll", CharSet = CharSet.Auto)] | ||
1148 | + internal static extern int SHGetFolderPath(IntPtr hwndOwner, int nFolder, IntPtr hToken, int dwFlags, StringBuilder lpszPath); | ||
1149 | + | ||
1150 | + [Flags()] | ||
1151 | + enum SLGP_FLAGS | ||
1152 | + { | ||
1153 | + /// <summary>Retrieves the standard short (8.3 format) file name</summary> | ||
1154 | + SLGP_SHORTPATH = 0x1, | ||
1155 | + | ||
1156 | + /// <summary>Retrieves the Universal Naming Convention (UNC) path name of the file</summary> | ||
1157 | + SLGP_UNCPRIORITY = 0x2, | ||
1158 | + | ||
1159 | + /// <summary>Retrieves the raw path name. A raw path is something that might not exist and may include environment variables that need to be expanded</summary> | ||
1160 | + SLGP_RAWPATH = 0x4 | ||
1161 | + } | ||
1162 | + | ||
1163 | + [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] | ||
1164 | + struct WIN32_FIND_DATAW | ||
1165 | + { | ||
1166 | + public uint dwFileAttributes; | ||
1167 | + public long ftCreationTime; | ||
1168 | + public long ftLastAccessTime; | ||
1169 | + public long ftLastWriteTime; | ||
1170 | + public uint nFileSizeHigh; | ||
1171 | + public uint nFileSizeLow; | ||
1172 | + public uint dwReserved0; | ||
1173 | + public uint dwReserved1; | ||
1174 | + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)] public string cFileName; | ||
1175 | + [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)] public string cAlternateFileName; | ||
1176 | + } | ||
1177 | + | ||
1178 | + [Flags()] | ||
1179 | + enum SLR_FLAGS | ||
1180 | + { | ||
1181 | + /// <summary> | ||
1182 | + /// Do not display a dialog box if the link cannot be resolved. When SLR_NO_UI is set, | ||
1183 | + /// the high-order word of fFlags can be set to a time-out value that specifies the | ||
1184 | + /// maximum amount of time to be spent resolving the link. The function returns if the | ||
1185 | + /// link cannot be resolved within the time-out duration. If the high-order word is set | ||
1186 | + /// to zero, the time-out duration will be set to the default value of 3,000 milliseconds | ||
1187 | + /// (3 seconds). To specify a value, set the high word of fFlags to the desired time-out | ||
1188 | + /// duration, in milliseconds. | ||
1189 | + /// </summary> | ||
1190 | + SLR_NO_UI = 0x1, | ||
1191 | + | ||
1192 | + /// <summary>Obsolete and no longer used</summary> | ||
1193 | + SLR_ANY_MATCH = 0x2, | ||
1194 | + | ||
1195 | + /// <summary>If the link object has changed, update its path and list of identifiers. | ||
1196 | + /// If SLR_UPDATE is set, you do not need to call IPersistFile::IsDirty to determine | ||
1197 | + /// whether or not the link object has changed.</summary> | ||
1198 | + SLR_UPDATE = 0x4, | ||
1199 | + | ||
1200 | + /// <summary>Do not update the link information</summary> | ||
1201 | + SLR_NOUPDATE = 0x8, | ||
1202 | + | ||
1203 | + /// <summary>Do not execute the search heuristics</summary> | ||
1204 | + SLR_NOSEARCH = 0x10, | ||
1205 | + | ||
1206 | + /// <summary>Do not use distributed link tracking</summary> | ||
1207 | + SLR_NOTRACK = 0x20, | ||
1208 | + | ||
1209 | + /// <summary>Disable distributed link tracking. By default, distributed link tracking tracks | ||
1210 | + /// removable media across multiple devices based on the volume name. It also uses the | ||
1211 | + /// Universal Naming Convention (UNC) path to track remote file systems whose drive letter | ||
1212 | + /// has changed. Setting SLR_NOLINKINFO disables both types of tracking.</summary> | ||
1213 | + SLR_NOLINKINFO = 0x40, | ||
1214 | + | ||
1215 | + /// <summary>Call the Microsoft Windows Installer</summary> | ||
1216 | + SLR_INVOKE_MSI = 0x80 | ||
1217 | + } | ||
1218 | + | ||
1219 | + | ||
1220 | + /// <summary>The IShellLink interface allows Shell links to be created, modified, and resolved</summary> | ||
1221 | + [ComImport(), InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("000214F9-0000-0000-C000-000000000046")] | ||
1222 | + interface IShellLinkW | ||
1223 | + { | ||
1224 | + /// <summary>Retrieves the path and file name of a Shell link object</summary> | ||
1225 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1226 | + void GetPath([Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszFile, int cchMaxPath, out WIN32_FIND_DATAW pfd, SLGP_FLAGS fFlags); | ||
1227 | + | ||
1228 | + /// <summary>Retrieves the list of item identifiers for a Shell link object</summary> | ||
1229 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1230 | + void GetIDList(out IntPtr ppidl); | ||
1231 | + | ||
1232 | + /// <summary>Sets the pointer to an item identifier list (PIDL) for a Shell link object.</summary> | ||
1233 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1234 | + void SetIDList(IntPtr pidl); | ||
1235 | + | ||
1236 | + /// <summary>Retrieves the description string for a Shell link object</summary> | ||
1237 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1238 | + void GetDescription([Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszName, int cchMaxName); | ||
1239 | + | ||
1240 | + /// <summary>Sets the description for a Shell link object. The description can be any application-defined string</summary> | ||
1241 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1242 | + void SetDescription([MarshalAs(UnmanagedType.LPWStr)] string pszName); | ||
1243 | + | ||
1244 | + /// <summary>Retrieves the name of the working directory for a Shell link object</summary> | ||
1245 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1246 | + void GetWorkingDirectory([Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszDir, int cchMaxPath); | ||
1247 | + | ||
1248 | + /// <summary>Sets the name of the working directory for a Shell link object</summary> | ||
1249 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1250 | + void SetWorkingDirectory([MarshalAs(UnmanagedType.LPWStr)] string pszDir); | ||
1251 | + | ||
1252 | + /// <summary>Retrieves the command-line arguments associated with a Shell link object</summary> | ||
1253 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1254 | + void GetArguments([Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszArgs, int cchMaxPath); | ||
1255 | + | ||
1256 | + /// <summary>Sets the command-line arguments for a Shell link object</summary> | ||
1257 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1258 | + void SetArguments([MarshalAs(UnmanagedType.LPWStr)] string pszArgs); | ||
1259 | + | ||
1260 | + /// <summary>Retrieves the hot key for a Shell link object</summary> | ||
1261 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1262 | + void GetHotkey(out short pwHotkey); | ||
1263 | + | ||
1264 | + /// <summary>Sets a hot key for a Shell link object</summary> | ||
1265 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1266 | + void SetHotkey(short wHotkey); | ||
1267 | + | ||
1268 | + /// <summary>Retrieves the show command for a Shell link object</summary> | ||
1269 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1270 | + void GetShowCmd(out int piShowCmd); | ||
1271 | + | ||
1272 | + /// <summary>Sets the show command for a Shell link object. The show command sets the initial show state of the window.</summary> | ||
1273 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1274 | + void SetShowCmd(int iShowCmd); | ||
1275 | + | ||
1276 | + /// <summary>Retrieves the location (path and index) of the icon for a Shell link object</summary> | ||
1277 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1278 | + void GetIconLocation([Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszIconPath, int cchIconPath, out int piIcon); | ||
1279 | + | ||
1280 | + /// <summary>Sets the location (path and index) of the icon for a Shell link object</summary> | ||
1281 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1282 | + void SetIconLocation([MarshalAs(UnmanagedType.LPWStr)] string pszIconPath, int iIcon); | ||
1283 | + | ||
1284 | + /// <summary>Sets the relative path to the Shell link object</summary> | ||
1285 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1286 | + void SetRelativePath([MarshalAs(UnmanagedType.LPWStr)] string pszPathRel, int dwReserved); | ||
1287 | + | ||
1288 | + /// <summary>Attempts to find the target of a Shell link, even if it has been moved or renamed</summary> | ||
1289 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1290 | + void Resolve(IntPtr hwnd, SLR_FLAGS fFlags); | ||
1291 | + | ||
1292 | + /// <summary>Sets the path and file name of a Shell link object</summary> | ||
1293 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1294 | + void SetPath([MarshalAs(UnmanagedType.LPWStr)] string pszFile); | ||
1295 | + } | ||
1296 | + | ||
1297 | + [ComImport, Guid("0000010c-0000-0000-c000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | ||
1298 | + public interface IPersist | ||
1299 | + { | ||
1300 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1301 | + void GetClassID(out Guid pClassID); | ||
1302 | + } | ||
1303 | + | ||
1304 | + | ||
1305 | + [ComImport, Guid("0000010b-0000-0000-C000-000000000046"), | ||
1306 | + InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | ||
1307 | + public interface IPersistFile : IPersist | ||
1308 | + { | ||
1309 | + [MethodImpl(MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1310 | + new void GetClassID(out Guid pClassID); | ||
1311 | + | ||
1312 | + [MethodImpl(MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1313 | + int IsDirty(); | ||
1314 | + | ||
1315 | + [MethodImpl(MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1316 | + void Load([In, MarshalAs(UnmanagedType.LPWStr)] string pszFileName, uint dwMode); | ||
1317 | + | ||
1318 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1319 | + void Save([In, MarshalAs(UnmanagedType.LPWStr)] string pszFileName, [In, MarshalAs(UnmanagedType.Bool)] bool fRemember); | ||
1320 | + | ||
1321 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1322 | + void SaveCompleted([In, MarshalAs(UnmanagedType.LPWStr)] string pszFileName); | ||
1323 | + | ||
1324 | + [MethodImpl (MethodImplOptions.InternalCall | MethodImplOptions.PreserveSig, MethodCodeType = MethodCodeType.Runtime)] | ||
1325 | + void GetCurFile([In, MarshalAs(UnmanagedType.LPWStr)] string ppszFileName); | ||
1326 | + } | ||
1327 | + | ||
1328 | + const uint STGM_READ = 0; | ||
1329 | + const int MAX_PATH = 260; | ||
1330 | + | ||
1331 | + // CLSID_ShellLink from ShlGuid.h | ||
1332 | + [ | ||
1333 | + ComImport(), | ||
1334 | + Guid("00021401-0000-0000-C000-000000000046") | ||
1335 | + ] | ||
1336 | + public class ShellLink | ||
1337 | + { | ||
1338 | + } | ||
1339 | + | ||
1340 | + #endregion | ||
1341 | + | ||
1342 | + public static string Resolve(string filename) | ||
1343 | + { | ||
1344 | + ShellLink link = new ShellLink(); | ||
1345 | + ((IPersistFile) link).Load(filename, STGM_READ); | ||
1346 | + // If I can get hold of the hwnd call resolve first. This handles moved and renamed files. | ||
1347 | + // ((IShellLinkW)link).Resolve(hwnd, 0) | ||
1348 | + StringBuilder sb = new StringBuilder(MAX_PATH); | ||
1349 | + WIN32_FIND_DATAW data = new WIN32_FIND_DATAW(); | ||
1350 | + ((IShellLinkW) link).GetPath(sb, sb.Capacity, out data, 0); | ||
1351 | + return sb.ToString(); | ||
1352 | + } | ||
1353 | + } | ||
1354 | + } | ||
1355 | +} | ||
1356 | + | ||
1357 | +// Developed using JetBrains Rider =) |
1 | +fileFormatVersion: 2 | ||
2 | +guid: 6fa2bb674168e42b5a93fe7bba7715d5 | ||
3 | +timeCreated: 1519397037 | ||
4 | +licenseType: Pro | ||
5 | +MonoImporter: | ||
6 | + externalObjects: {} | ||
7 | + serializedVersion: 2 | ||
8 | + defaultReferences: [] | ||
9 | + executionOrder: 0 | ||
10 | + icon: {instanceID: 0} | ||
11 | + userData: | ||
12 | + assetBundleName: | ||
13 | + assetBundleVariant: |
Assets/Prefabs.meta
0 → 100644
Assets/Prefabs/Column.prefab
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!1001 &100100000 | ||
4 | +Prefab: | ||
5 | + m_ObjectHideFlags: 1 | ||
6 | + serializedVersion: 2 | ||
7 | + m_Modification: | ||
8 | + m_TransformParent: {fileID: 0} | ||
9 | + m_Modifications: [] | ||
10 | + m_RemovedComponents: [] | ||
11 | + m_ParentPrefab: {fileID: 0} | ||
12 | + m_RootGameObject: {fileID: 1720303228931250} | ||
13 | + m_IsPrefabParent: 1 | ||
14 | +--- !u!1 &1484744261248134 | ||
15 | +GameObject: | ||
16 | + m_ObjectHideFlags: 0 | ||
17 | + m_PrefabParentObject: {fileID: 0} | ||
18 | + m_PrefabInternal: {fileID: 100100000} | ||
19 | + serializedVersion: 5 | ||
20 | + m_Component: | ||
21 | + - component: {fileID: 4163578997789240} | ||
22 | + - component: {fileID: 212276257168522726} | ||
23 | + - component: {fileID: 61016105721514336} | ||
24 | + m_Layer: 0 | ||
25 | + m_Name: ColumnSprite | ||
26 | + m_TagString: Untagged | ||
27 | + m_Icon: {fileID: 0} | ||
28 | + m_NavMeshLayer: 0 | ||
29 | + m_StaticEditorFlags: 0 | ||
30 | + m_IsActive: 1 | ||
31 | +--- !u!1 &1667680224237226 | ||
32 | +GameObject: | ||
33 | + m_ObjectHideFlags: 0 | ||
34 | + m_PrefabParentObject: {fileID: 0} | ||
35 | + m_PrefabInternal: {fileID: 100100000} | ||
36 | + serializedVersion: 5 | ||
37 | + m_Component: | ||
38 | + - component: {fileID: 4758334257305802} | ||
39 | + - component: {fileID: 212609282572915852} | ||
40 | + - component: {fileID: 61107008348283784} | ||
41 | + m_Layer: 0 | ||
42 | + m_Name: ColumnSprite (1) | ||
43 | + m_TagString: Untagged | ||
44 | + m_Icon: {fileID: 0} | ||
45 | + m_NavMeshLayer: 0 | ||
46 | + m_StaticEditorFlags: 0 | ||
47 | + m_IsActive: 1 | ||
48 | +--- !u!1 &1720303228931250 | ||
49 | +GameObject: | ||
50 | + m_ObjectHideFlags: 0 | ||
51 | + m_PrefabParentObject: {fileID: 0} | ||
52 | + m_PrefabInternal: {fileID: 100100000} | ||
53 | + serializedVersion: 5 | ||
54 | + m_Component: | ||
55 | + - component: {fileID: 4694590057917360} | ||
56 | + - component: {fileID: 61079832826821288} | ||
57 | + - component: {fileID: 114864748720029070} | ||
58 | + - component: {fileID: 50319138769518298} | ||
59 | + m_Layer: 0 | ||
60 | + m_Name: Column | ||
61 | + m_TagString: Column | ||
62 | + m_Icon: {fileID: 0} | ||
63 | + m_NavMeshLayer: 0 | ||
64 | + m_StaticEditorFlags: 0 | ||
65 | + m_IsActive: 1 | ||
66 | +--- !u!4 &4163578997789240 | ||
67 | +Transform: | ||
68 | + m_ObjectHideFlags: 1 | ||
69 | + m_PrefabParentObject: {fileID: 0} | ||
70 | + m_PrefabInternal: {fileID: 100100000} | ||
71 | + m_GameObject: {fileID: 1484744261248134} | ||
72 | + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} | ||
73 | + m_LocalPosition: {x: 0, y: -6.05, z: 0} | ||
74 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
75 | + m_Children: [] | ||
76 | + m_Father: {fileID: 4694590057917360} | ||
77 | + m_RootOrder: 0 | ||
78 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
79 | +--- !u!4 &4694590057917360 | ||
80 | +Transform: | ||
81 | + m_ObjectHideFlags: 1 | ||
82 | + m_PrefabParentObject: {fileID: 0} | ||
83 | + m_PrefabInternal: {fileID: 100100000} | ||
84 | + m_GameObject: {fileID: 1720303228931250} | ||
85 | + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} | ||
86 | + m_LocalPosition: {x: 0, y: 0, z: 0} | ||
87 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
88 | + m_Children: | ||
89 | + - {fileID: 4163578997789240} | ||
90 | + - {fileID: 4758334257305802} | ||
91 | + m_Father: {fileID: 0} | ||
92 | + m_RootOrder: 0 | ||
93 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} | ||
94 | +--- !u!4 &4758334257305802 | ||
95 | +Transform: | ||
96 | + m_ObjectHideFlags: 1 | ||
97 | + m_PrefabParentObject: {fileID: 0} | ||
98 | + m_PrefabInternal: {fileID: 100100000} | ||
99 | + m_GameObject: {fileID: 1667680224237226} | ||
100 | + m_LocalRotation: {x: 0, y: 0, z: 1, w: 0} | ||
101 | + m_LocalPosition: {x: 0, y: 6.24, z: 0} | ||
102 | + m_LocalScale: {x: 1, y: 1, z: 1} | ||
103 | + m_Children: [] | ||
104 | + m_Father: {fileID: 4694590057917360} | ||
105 | + m_RootOrder: 1 | ||
106 | + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 180} | ||
107 | +--- !u!50 &50319138769518298 | ||
108 | +Rigidbody2D: | ||
109 | + serializedVersion: 4 | ||
110 | + m_ObjectHideFlags: 1 | ||
111 | + m_PrefabParentObject: {fileID: 0} | ||
112 | + m_PrefabInternal: {fileID: 100100000} | ||
113 | + m_GameObject: {fileID: 1720303228931250} | ||
114 | + m_BodyType: 1 | ||
115 | + m_Simulated: 1 | ||
116 | + m_UseFullKinematicContacts: 0 | ||
117 | + m_UseAutoMass: 0 | ||
118 | + m_Mass: 1 | ||
119 | + m_LinearDrag: 0 | ||
120 | + m_AngularDrag: 0.05 | ||
121 | + m_GravityScale: 1 | ||
122 | + m_Material: {fileID: 0} | ||
123 | + m_Interpolate: 0 | ||
124 | + m_SleepingMode: 1 | ||
125 | + m_CollisionDetection: 0 | ||
126 | + m_Constraints: 0 | ||
127 | +--- !u!61 &61016105721514336 | ||
128 | +BoxCollider2D: | ||
129 | + m_ObjectHideFlags: 1 | ||
130 | + m_PrefabParentObject: {fileID: 0} | ||
131 | + m_PrefabInternal: {fileID: 100100000} | ||
132 | + m_GameObject: {fileID: 1484744261248134} | ||
133 | + m_Enabled: 1 | ||
134 | + m_Density: 1 | ||
135 | + m_Material: {fileID: 0} | ||
136 | + m_IsTrigger: 0 | ||
137 | + m_UsedByEffector: 0 | ||
138 | + m_UsedByComposite: 0 | ||
139 | + m_Offset: {x: 0, y: 0} | ||
140 | + m_SpriteTilingProperty: | ||
141 | + border: {x: 0, y: 0, z: 0, w: 0} | ||
142 | + pivot: {x: 0.5, y: 0.5} | ||
143 | + oldSize: {x: 2.56, y: 10.24} | ||
144 | + newSize: {x: 2.56, y: 10.24} | ||
145 | + adaptiveTilingThreshold: 0.5 | ||
146 | + drawMode: 0 | ||
147 | + adaptiveTiling: 0 | ||
148 | + m_AutoTiling: 0 | ||
149 | + serializedVersion: 2 | ||
150 | + m_Size: {x: 1.28, y: 10.24} | ||
151 | + m_EdgeRadius: 0 | ||
152 | +--- !u!61 &61079832826821288 | ||
153 | +BoxCollider2D: | ||
154 | + m_ObjectHideFlags: 1 | ||
155 | + m_PrefabParentObject: {fileID: 0} | ||
156 | + m_PrefabInternal: {fileID: 100100000} | ||
157 | + m_GameObject: {fileID: 1720303228931250} | ||
158 | + m_Enabled: 1 | ||
159 | + m_Density: 1 | ||
160 | + m_Material: {fileID: 0} | ||
161 | + m_IsTrigger: 1 | ||
162 | + m_UsedByEffector: 0 | ||
163 | + m_UsedByComposite: 0 | ||
164 | + m_Offset: {x: 0, y: 0.12} | ||
165 | + m_SpriteTilingProperty: | ||
166 | + border: {x: 0, y: 0, z: 0, w: 0} | ||
167 | + pivot: {x: 0, y: 0} | ||
168 | + oldSize: {x: 0, y: 0} | ||
169 | + newSize: {x: 0, y: 0} | ||
170 | + adaptiveTilingThreshold: 0 | ||
171 | + drawMode: 0 | ||
172 | + adaptiveTiling: 0 | ||
173 | + m_AutoTiling: 0 | ||
174 | + serializedVersion: 2 | ||
175 | + m_Size: {x: 1.14, y: 1.52} | ||
176 | + m_EdgeRadius: 0 | ||
177 | +--- !u!61 &61107008348283784 | ||
178 | +BoxCollider2D: | ||
179 | + m_ObjectHideFlags: 1 | ||
180 | + m_PrefabParentObject: {fileID: 0} | ||
181 | + m_PrefabInternal: {fileID: 100100000} | ||
182 | + m_GameObject: {fileID: 1667680224237226} | ||
183 | + m_Enabled: 1 | ||
184 | + m_Density: 1 | ||
185 | + m_Material: {fileID: 0} | ||
186 | + m_IsTrigger: 0 | ||
187 | + m_UsedByEffector: 0 | ||
188 | + m_UsedByComposite: 0 | ||
189 | + m_Offset: {x: 0, y: 0} | ||
190 | + m_SpriteTilingProperty: | ||
191 | + border: {x: 0, y: 0, z: 0, w: 0} | ||
192 | + pivot: {x: 0.5, y: 0.5} | ||
193 | + oldSize: {x: 2.56, y: 10.24} | ||
194 | + newSize: {x: 2.56, y: 10.24} | ||
195 | + adaptiveTilingThreshold: 0.5 | ||
196 | + drawMode: 0 | ||
197 | + adaptiveTiling: 0 | ||
198 | + m_AutoTiling: 0 | ||
199 | + serializedVersion: 2 | ||
200 | + m_Size: {x: 1.28, y: 10.24} | ||
201 | + m_EdgeRadius: 0 | ||
202 | +--- !u!114 &114864748720029070 | ||
203 | +MonoBehaviour: | ||
204 | + m_ObjectHideFlags: 1 | ||
205 | + m_PrefabParentObject: {fileID: 0} | ||
206 | + m_PrefabInternal: {fileID: 100100000} | ||
207 | + m_GameObject: {fileID: 1720303228931250} | ||
208 | + m_Enabled: 1 | ||
209 | + m_EditorHideFlags: 0 | ||
210 | + m_Script: {fileID: 11500000, guid: 7b1a752e74fb5054ca7c529e71e13e25, type: 3} | ||
211 | + m_Name: | ||
212 | + m_EditorClassIdentifier: | ||
213 | +--- !u!212 &212276257168522726 | ||
214 | +SpriteRenderer: | ||
215 | + m_ObjectHideFlags: 1 | ||
216 | + m_PrefabParentObject: {fileID: 0} | ||
217 | + m_PrefabInternal: {fileID: 100100000} | ||
218 | + m_GameObject: {fileID: 1484744261248134} | ||
219 | + m_Enabled: 1 | ||
220 | + m_CastShadows: 0 | ||
221 | + m_ReceiveShadows: 0 | ||
222 | + m_DynamicOccludee: 1 | ||
223 | + m_MotionVectors: 1 | ||
224 | + m_LightProbeUsage: 1 | ||
225 | + m_ReflectionProbeUsage: 1 | ||
226 | + m_Materials: | ||
227 | + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} | ||
228 | + m_StaticBatchInfo: | ||
229 | + firstSubMesh: 0 | ||
230 | + subMeshCount: 0 | ||
231 | + m_StaticBatchRoot: {fileID: 0} | ||
232 | + m_ProbeAnchor: {fileID: 0} | ||
233 | + m_LightProbeVolumeOverride: {fileID: 0} | ||
234 | + m_ScaleInLightmap: 1 | ||
235 | + m_PreserveUVs: 0 | ||
236 | + m_IgnoreNormalsForChartDetection: 0 | ||
237 | + m_ImportantGI: 0 | ||
238 | + m_StitchLightmapSeams: 0 | ||
239 | + m_SelectedEditorRenderState: 0 | ||
240 | + m_MinimumChartSize: 4 | ||
241 | + m_AutoUVMaxDistance: 0.5 | ||
242 | + m_AutoUVMaxAngle: 89 | ||
243 | + m_LightmapParameters: {fileID: 0} | ||
244 | + m_SortingLayerID: 445731935 | ||
245 | + m_SortingLayer: 2 | ||
246 | + m_SortingOrder: 0 | ||
247 | + m_Sprite: {fileID: 21300000, guid: 027275c8003550041bea4615a508eb2f, type: 3} | ||
248 | + m_Color: {r: 1, g: 1, b: 1, a: 1} | ||
249 | + m_FlipX: 0 | ||
250 | + m_FlipY: 0 | ||
251 | + m_DrawMode: 0 | ||
252 | + m_Size: {x: 2.56, y: 10.24} | ||
253 | + m_AdaptiveModeThreshold: 0.5 | ||
254 | + m_SpriteTileMode: 0 | ||
255 | + m_WasSpriteAssigned: 1 | ||
256 | + m_MaskInteraction: 0 | ||
257 | +--- !u!212 &212609282572915852 | ||
258 | +SpriteRenderer: | ||
259 | + m_ObjectHideFlags: 1 | ||
260 | + m_PrefabParentObject: {fileID: 0} | ||
261 | + m_PrefabInternal: {fileID: 100100000} | ||
262 | + m_GameObject: {fileID: 1667680224237226} | ||
263 | + m_Enabled: 1 | ||
264 | + m_CastShadows: 0 | ||
265 | + m_ReceiveShadows: 0 | ||
266 | + m_DynamicOccludee: 1 | ||
267 | + m_MotionVectors: 1 | ||
268 | + m_LightProbeUsage: 1 | ||
269 | + m_ReflectionProbeUsage: 1 | ||
270 | + m_Materials: | ||
271 | + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} | ||
272 | + m_StaticBatchInfo: | ||
273 | + firstSubMesh: 0 | ||
274 | + subMeshCount: 0 | ||
275 | + m_StaticBatchRoot: {fileID: 0} | ||
276 | + m_ProbeAnchor: {fileID: 0} | ||
277 | + m_LightProbeVolumeOverride: {fileID: 0} | ||
278 | + m_ScaleInLightmap: 1 | ||
279 | + m_PreserveUVs: 0 | ||
280 | + m_IgnoreNormalsForChartDetection: 0 | ||
281 | + m_ImportantGI: 0 | ||
282 | + m_StitchLightmapSeams: 0 | ||
283 | + m_SelectedEditorRenderState: 0 | ||
284 | + m_MinimumChartSize: 4 | ||
285 | + m_AutoUVMaxDistance: 0.5 | ||
286 | + m_AutoUVMaxAngle: 89 | ||
287 | + m_LightmapParameters: {fileID: 0} | ||
288 | + m_SortingLayerID: 445731935 | ||
289 | + m_SortingLayer: 2 | ||
290 | + m_SortingOrder: 0 | ||
291 | + m_Sprite: {fileID: 21300000, guid: 027275c8003550041bea4615a508eb2f, type: 3} | ||
292 | + m_Color: {r: 1, g: 1, b: 1, a: 1} | ||
293 | + m_FlipX: 0 | ||
294 | + m_FlipY: 0 | ||
295 | + m_DrawMode: 0 | ||
296 | + m_Size: {x: 2.56, y: 10.24} | ||
297 | + m_AdaptiveModeThreshold: 0.5 | ||
298 | + m_SpriteTileMode: 0 | ||
299 | + m_WasSpriteAssigned: 1 | ||
300 | + m_MaskInteraction: 0 |
Assets/Prefabs/Column.prefab.meta
0 → 100644
Assets/Resources.meta
0 → 100644
Assets/Resources/Bird.controller
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!91 &9100000 | ||
4 | +AnimatorController: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + m_PrefabParentObject: {fileID: 0} | ||
7 | + m_PrefabInternal: {fileID: 0} | ||
8 | + m_Name: Bird | ||
9 | + serializedVersion: 5 | ||
10 | + m_AnimatorParameters: | ||
11 | + - m_Name: Flap | ||
12 | + m_Type: 9 | ||
13 | + m_DefaultFloat: 0 | ||
14 | + m_DefaultInt: 0 | ||
15 | + m_DefaultBool: 0 | ||
16 | + m_Controller: {fileID: 9100000} | ||
17 | + - m_Name: Die | ||
18 | + m_Type: 9 | ||
19 | + m_DefaultFloat: 0 | ||
20 | + m_DefaultInt: 0 | ||
21 | + m_DefaultBool: 0 | ||
22 | + m_Controller: {fileID: 9100000} | ||
23 | + m_AnimatorLayers: | ||
24 | + - serializedVersion: 5 | ||
25 | + m_Name: Base Layer | ||
26 | + m_StateMachine: {fileID: 1107440744131508270} | ||
27 | + m_Mask: {fileID: 0} | ||
28 | + m_Motions: [] | ||
29 | + m_Behaviours: [] | ||
30 | + m_BlendingMode: 0 | ||
31 | + m_SyncedLayerIndex: -1 | ||
32 | + m_DefaultWeight: 0 | ||
33 | + m_IKPass: 0 | ||
34 | + m_SyncedLayerAffectsTiming: 0 | ||
35 | + m_Controller: {fileID: 9100000} | ||
36 | +--- !u!1101 &1101221612427091350 | ||
37 | +AnimatorStateTransition: | ||
38 | + m_ObjectHideFlags: 1 | ||
39 | + m_PrefabParentObject: {fileID: 0} | ||
40 | + m_PrefabInternal: {fileID: 0} | ||
41 | + m_Name: | ||
42 | + m_Conditions: [] | ||
43 | + m_DstStateMachine: {fileID: 0} | ||
44 | + m_DstState: {fileID: 1102974850268506730} | ||
45 | + m_Solo: 0 | ||
46 | + m_Mute: 0 | ||
47 | + m_IsExit: 0 | ||
48 | + serializedVersion: 3 | ||
49 | + m_TransitionDuration: 0.25 | ||
50 | + m_TransitionOffset: 0 | ||
51 | + m_ExitTime: 0 | ||
52 | + m_HasExitTime: 1 | ||
53 | + m_HasFixedDuration: 1 | ||
54 | + m_InterruptionSource: 0 | ||
55 | + m_OrderedInterruption: 1 | ||
56 | + m_CanTransitionToSelf: 1 | ||
57 | +--- !u!1101 &1101222925794420220 | ||
58 | +AnimatorStateTransition: | ||
59 | + m_ObjectHideFlags: 1 | ||
60 | + m_PrefabParentObject: {fileID: 0} | ||
61 | + m_PrefabInternal: {fileID: 0} | ||
62 | + m_Name: | ||
63 | + m_Conditions: | ||
64 | + - m_ConditionMode: 1 | ||
65 | + m_ConditionEvent: Die | ||
66 | + m_EventTreshold: 0 | ||
67 | + m_DstStateMachine: {fileID: 0} | ||
68 | + m_DstState: {fileID: 1102254376251710258} | ||
69 | + m_Solo: 0 | ||
70 | + m_Mute: 0 | ||
71 | + m_IsExit: 0 | ||
72 | + serializedVersion: 3 | ||
73 | + m_TransitionDuration: 0 | ||
74 | + m_TransitionOffset: 0 | ||
75 | + m_ExitTime: 0 | ||
76 | + m_HasExitTime: 1 | ||
77 | + m_HasFixedDuration: 1 | ||
78 | + m_InterruptionSource: 0 | ||
79 | + m_OrderedInterruption: 1 | ||
80 | + m_CanTransitionToSelf: 1 | ||
81 | +--- !u!1101 &1101931539827778212 | ||
82 | +AnimatorStateTransition: | ||
83 | + m_ObjectHideFlags: 1 | ||
84 | + m_PrefabParentObject: {fileID: 0} | ||
85 | + m_PrefabInternal: {fileID: 0} | ||
86 | + m_Name: | ||
87 | + m_Conditions: | ||
88 | + - m_ConditionMode: 1 | ||
89 | + m_ConditionEvent: Flap | ||
90 | + m_EventTreshold: 0 | ||
91 | + m_DstStateMachine: {fileID: 0} | ||
92 | + m_DstState: {fileID: 1102482044870805120} | ||
93 | + m_Solo: 0 | ||
94 | + m_Mute: 0 | ||
95 | + m_IsExit: 0 | ||
96 | + serializedVersion: 3 | ||
97 | + m_TransitionDuration: 0 | ||
98 | + m_TransitionOffset: 0 | ||
99 | + m_ExitTime: 0 | ||
100 | + m_HasExitTime: 1 | ||
101 | + m_HasFixedDuration: 1 | ||
102 | + m_InterruptionSource: 0 | ||
103 | + m_OrderedInterruption: 1 | ||
104 | + m_CanTransitionToSelf: 1 | ||
105 | +--- !u!1102 &1102254376251710258 | ||
106 | +AnimatorState: | ||
107 | + serializedVersion: 5 | ||
108 | + m_ObjectHideFlags: 1 | ||
109 | + m_PrefabParentObject: {fileID: 0} | ||
110 | + m_PrefabInternal: {fileID: 0} | ||
111 | + m_Name: Die | ||
112 | + m_Speed: 1 | ||
113 | + m_CycleOffset: 0 | ||
114 | + m_Transitions: [] | ||
115 | + m_StateMachineBehaviours: [] | ||
116 | + m_Position: {x: 50, y: 50, z: 0} | ||
117 | + m_IKOnFeet: 0 | ||
118 | + m_WriteDefaultValues: 1 | ||
119 | + m_Mirror: 0 | ||
120 | + m_SpeedParameterActive: 0 | ||
121 | + m_MirrorParameterActive: 0 | ||
122 | + m_CycleOffsetParameterActive: 0 | ||
123 | + m_TimeParameterActive: 0 | ||
124 | + m_Motion: {fileID: 7400000, guid: 716289930587c0444840344db05ebbf1, type: 2} | ||
125 | + m_Tag: | ||
126 | + m_SpeedParameter: | ||
127 | + m_MirrorParameter: | ||
128 | + m_CycleOffsetParameter: | ||
129 | + m_TimeParameter: | ||
130 | +--- !u!1102 &1102482044870805120 | ||
131 | +AnimatorState: | ||
132 | + serializedVersion: 5 | ||
133 | + m_ObjectHideFlags: 1 | ||
134 | + m_PrefabParentObject: {fileID: 0} | ||
135 | + m_PrefabInternal: {fileID: 0} | ||
136 | + m_Name: Flap | ||
137 | + m_Speed: 1 | ||
138 | + m_CycleOffset: 0 | ||
139 | + m_Transitions: | ||
140 | + - {fileID: 1101221612427091350} | ||
141 | + m_StateMachineBehaviours: [] | ||
142 | + m_Position: {x: 50, y: 50, z: 0} | ||
143 | + m_IKOnFeet: 0 | ||
144 | + m_WriteDefaultValues: 1 | ||
145 | + m_Mirror: 0 | ||
146 | + m_SpeedParameterActive: 0 | ||
147 | + m_MirrorParameterActive: 0 | ||
148 | + m_CycleOffsetParameterActive: 0 | ||
149 | + m_TimeParameterActive: 0 | ||
150 | + m_Motion: {fileID: 7400000, guid: 01936ebf0f3ad824694ad8a117daae42, type: 2} | ||
151 | + m_Tag: | ||
152 | + m_SpeedParameter: | ||
153 | + m_MirrorParameter: | ||
154 | + m_CycleOffsetParameter: | ||
155 | + m_TimeParameter: | ||
156 | +--- !u!1102 &1102974850268506730 | ||
157 | +AnimatorState: | ||
158 | + serializedVersion: 5 | ||
159 | + m_ObjectHideFlags: 1 | ||
160 | + m_PrefabParentObject: {fileID: 0} | ||
161 | + m_PrefabInternal: {fileID: 0} | ||
162 | + m_Name: Idle | ||
163 | + m_Speed: 1 | ||
164 | + m_CycleOffset: 0 | ||
165 | + m_Transitions: | ||
166 | + - {fileID: 1101222925794420220} | ||
167 | + - {fileID: 1101931539827778212} | ||
168 | + m_StateMachineBehaviours: [] | ||
169 | + m_Position: {x: 50, y: 50, z: 0} | ||
170 | + m_IKOnFeet: 0 | ||
171 | + m_WriteDefaultValues: 1 | ||
172 | + m_Mirror: 0 | ||
173 | + m_SpeedParameterActive: 0 | ||
174 | + m_MirrorParameterActive: 0 | ||
175 | + m_CycleOffsetParameterActive: 0 | ||
176 | + m_TimeParameterActive: 0 | ||
177 | + m_Motion: {fileID: 7400000, guid: bf92e13734139bf479a5d6b5ed945cc2, type: 2} | ||
178 | + m_Tag: | ||
179 | + m_SpeedParameter: | ||
180 | + m_MirrorParameter: | ||
181 | + m_CycleOffsetParameter: | ||
182 | + m_TimeParameter: | ||
183 | +--- !u!1107 &1107440744131508270 | ||
184 | +AnimatorStateMachine: | ||
185 | + serializedVersion: 5 | ||
186 | + m_ObjectHideFlags: 1 | ||
187 | + m_PrefabParentObject: {fileID: 0} | ||
188 | + m_PrefabInternal: {fileID: 0} | ||
189 | + m_Name: Base Layer | ||
190 | + m_ChildStates: | ||
191 | + - serializedVersion: 1 | ||
192 | + m_State: {fileID: 1102974850268506730} | ||
193 | + m_Position: {x: 240, y: -60, z: 0} | ||
194 | + - serializedVersion: 1 | ||
195 | + m_State: {fileID: 1102482044870805120} | ||
196 | + m_Position: {x: 348, y: 48, z: 0} | ||
197 | + - serializedVersion: 1 | ||
198 | + m_State: {fileID: 1102254376251710258} | ||
199 | + m_Position: {x: 192, y: 144, z: 0} | ||
200 | + m_ChildStateMachines: [] | ||
201 | + m_AnyStateTransitions: [] | ||
202 | + m_EntryTransitions: [] | ||
203 | + m_StateMachineTransitions: {} | ||
204 | + m_StateMachineBehaviours: [] | ||
205 | + m_AnyStatePosition: {x: -12, y: -12, z: 0} | ||
206 | + m_EntryPosition: {x: 48, y: -72, z: 0} | ||
207 | + m_ExitPosition: {x: 800, y: 120, z: 0} | ||
208 | + m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} | ||
209 | + m_DefaultState: {fileID: 1102974850268506730} |
Assets/Resources/Bird.controller.meta
0 → 100644
Assets/Scripts.meta
0 → 100644
Assets/Scripts/Bird.cs
0 → 100644
1 | +using UnityEngine; | ||
2 | +using System.Collections; | ||
3 | + | ||
4 | + | ||
5 | +[RequireComponent(typeof(Rigidbody2D),typeof(Animator))] | ||
6 | +public class Bird : MonoBehaviour | ||
7 | +{ | ||
8 | + public float upForce; //Upward force of the "flap". | ||
9 | + private bool isDead = false; //Has the player collided with a wall? | ||
10 | + | ||
11 | + private Animator anim; //Reference to the Animator component. | ||
12 | + private Rigidbody2D rb2d; //Holds a reference to the Rigidbody2D component of the bird. | ||
13 | + | ||
14 | + public IUnityInputService UnityInput; | ||
15 | + | ||
16 | + public bool IsDead | ||
17 | + { | ||
18 | + get { return isDead; } | ||
19 | + private set { isDead = value; } | ||
20 | + } | ||
21 | + | ||
22 | + void Start() | ||
23 | + { | ||
24 | + //Get reference to the Animator component attached to this GameObject. | ||
25 | + anim = GetComponent<Animator> (); | ||
26 | + //Get and store a reference to the Rigidbody2D attached to this GameObject. | ||
27 | + rb2d = GetComponent<Rigidbody2D>(); | ||
28 | + | ||
29 | + if (UnityInput == null) | ||
30 | + { | ||
31 | + UnityInput = new UnityInputService(); | ||
32 | + } | ||
33 | + | ||
34 | + } | ||
35 | + | ||
36 | + void Update() | ||
37 | + { | ||
38 | + //Don't allow control if the bird has died. | ||
39 | + if (isDead == false) | ||
40 | + { | ||
41 | + //Look for input to trigger a "flap". | ||
42 | + if (UnityInput.GetButtonDown("Fire1")) | ||
43 | + { | ||
44 | + Jump(); | ||
45 | + } | ||
46 | + } | ||
47 | + } | ||
48 | + | ||
49 | + void OnCollisionEnter2D(Collision2D other) | ||
50 | + { | ||
51 | + // Zero out the bird's velocity | ||
52 | + rb2d.velocity = Vector2.zero; | ||
53 | + // If the bird collides with something set it to dead... | ||
54 | + isDead = true; | ||
55 | + //...tell the Animator about it... | ||
56 | + anim.SetTrigger("Die"); | ||
57 | + //...and tell the game control about it. | ||
58 | + | ||
59 | + if (GameControl.instance != null) | ||
60 | + { | ||
61 | + GameControl.instance.BirdDied(); | ||
62 | + } | ||
63 | + } | ||
64 | + | ||
65 | + void OnTriggerEnter2D(Collider2D other) | ||
66 | + { | ||
67 | + | ||
68 | + //If the bird hits the trigger collider in between the columns then | ||
69 | + //tell the game control that the bird scored. | ||
70 | + GameControl.instance.BirdScored(); | ||
71 | + | ||
72 | + } | ||
73 | + | ||
74 | + public void Jump() | ||
75 | + { | ||
76 | + //...tell the animator about it and then... | ||
77 | + anim.SetTrigger("Flap"); | ||
78 | + //...zero out the birds current y velocity before... | ||
79 | + rb2d.velocity = Vector2.zero; | ||
80 | + // new Vector2(rb2d.velocity.x, 0); | ||
81 | + //..giving the bird some upward force. | ||
82 | + rb2d.AddForce(new Vector2(0, upForce)); | ||
83 | + } | ||
84 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
Assets/Scripts/Bird.cs.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: ec40af56bc8453b4cbedbb0bcbc47943 | ||
3 | +timeCreated: 1515668241 | ||
4 | +licenseType: Free | ||
5 | +MonoImporter: | ||
6 | + externalObjects: {} | ||
7 | + serializedVersion: 2 | ||
8 | + defaultReferences: [] | ||
9 | + executionOrder: 0 | ||
10 | + icon: {instanceID: 0} | ||
11 | + userData: | ||
12 | + assetBundleName: | ||
13 | + assetBundleVariant: |
Assets/Scripts/Column.cs
0 → 100644
Assets/Scripts/Column.cs.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: d233ccc49830a41759b5a566fd8c645b | ||
3 | +timeCreated: 1519396995 | ||
4 | +licenseType: Pro | ||
5 | +MonoImporter: | ||
6 | + externalObjects: {} | ||
7 | + serializedVersion: 2 | ||
8 | + defaultReferences: [] | ||
9 | + executionOrder: 0 | ||
10 | + icon: {instanceID: 0} | ||
11 | + userData: | ||
12 | + assetBundleName: | ||
13 | + assetBundleVariant: |
Assets/Scripts/ColumnPool.cs
0 → 100644
1 | +using UnityEngine; | ||
2 | +using System.Collections; | ||
3 | + | ||
4 | +public class ColumnPool : MonoBehaviour | ||
5 | +{ | ||
6 | + public GameObject columnPrefab; //The column game object. | ||
7 | + public int columnPoolSize = 5; //How many columns to keep on standby. | ||
8 | + public float spawnRate = 3f; //How quickly columns spawn. | ||
9 | + public float columnMin = -1f; //Minimum y value of the column position. | ||
10 | + public float columnMax = 3.5f; //Maximum y value of the column position. | ||
11 | + | ||
12 | + private GameObject[] columns; //Collection of pooled columns. | ||
13 | + private int currentColumn = 0; //Index of the current column in the collection. | ||
14 | + | ||
15 | + private Vector2 objectPoolPosition = new Vector2 (-15,-25); //A holding position for our unused columns offscreen. | ||
16 | + private float spawnXPosition = 10f; | ||
17 | + | ||
18 | + private float timeSinceLastSpawned; | ||
19 | + | ||
20 | + | ||
21 | + void Start() | ||
22 | + { | ||
23 | + timeSinceLastSpawned = 0f; | ||
24 | + | ||
25 | + //Initialize the columns collection. | ||
26 | + columns = new GameObject[columnPoolSize]; | ||
27 | + //Loop through the collection... | ||
28 | + for(int i = 0; i < columnPoolSize; i++) | ||
29 | + { | ||
30 | + //...and create the individual columns. | ||
31 | + columns[i] = (GameObject)Instantiate(columnPrefab, objectPoolPosition, Quaternion.identity); | ||
32 | + } | ||
33 | + } | ||
34 | + | ||
35 | + | ||
36 | + //This spawns columns as long as the game is not over. | ||
37 | + void Update() | ||
38 | + { | ||
39 | + timeSinceLastSpawned += Time.deltaTime; | ||
40 | + | ||
41 | + if (GameControl.instance.gameOver == false && timeSinceLastSpawned >= spawnRate) | ||
42 | + { | ||
43 | + timeSinceLastSpawned = 0f; | ||
44 | + | ||
45 | + //Set a random y position for the column | ||
46 | + float spawnYPosition = Random.Range(columnMin, columnMax); | ||
47 | + | ||
48 | + //...then set the current column to that position. | ||
49 | + columns[currentColumn].transform.position = new Vector2(spawnXPosition, spawnYPosition); | ||
50 | + | ||
51 | + //Increase the value of currentColumn. If the new size is too big, set it back to zero | ||
52 | + currentColumn ++; | ||
53 | + | ||
54 | + if (currentColumn >= columnPoolSize) | ||
55 | + { | ||
56 | + currentColumn = 0; | ||
57 | + } | ||
58 | + } | ||
59 | + } | ||
60 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
Assets/Scripts/ColumnPool.cs.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: 526fa13eb98519b49b2d1b6cfa2175a7 | ||
3 | +timeCreated: 1516104194 | ||
4 | +licenseType: Free | ||
5 | +MonoImporter: | ||
6 | + externalObjects: {} | ||
7 | + serializedVersion: 2 | ||
8 | + defaultReferences: [] | ||
9 | + executionOrder: 0 | ||
10 | + icon: {instanceID: 0} | ||
11 | + userData: | ||
12 | + assetBundleName: | ||
13 | + assetBundleVariant: |
Assets/Scripts/GameControl.cs
0 → 100644
1 | +using UnityEngine; | ||
2 | +using System.Collections; | ||
3 | +using UnityEngine.AI; | ||
4 | +using UnityEngine.UI; | ||
5 | +using UnityEngine.SceneManagement; | ||
6 | + | ||
7 | +public class GameControl : MonoBehaviour | ||
8 | +{ | ||
9 | + public static GameControl instance; //A reference to our game control script so we can access it statically. | ||
10 | + public Text scoreText; //A reference to the UI text component that displays the player's score. | ||
11 | + public GameObject gameOvertext; //A reference to the object that displays the text which appears when the player dies. | ||
12 | + | ||
13 | + public int score { get; private set; } //The player's score. | ||
14 | + public bool gameOver = false; //Is the game over? | ||
15 | + public float scrollSpeed = -1.5f; | ||
16 | + | ||
17 | + | ||
18 | + void Awake() | ||
19 | + { | ||
20 | + //If we don't currently have a game control... | ||
21 | + if (instance == null) | ||
22 | + //...set this one to be it... | ||
23 | + instance = this; | ||
24 | + //...otherwise... | ||
25 | + else if(instance != this) | ||
26 | + //...destroy this one because it is a duplicate. | ||
27 | + Destroy (gameObject); | ||
28 | + } | ||
29 | + | ||
30 | + void Update() | ||
31 | + { | ||
32 | + //If the game is over and the player has pressed some input... | ||
33 | + if (gameOver && Input.GetMouseButtonDown(0)) | ||
34 | + { | ||
35 | + //...reload the current scene. | ||
36 | + SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); | ||
37 | + } | ||
38 | + } | ||
39 | + | ||
40 | + public void BirdScored() | ||
41 | + { | ||
42 | + //The bird can't score if the game is over. | ||
43 | + if (gameOver) | ||
44 | + return; | ||
45 | + //If the game is not over, increase the score... | ||
46 | + score++; | ||
47 | + | ||
48 | + if (scoreText != null) | ||
49 | + { | ||
50 | + //...and adjust the score text. | ||
51 | + scoreText.text = "Score: " + score.ToString(); | ||
52 | + } | ||
53 | + } | ||
54 | + | ||
55 | + public void BirdDied() | ||
56 | + { | ||
57 | + //Activate the game over text. | ||
58 | + gameOvertext.SetActive (true); | ||
59 | + //Set the game to be over. | ||
60 | + gameOver = true; | ||
61 | + } | ||
62 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
Assets/Scripts/GameControl.cs.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: 40cf1fd6d5f973d4cbef0c3a00ba6d3a | ||
3 | +timeCreated: 1515675913 | ||
4 | +licenseType: Free | ||
5 | +MonoImporter: | ||
6 | + externalObjects: {} | ||
7 | + serializedVersion: 2 | ||
8 | + defaultReferences: [] | ||
9 | + executionOrder: 0 | ||
10 | + icon: {instanceID: 0} | ||
11 | + userData: | ||
12 | + assetBundleName: | ||
13 | + assetBundleVariant: |
Assets/Scripts/IUnityInput.cs
0 → 100644
1 | +using UnityEngine; | ||
2 | + | ||
3 | +public interface IUnityInputService | ||
4 | +{ | ||
5 | + bool GetButtonDown(string buttonName); | ||
6 | +} | ||
7 | + | ||
8 | +public class UnityInputService : IUnityInputService | ||
9 | +{ | ||
10 | + public bool GetButtonDown(string buttonName) | ||
11 | + { | ||
12 | + return Input.GetButtonDown(buttonName); | ||
13 | + } | ||
14 | + | ||
15 | +} | ||
16 | + |
Assets/Scripts/IUnityInput.cs.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: 1eb25c135754d4ca0a4b476595a55990 | ||
3 | +timeCreated: 1519401359 | ||
4 | +licenseType: Pro | ||
5 | +MonoImporter: | ||
6 | + externalObjects: {} | ||
7 | + serializedVersion: 2 | ||
8 | + defaultReferences: [] | ||
9 | + executionOrder: 0 | ||
10 | + icon: {instanceID: 0} | ||
11 | + userData: | ||
12 | + assetBundleName: | ||
13 | + assetBundleVariant: |
Assets/Scripts/RepeatingBackground.cs
0 → 100644
1 | +using UnityEngine; | ||
2 | +using System.Collections; | ||
3 | + | ||
4 | +public class RepeatingBackground : MonoBehaviour | ||
5 | +{ | ||
6 | + | ||
7 | + private BoxCollider2D groundCollider; //This stores a reference to the collider attached to the Ground. | ||
8 | + private float groundHorizontalLength; //A float to store the x-axis length of the collider2D attached to the Ground GameObject. | ||
9 | + | ||
10 | + //Awake is called before Start. | ||
11 | + private void Awake () | ||
12 | + { | ||
13 | + //Get and store a reference to the collider2D attached to Ground. | ||
14 | + groundCollider = GetComponent<BoxCollider2D> (); | ||
15 | + //Store the size of the collider along the x axis (its length in units). | ||
16 | + groundHorizontalLength = groundCollider.size.x; | ||
17 | + } | ||
18 | + | ||
19 | + //Update runs once per frame | ||
20 | + private void Update() | ||
21 | + { | ||
22 | + //Check if the difference along the x axis between the main Camera and the position of the object this is attached to is greater than groundHorizontalLength. | ||
23 | + if (transform.position.x < -groundHorizontalLength) | ||
24 | + { | ||
25 | + //If true, this means this object is no longer visible and we can safely move it forward to be re-used. | ||
26 | + RepositionBackground (); | ||
27 | + } | ||
28 | + } | ||
29 | + | ||
30 | + //Moves the object this script is attached to right in order to create our looping background effect. | ||
31 | + private void RepositionBackground() | ||
32 | + { | ||
33 | + //This is how far to the right we will move our background object, in this case, twice its length. This will position it directly to the right of the currently visible background object. | ||
34 | + Vector2 groundOffSet = new Vector2(groundHorizontalLength * 2f, 0); | ||
35 | + | ||
36 | + //Move this object from it's position offscreen, behind the player, to the new position off-camera in front of the player. | ||
37 | + transform.position = (Vector2) transform.position + groundOffSet; | ||
38 | + } | ||
39 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
Assets/Scripts/RepeatingBackground.cs.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: fbfcbcfa5a0c15148b227cf5b6f9c878 | ||
3 | +timeCreated: 1515674874 | ||
4 | +licenseType: Free | ||
5 | +MonoImporter: | ||
6 | + externalObjects: {} | ||
7 | + serializedVersion: 2 | ||
8 | + defaultReferences: [] | ||
9 | + executionOrder: 0 | ||
10 | + icon: {instanceID: 0} | ||
11 | + userData: | ||
12 | + assetBundleName: | ||
13 | + assetBundleVariant: |
Assets/Scripts/ScrollingObject.cs
0 → 100644
1 | +using System.Collections; | ||
2 | +using System.Collections.Generic; | ||
3 | +using UnityEngine; | ||
4 | + | ||
5 | +[RequireComponent(typeof(Rigidbody2D))] | ||
6 | +public class ScrollingObject : MonoBehaviour | ||
7 | +{ | ||
8 | + private Rigidbody2D rb2d; | ||
9 | + | ||
10 | + // Use this for initialization | ||
11 | + void Start () | ||
12 | + { | ||
13 | + | ||
14 | + | ||
15 | + //Get and store a reference to the Rigidbody2D attached to this GameObject. | ||
16 | + rb2d = GetComponent<Rigidbody2D>(); | ||
17 | + | ||
18 | + rb2d.bodyType = RigidbodyType2D.Kinematic; | ||
19 | + //Start the object moving. | ||
20 | + rb2d.velocity = new Vector2 (GameControl.instance.scrollSpeed, 0); | ||
21 | + | ||
22 | + | ||
23 | + } | ||
24 | + | ||
25 | + void Update() | ||
26 | + { | ||
27 | + // If the game is over, stop scrolling. | ||
28 | + if(GameControl.instance.gameOver == true) | ||
29 | + { | ||
30 | + rb2d.velocity = Vector2.zero; | ||
31 | + } | ||
32 | + else | ||
33 | + { | ||
34 | + rb2d.velocity = new Vector2 (GameControl.instance.scrollSpeed, 0); | ||
35 | + } | ||
36 | + } | ||
37 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
Assets/Scripts/ScrollingObject.cs.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: 7b1a752e74fb5054ca7c529e71e13e25 | ||
3 | +timeCreated: 1515674399 | ||
4 | +licenseType: Free | ||
5 | +MonoImporter: | ||
6 | + externalObjects: {} | ||
7 | + serializedVersion: 2 | ||
8 | + defaultReferences: [] | ||
9 | + executionOrder: 0 | ||
10 | + icon: {instanceID: 0} | ||
11 | + userData: | ||
12 | + assetBundleName: | ||
13 | + assetBundleVariant: |
Assets/Sprites.meta
0 → 100644
Assets/Sprites/BirdHero.png
0 → 100644

39.6 KB
Assets/Sprites/BirdHero.png.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: 8d941401e08ea064ab302bb0b1ae8cc4 | ||
3 | +timeCreated: 1515667708 | ||
4 | +licenseType: Free | ||
5 | +TextureImporter: | ||
6 | + fileIDToRecycleName: | ||
7 | + 21300000: BirdHero_0 | ||
8 | + 21300002: BirdHero_1 | ||
9 | + 21300004: BirdHero_2 | ||
10 | + externalObjects: {} | ||
11 | + serializedVersion: 4 | ||
12 | + mipmaps: | ||
13 | + mipMapMode: 0 | ||
14 | + enableMipMap: 0 | ||
15 | + sRGBTexture: 1 | ||
16 | + linearTexture: 0 | ||
17 | + fadeOut: 0 | ||
18 | + borderMipMap: 0 | ||
19 | + mipMapsPreserveCoverage: 0 | ||
20 | + alphaTestReferenceValue: 0.5 | ||
21 | + mipMapFadeDistanceStart: 1 | ||
22 | + mipMapFadeDistanceEnd: 3 | ||
23 | + bumpmap: | ||
24 | + convertToNormalMap: 0 | ||
25 | + externalNormalMap: 0 | ||
26 | + heightScale: 0.25 | ||
27 | + normalMapFilter: 0 | ||
28 | + isReadable: 0 | ||
29 | + grayScaleToAlpha: 0 | ||
30 | + generateCubemap: 6 | ||
31 | + cubemapConvolution: 0 | ||
32 | + seamlessCubemap: 0 | ||
33 | + textureFormat: 1 | ||
34 | + maxTextureSize: 2048 | ||
35 | + textureSettings: | ||
36 | + serializedVersion: 2 | ||
37 | + filterMode: -1 | ||
38 | + aniso: -1 | ||
39 | + mipBias: -1 | ||
40 | + wrapU: 1 | ||
41 | + wrapV: 1 | ||
42 | + wrapW: 1 | ||
43 | + nPOTScale: 0 | ||
44 | + lightmap: 0 | ||
45 | + compressionQuality: 50 | ||
46 | + spriteMode: 2 | ||
47 | + spriteExtrude: 1 | ||
48 | + spriteMeshType: 1 | ||
49 | + alignment: 0 | ||
50 | + spritePivot: {x: 0.5, y: 0.5} | ||
51 | + spriteBorder: {x: 0, y: 0, z: 0, w: 0} | ||
52 | + spritePixelsToUnits: 100 | ||
53 | + alphaUsage: 1 | ||
54 | + alphaIsTransparency: 1 | ||
55 | + spriteTessellationDetail: -1 | ||
56 | + textureType: 8 | ||
57 | + textureShape: 1 | ||
58 | + maxTextureSizeSet: 0 | ||
59 | + compressionQualitySet: 0 | ||
60 | + textureFormatSet: 0 | ||
61 | + platformSettings: | ||
62 | + - buildTarget: DefaultTexturePlatform | ||
63 | + maxTextureSize: 2048 | ||
64 | + resizeAlgorithm: 0 | ||
65 | + textureFormat: -1 | ||
66 | + textureCompression: 1 | ||
67 | + compressionQuality: 50 | ||
68 | + crunchedCompression: 0 | ||
69 | + allowsAlphaSplitting: 0 | ||
70 | + overridden: 0 | ||
71 | + - buildTarget: Standalone | ||
72 | + maxTextureSize: 2048 | ||
73 | + resizeAlgorithm: 0 | ||
74 | + textureFormat: -1 | ||
75 | + textureCompression: 1 | ||
76 | + compressionQuality: 50 | ||
77 | + crunchedCompression: 0 | ||
78 | + allowsAlphaSplitting: 0 | ||
79 | + overridden: 0 | ||
80 | + - buildTarget: iPhone | ||
81 | + maxTextureSize: 2048 | ||
82 | + resizeAlgorithm: 0 | ||
83 | + textureFormat: -1 | ||
84 | + textureCompression: 1 | ||
85 | + compressionQuality: 50 | ||
86 | + crunchedCompression: 0 | ||
87 | + allowsAlphaSplitting: 0 | ||
88 | + overridden: 0 | ||
89 | + - buildTarget: Android | ||
90 | + maxTextureSize: 2048 | ||
91 | + resizeAlgorithm: 0 | ||
92 | + textureFormat: -1 | ||
93 | + textureCompression: 1 | ||
94 | + compressionQuality: 50 | ||
95 | + crunchedCompression: 0 | ||
96 | + allowsAlphaSplitting: 0 | ||
97 | + overridden: 0 | ||
98 | + spriteSheet: | ||
99 | + serializedVersion: 2 | ||
100 | + sprites: | ||
101 | + - serializedVersion: 2 | ||
102 | + name: BirdHero_0 | ||
103 | + rect: | ||
104 | + serializedVersion: 2 | ||
105 | + x: 8 | ||
106 | + y: 30 | ||
107 | + width: 113 | ||
108 | + height: 67 | ||
109 | + alignment: 0 | ||
110 | + pivot: {x: 0, y: 0} | ||
111 | + border: {x: 0, y: 0, z: 0, w: 0} | ||
112 | + outline: [] | ||
113 | + physicsShape: [] | ||
114 | + tessellationDetail: 0 | ||
115 | + - serializedVersion: 2 | ||
116 | + name: BirdHero_1 | ||
117 | + rect: | ||
118 | + serializedVersion: 2 | ||
119 | + x: 131 | ||
120 | + y: 30 | ||
121 | + width: 118 | ||
122 | + height: 67 | ||
123 | + alignment: 0 | ||
124 | + pivot: {x: 0, y: 0} | ||
125 | + border: {x: 0, y: 0, z: 0, w: 0} | ||
126 | + outline: [] | ||
127 | + physicsShape: [] | ||
128 | + tessellationDetail: 0 | ||
129 | + - serializedVersion: 2 | ||
130 | + name: BirdHero_2 | ||
131 | + rect: | ||
132 | + serializedVersion: 2 | ||
133 | + x: 264 | ||
134 | + y: 30 | ||
135 | + width: 113 | ||
136 | + height: 67 | ||
137 | + alignment: 0 | ||
138 | + pivot: {x: 0, y: 0} | ||
139 | + border: {x: 0, y: 0, z: 0, w: 0} | ||
140 | + outline: [] | ||
141 | + physicsShape: [] | ||
142 | + tessellationDetail: 0 | ||
143 | + outline: [] | ||
144 | + physicsShape: [] | ||
145 | + spritePackingTag: | ||
146 | + userData: | ||
147 | + assetBundleName: | ||
148 | + assetBundleVariant: |
Assets/Sprites/ColumnSprite.png
0 → 100644

44.3 KB
Assets/Sprites/ColumnSprite.png.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: 027275c8003550041bea4615a508eb2f | ||
3 | +timeCreated: 1515667280 | ||
4 | +licenseType: Free | ||
5 | +TextureImporter: | ||
6 | + fileIDToRecycleName: {} | ||
7 | + externalObjects: {} | ||
8 | + serializedVersion: 4 | ||
9 | + mipmaps: | ||
10 | + mipMapMode: 0 | ||
11 | + enableMipMap: 0 | ||
12 | + sRGBTexture: 1 | ||
13 | + linearTexture: 0 | ||
14 | + fadeOut: 0 | ||
15 | + borderMipMap: 0 | ||
16 | + mipMapsPreserveCoverage: 0 | ||
17 | + alphaTestReferenceValue: 0.5 | ||
18 | + mipMapFadeDistanceStart: 1 | ||
19 | + mipMapFadeDistanceEnd: 3 | ||
20 | + bumpmap: | ||
21 | + convertToNormalMap: 0 | ||
22 | + externalNormalMap: 0 | ||
23 | + heightScale: 0.25 | ||
24 | + normalMapFilter: 0 | ||
25 | + isReadable: 0 | ||
26 | + grayScaleToAlpha: 0 | ||
27 | + generateCubemap: 6 | ||
28 | + cubemapConvolution: 0 | ||
29 | + seamlessCubemap: 0 | ||
30 | + textureFormat: 1 | ||
31 | + maxTextureSize: 2048 | ||
32 | + textureSettings: | ||
33 | + serializedVersion: 2 | ||
34 | + filterMode: -1 | ||
35 | + aniso: -1 | ||
36 | + mipBias: -1 | ||
37 | + wrapU: 1 | ||
38 | + wrapV: 1 | ||
39 | + wrapW: 1 | ||
40 | + nPOTScale: 0 | ||
41 | + lightmap: 0 | ||
42 | + compressionQuality: 50 | ||
43 | + spriteMode: 1 | ||
44 | + spriteExtrude: 1 | ||
45 | + spriteMeshType: 1 | ||
46 | + alignment: 0 | ||
47 | + spritePivot: {x: 0.5, y: 0.5} | ||
48 | + spriteBorder: {x: 0, y: 0, z: 0, w: 0} | ||
49 | + spritePixelsToUnits: 100 | ||
50 | + alphaUsage: 1 | ||
51 | + alphaIsTransparency: 1 | ||
52 | + spriteTessellationDetail: -1 | ||
53 | + textureType: 8 | ||
54 | + textureShape: 1 | ||
55 | + maxTextureSizeSet: 0 | ||
56 | + compressionQualitySet: 0 | ||
57 | + textureFormatSet: 0 | ||
58 | + platformSettings: | ||
59 | + - buildTarget: DefaultTexturePlatform | ||
60 | + maxTextureSize: 2048 | ||
61 | + resizeAlgorithm: 0 | ||
62 | + textureFormat: -1 | ||
63 | + textureCompression: 1 | ||
64 | + compressionQuality: 50 | ||
65 | + crunchedCompression: 0 | ||
66 | + allowsAlphaSplitting: 0 | ||
67 | + overridden: 0 | ||
68 | + spriteSheet: | ||
69 | + serializedVersion: 2 | ||
70 | + sprites: [] | ||
71 | + outline: [] | ||
72 | + physicsShape: [] | ||
73 | + spritePackingTag: | ||
74 | + userData: | ||
75 | + assetBundleName: | ||
76 | + assetBundleVariant: |
Assets/Sprites/GrassThinSprite.png
0 → 100644

4 MB
Assets/Sprites/GrassThinSprite.png.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: 646ba64a995b11045865c637d69ba84e | ||
3 | +timeCreated: 1515667280 | ||
4 | +licenseType: Free | ||
5 | +TextureImporter: | ||
6 | + fileIDToRecycleName: {} | ||
7 | + externalObjects: {} | ||
8 | + serializedVersion: 4 | ||
9 | + mipmaps: | ||
10 | + mipMapMode: 0 | ||
11 | + enableMipMap: 0 | ||
12 | + sRGBTexture: 1 | ||
13 | + linearTexture: 0 | ||
14 | + fadeOut: 0 | ||
15 | + borderMipMap: 0 | ||
16 | + mipMapsPreserveCoverage: 0 | ||
17 | + alphaTestReferenceValue: 0.5 | ||
18 | + mipMapFadeDistanceStart: 1 | ||
19 | + mipMapFadeDistanceEnd: 3 | ||
20 | + bumpmap: | ||
21 | + convertToNormalMap: 0 | ||
22 | + externalNormalMap: 0 | ||
23 | + heightScale: 0.25 | ||
24 | + normalMapFilter: 0 | ||
25 | + isReadable: 0 | ||
26 | + grayScaleToAlpha: 0 | ||
27 | + generateCubemap: 6 | ||
28 | + cubemapConvolution: 0 | ||
29 | + seamlessCubemap: 0 | ||
30 | + textureFormat: 1 | ||
31 | + maxTextureSize: 2048 | ||
32 | + textureSettings: | ||
33 | + serializedVersion: 2 | ||
34 | + filterMode: -1 | ||
35 | + aniso: -1 | ||
36 | + mipBias: -1 | ||
37 | + wrapU: 1 | ||
38 | + wrapV: 1 | ||
39 | + wrapW: 1 | ||
40 | + nPOTScale: 0 | ||
41 | + lightmap: 0 | ||
42 | + compressionQuality: 50 | ||
43 | + spriteMode: 1 | ||
44 | + spriteExtrude: 1 | ||
45 | + spriteMeshType: 1 | ||
46 | + alignment: 0 | ||
47 | + spritePivot: {x: 0.5, y: 0.5} | ||
48 | + spriteBorder: {x: 0, y: 0, z: 0, w: 0} | ||
49 | + spritePixelsToUnits: 100 | ||
50 | + alphaUsage: 1 | ||
51 | + alphaIsTransparency: 1 | ||
52 | + spriteTessellationDetail: -1 | ||
53 | + textureType: 8 | ||
54 | + textureShape: 1 | ||
55 | + maxTextureSizeSet: 0 | ||
56 | + compressionQualitySet: 0 | ||
57 | + textureFormatSet: 0 | ||
58 | + platformSettings: | ||
59 | + - buildTarget: DefaultTexturePlatform | ||
60 | + maxTextureSize: 2048 | ||
61 | + resizeAlgorithm: 0 | ||
62 | + textureFormat: -1 | ||
63 | + textureCompression: 1 | ||
64 | + compressionQuality: 50 | ||
65 | + crunchedCompression: 0 | ||
66 | + allowsAlphaSplitting: 0 | ||
67 | + overridden: 0 | ||
68 | + spriteSheet: | ||
69 | + serializedVersion: 2 | ||
70 | + sprites: [] | ||
71 | + outline: [] | ||
72 | + physicsShape: [] | ||
73 | + spritePackingTag: | ||
74 | + userData: | ||
75 | + assetBundleName: | ||
76 | + assetBundleVariant: |
Assets/Sprites/SkyTileSprite.png
0 → 100644

158 KB
Assets/Sprites/SkyTileSprite.png.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: 1543d7b8032198341b61c3c08aa7502e | ||
3 | +timeCreated: 1515667280 | ||
4 | +licenseType: Free | ||
5 | +TextureImporter: | ||
6 | + fileIDToRecycleName: {} | ||
7 | + externalObjects: {} | ||
8 | + serializedVersion: 4 | ||
9 | + mipmaps: | ||
10 | + mipMapMode: 0 | ||
11 | + enableMipMap: 0 | ||
12 | + sRGBTexture: 1 | ||
13 | + linearTexture: 0 | ||
14 | + fadeOut: 0 | ||
15 | + borderMipMap: 0 | ||
16 | + mipMapsPreserveCoverage: 0 | ||
17 | + alphaTestReferenceValue: 0.5 | ||
18 | + mipMapFadeDistanceStart: 1 | ||
19 | + mipMapFadeDistanceEnd: 3 | ||
20 | + bumpmap: | ||
21 | + convertToNormalMap: 0 | ||
22 | + externalNormalMap: 0 | ||
23 | + heightScale: 0.25 | ||
24 | + normalMapFilter: 0 | ||
25 | + isReadable: 0 | ||
26 | + grayScaleToAlpha: 0 | ||
27 | + generateCubemap: 6 | ||
28 | + cubemapConvolution: 0 | ||
29 | + seamlessCubemap: 0 | ||
30 | + textureFormat: 1 | ||
31 | + maxTextureSize: 2048 | ||
32 | + textureSettings: | ||
33 | + serializedVersion: 2 | ||
34 | + filterMode: -1 | ||
35 | + aniso: -1 | ||
36 | + mipBias: -1 | ||
37 | + wrapU: 1 | ||
38 | + wrapV: 1 | ||
39 | + wrapW: 1 | ||
40 | + nPOTScale: 0 | ||
41 | + lightmap: 0 | ||
42 | + compressionQuality: 50 | ||
43 | + spriteMode: 1 | ||
44 | + spriteExtrude: 1 | ||
45 | + spriteMeshType: 1 | ||
46 | + alignment: 0 | ||
47 | + spritePivot: {x: 0.5, y: 0.5} | ||
48 | + spriteBorder: {x: 0, y: 0, z: 0, w: 0} | ||
49 | + spritePixelsToUnits: 100 | ||
50 | + alphaUsage: 1 | ||
51 | + alphaIsTransparency: 1 | ||
52 | + spriteTessellationDetail: -1 | ||
53 | + textureType: 8 | ||
54 | + textureShape: 1 | ||
55 | + maxTextureSizeSet: 0 | ||
56 | + compressionQualitySet: 0 | ||
57 | + textureFormatSet: 0 | ||
58 | + platformSettings: | ||
59 | + - buildTarget: DefaultTexturePlatform | ||
60 | + maxTextureSize: 2048 | ||
61 | + resizeAlgorithm: 0 | ||
62 | + textureFormat: -1 | ||
63 | + textureCompression: 1 | ||
64 | + compressionQuality: 50 | ||
65 | + crunchedCompression: 0 | ||
66 | + allowsAlphaSplitting: 0 | ||
67 | + overridden: 0 | ||
68 | + spriteSheet: | ||
69 | + serializedVersion: 2 | ||
70 | + sprites: [] | ||
71 | + outline: [] | ||
72 | + physicsShape: [] | ||
73 | + spritePackingTag: | ||
74 | + userData: | ||
75 | + assetBundleName: | ||
76 | + assetBundleVariant: |
Assets/Test Scripts.meta
0 → 100644
Assets/Test Scripts/BirdTest.cs
0 → 100644
1 | +using System.Collections; | ||
2 | +using System.Collections.Generic; | ||
3 | +using System.Collections.Specialized; | ||
4 | +using UnityEngine; | ||
5 | +using NUnit.Framework; | ||
6 | +using UnityEngine.SocialPlatforms.Impl; | ||
7 | +using UnityEngine.TestTools; | ||
8 | +using NSubstitute; | ||
9 | +using UnityEditor.Animations; | ||
10 | +using UnityEngine.UI; | ||
11 | + | ||
12 | + | ||
13 | +namespace FlappyBird.PlayModeTest | ||
14 | +{ | ||
15 | + public class BirdTest | ||
16 | + { | ||
17 | + private Bird bird; | ||
18 | + | ||
19 | + | ||
20 | + [SetUp] | ||
21 | + public void BeforeEveryTest() | ||
22 | + { | ||
23 | + var instance = new GameObject("Bird"); | ||
24 | + | ||
25 | + instance.AddComponent<Rigidbody2D>(); | ||
26 | + instance.AddComponent<Animator>(); | ||
27 | + | ||
28 | + | ||
29 | + bird = instance.AddComponent<Bird>(); | ||
30 | + | ||
31 | + bird.upForce = 500f; | ||
32 | + } | ||
33 | + | ||
34 | + [UnityTest] | ||
35 | + public IEnumerator _Bird_Jump_to_Play_Flap_Animation() | ||
36 | + { | ||
37 | + var animatorController = Resources.Load<AnimatorController>("Bird"); | ||
38 | + var animator = bird.GetComponent<Animator>(); | ||
39 | + animator.runtimeAnimatorController = animatorController; | ||
40 | + | ||
41 | + bird.Jump(); | ||
42 | + | ||
43 | + yield return null; | ||
44 | + | ||
45 | + | ||
46 | + Assert.IsTrue(animator.GetCurrentAnimatorStateInfo(0).IsName("Idle")); | ||
47 | + } | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + [Test] | ||
52 | + public void _Bird_Collide_to_Bird_Died() | ||
53 | + { | ||
54 | + | ||
55 | + bird.SendMessage("OnCollisionEnter2D", new Collision2D()); | ||
56 | + | ||
57 | + Assert.AreEqual(true, bird.IsDead); | ||
58 | + | ||
59 | + } | ||
60 | + | ||
61 | + [UnityTest] | ||
62 | + public IEnumerator _Down_Fire1_Button_to_Bird_Jump_Up() | ||
63 | + { | ||
64 | + float posY = bird.transform.position.y; | ||
65 | + | ||
66 | + var unityInput = Substitute.For<IUnityInputService>(); | ||
67 | + unityInput.GetButtonDown("Fire1").Returns(true); | ||
68 | + | ||
69 | + bird.UnityInput = unityInput; | ||
70 | + | ||
71 | + yield return null; | ||
72 | + | ||
73 | + yield return new WaitForFixedUpdate(); | ||
74 | + | ||
75 | + Assert.Greater(bird.transform.position.y,posY); | ||
76 | + } | ||
77 | + | ||
78 | + | ||
79 | + [UnityTest] | ||
80 | + public IEnumerator _Down_Fire1_Button_to_Bird_Speed_Not_Negative() | ||
81 | + { | ||
82 | + var unityInput = Substitute.For<IUnityInputService>(); | ||
83 | + unityInput.GetButtonDown("Fire1").Returns(true); | ||
84 | + | ||
85 | + bird.UnityInput = unityInput; | ||
86 | + | ||
87 | + yield return null; | ||
88 | + | ||
89 | + yield return new WaitForFixedUpdate(); | ||
90 | + | ||
91 | + Assert.GreaterOrEqual(bird.GetComponent<Rigidbody2D>().velocity.y,0); | ||
92 | + } | ||
93 | + | ||
94 | + | ||
95 | + [UnityTest] | ||
96 | + public IEnumerator _Down_Fire1_After_2sec_to_Bird_Y_Speed_Not_Negative() | ||
97 | + { | ||
98 | + | ||
99 | + | ||
100 | + yield return new WaitForSeconds(2.0f); | ||
101 | + var unityInput = Substitute.For<IUnityInputService>(); | ||
102 | + unityInput.GetButtonDown("Fire1").Returns(true); | ||
103 | + bird.UnityInput = unityInput; | ||
104 | + | ||
105 | + yield return null; | ||
106 | + | ||
107 | + yield return new WaitForFixedUpdate(); | ||
108 | + | ||
109 | + | ||
110 | + Assert.GreaterOrEqual(bird.GetComponent<Rigidbody2D>().velocity.y,0); | ||
111 | + } | ||
112 | + | ||
113 | + [UnityTest] | ||
114 | + public IEnumerator _Bird_Trigger_Collide_With_Column_Tag_to_Add_Score() | ||
115 | + { | ||
116 | + var gameContorl = new GameObject().AddComponent<GameControl>(); | ||
117 | + | ||
118 | + yield return null; | ||
119 | + | ||
120 | + var score = gameContorl.score; | ||
121 | + | ||
122 | + var collider = new GameObject().AddComponent<BoxCollider2D>(); | ||
123 | + collider.tag = "Column"; | ||
124 | + | ||
125 | + bird.SendMessage("OnTriggerEnter2D",collider); | ||
126 | + | ||
127 | + yield return null; | ||
128 | + | ||
129 | + Assert.Greater(gameContorl.score,score); | ||
130 | + } | ||
131 | + | ||
132 | + [UnityTest] | ||
133 | + public IEnumerator _Bird_Trigger_Collide_With_Not_Column_Tag_to_Not_Change_Score() | ||
134 | + { | ||
135 | + var gameContorl = new GameObject().AddComponent<GameControl>(); | ||
136 | + | ||
137 | + yield return null; | ||
138 | + | ||
139 | + var score = gameContorl.score; | ||
140 | + | ||
141 | + bird.SendMessage("OnTriggerEnter2D",new Collider2D()); | ||
142 | + | ||
143 | + yield return null; | ||
144 | + | ||
145 | + Assert.AreEqual(gameContorl.score,score); | ||
146 | + } | ||
147 | + | ||
148 | + } | ||
149 | + | ||
150 | + public class GameControlTest | ||
151 | + { | ||
152 | + private GameControl gameControl; | ||
153 | + | ||
154 | + [SetUp] | ||
155 | + public void BeforeEveryTest() | ||
156 | + { | ||
157 | + if (GameControl.instance != null) | ||
158 | + { | ||
159 | + GameObject.Destroy(GameControl.instance.gameObject); | ||
160 | + } | ||
161 | + | ||
162 | + gameControl = new GameObject("GameControl").AddComponent<GameControl>(); | ||
163 | + | ||
164 | + gameControl.scoreText = new GameObject().AddComponent<Text>(); | ||
165 | + gameControl.gameOvertext = new GameObject(); | ||
166 | + | ||
167 | + } | ||
168 | + | ||
169 | + [Test] | ||
170 | + public void _Bird_Scored_then_Displayd_Text_Contain_Updated_Score() | ||
171 | + { | ||
172 | + gameControl.BirdScored(); | ||
173 | + | ||
174 | + Assert.IsTrue(gameControl.scoreText.text.Contains(gameControl.score.ToString())); | ||
175 | + } | ||
176 | + | ||
177 | + [UnityTest] | ||
178 | + public IEnumerator _Set_Control_ScroollSpeed_0_then_Scrolling_Object_Move_0_Horizontal_Distance() | ||
179 | + { | ||
180 | + var scrollingObject = new GameObject().AddComponent<ScrollingObject>(); | ||
181 | + | ||
182 | + gameControl.scrollSpeed = 0f; | ||
183 | + | ||
184 | + yield return null; | ||
185 | + yield return new WaitForFixedUpdate(); | ||
186 | + | ||
187 | + Assert.AreEqual(0f, scrollingObject.GetComponent<Rigidbody2D>().velocity.x); | ||
188 | + } | ||
189 | + | ||
190 | + [UnityTest] | ||
191 | + public IEnumerator _Set_GameOver_True_then_Scrolling_Object_Move_0_Distance() | ||
192 | + { | ||
193 | + var scrollingObject = new GameObject().AddComponent<ScrollingObject>(); | ||
194 | + | ||
195 | + gameControl.gameOver = true; | ||
196 | + | ||
197 | + yield return null; | ||
198 | + yield return new WaitForFixedUpdate(); | ||
199 | + | ||
200 | + Assert.AreEqual(Vector2.zero, scrollingObject.GetComponent<Rigidbody2D>().velocity); | ||
201 | + } | ||
202 | + | ||
203 | + | ||
204 | + } | ||
205 | + | ||
206 | + | ||
207 | +} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
Assets/Test Scripts/BirdTest.cs.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: 462380d4f236541ca9b877a394a0a9b0 | ||
3 | +timeCreated: 1519397400 | ||
4 | +licenseType: Pro | ||
5 | +MonoImporter: | ||
6 | + externalObjects: {} | ||
7 | + serializedVersion: 2 | ||
8 | + defaultReferences: [] | ||
9 | + executionOrder: 0 | ||
10 | + icon: {instanceID: 0} | ||
11 | + userData: | ||
12 | + assetBundleName: | ||
13 | + assetBundleVariant: |
Assets/Test Scripts/Editor.meta
0 → 100644
Assets/Test Scripts/NSubstitute.dll
0 → 100644
No preview for this file type
Assets/Test Scripts/NSubstitute.dll.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: 0bee60ff5968a489fb3c190e46432538 | ||
3 | +timeCreated: 1519402225 | ||
4 | +licenseType: Pro | ||
5 | +PluginImporter: | ||
6 | + externalObjects: {} | ||
7 | + serializedVersion: 2 | ||
8 | + iconMap: {} | ||
9 | + executionOrder: {} | ||
10 | + isPreloaded: 0 | ||
11 | + isOverridable: 0 | ||
12 | + platformData: | ||
13 | + - first: | ||
14 | + Any: | ||
15 | + second: | ||
16 | + enabled: 1 | ||
17 | + settings: {} | ||
18 | + - first: | ||
19 | + Editor: Editor | ||
20 | + second: | ||
21 | + enabled: 0 | ||
22 | + settings: | ||
23 | + DefaultValueInitialized: true | ||
24 | + - first: | ||
25 | + Windows Store Apps: WindowsStoreApps | ||
26 | + second: | ||
27 | + enabled: 0 | ||
28 | + settings: | ||
29 | + CPU: AnyCPU | ||
30 | + userData: | ||
31 | + assetBundleName: | ||
32 | + assetBundleVariant: |
ProjectSettings/AudioManager.asset
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!11 &1 | ||
4 | +AudioManager: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + m_Volume: 1 | ||
7 | + Rolloff Scale: 1 | ||
8 | + Doppler Factor: 1 | ||
9 | + Default Speaker Mode: 2 | ||
10 | + m_SampleRate: 0 | ||
11 | + m_DSPBufferSize: 0 | ||
12 | + m_VirtualVoiceCount: 512 | ||
13 | + m_RealVoiceCount: 32 | ||
14 | + m_SpatializerPlugin: | ||
15 | + m_AmbisonicDecoderPlugin: | ||
16 | + m_DisableAudio: 0 | ||
17 | + m_VirtualizeEffects: 1 |
ProjectSettings/ClusterInputManager.asset
0 → 100644
ProjectSettings/DynamicsManager.asset
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!55 &1 | ||
4 | +PhysicsManager: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + serializedVersion: 3 | ||
7 | + m_Gravity: {x: 0, y: -9.81, z: 0} | ||
8 | + m_DefaultMaterial: {fileID: 0} | ||
9 | + m_BounceThreshold: 2 | ||
10 | + m_SleepThreshold: 0.005 | ||
11 | + m_DefaultContactOffset: 0.01 | ||
12 | + m_DefaultSolverIterations: 6 | ||
13 | + m_DefaultSolverVelocityIterations: 1 | ||
14 | + m_QueriesHitBackfaces: 0 | ||
15 | + m_QueriesHitTriggers: 1 | ||
16 | + m_EnableAdaptiveForce: 0 | ||
17 | + m_EnablePCM: 1 | ||
18 | + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | ||
19 | + m_AutoSimulation: 1 | ||
20 | + m_AutoSyncTransforms: 1 |
ProjectSettings/EditorBuildSettings.asset
0 → 100644
ProjectSettings/EditorSettings.asset
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!159 &1 | ||
4 | +EditorSettings: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + serializedVersion: 5 | ||
7 | + m_ExternalVersionControlSupport: Hidden Meta Files | ||
8 | + m_SerializationMode: 2 | ||
9 | + m_DefaultBehaviorMode: 1 | ||
10 | + m_SpritePackerMode: 4 | ||
11 | + m_SpritePackerPaddingPower: 1 | ||
12 | + m_EtcTextureCompressorBehavior: 1 | ||
13 | + m_EtcTextureFastCompressor: 1 | ||
14 | + m_EtcTextureNormalCompressor: 2 | ||
15 | + m_EtcTextureBestCompressor: 4 | ||
16 | + m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd | ||
17 | + m_ProjectGenerationRootNamespace: | ||
18 | + m_UserGeneratedProjectSuffix: | ||
19 | + m_CollabEditorSettings: | ||
20 | + inProgressEnabled: 1 |
ProjectSettings/GraphicsSettings.asset
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!30 &1 | ||
4 | +GraphicsSettings: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + serializedVersion: 12 | ||
7 | + m_Deferred: | ||
8 | + m_Mode: 1 | ||
9 | + m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} | ||
10 | + m_DeferredReflections: | ||
11 | + m_Mode: 1 | ||
12 | + m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} | ||
13 | + m_ScreenSpaceShadows: | ||
14 | + m_Mode: 1 | ||
15 | + m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} | ||
16 | + m_LegacyDeferred: | ||
17 | + m_Mode: 1 | ||
18 | + m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} | ||
19 | + m_DepthNormals: | ||
20 | + m_Mode: 1 | ||
21 | + m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} | ||
22 | + m_MotionVectors: | ||
23 | + m_Mode: 1 | ||
24 | + m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} | ||
25 | + m_LightHalo: | ||
26 | + m_Mode: 1 | ||
27 | + m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} | ||
28 | + m_LensFlare: | ||
29 | + m_Mode: 1 | ||
30 | + m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} | ||
31 | + m_AlwaysIncludedShaders: | ||
32 | + - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} | ||
33 | + - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} | ||
34 | + - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} | ||
35 | + - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} | ||
36 | + - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} | ||
37 | + - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} | ||
38 | + - {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0} | ||
39 | + m_PreloadedShaders: [] | ||
40 | + m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, | ||
41 | + type: 0} | ||
42 | + m_CustomRenderPipeline: {fileID: 0} | ||
43 | + m_TransparencySortMode: 0 | ||
44 | + m_TransparencySortAxis: {x: 0, y: 0, z: 1} | ||
45 | + m_DefaultRenderingPath: 1 | ||
46 | + m_DefaultMobileRenderingPath: 1 | ||
47 | + m_TierSettings: [] | ||
48 | + m_LightmapStripping: 0 | ||
49 | + m_FogStripping: 0 | ||
50 | + m_InstancingStripping: 0 | ||
51 | + m_LightmapKeepPlain: 1 | ||
52 | + m_LightmapKeepDirCombined: 1 | ||
53 | + m_LightmapKeepDynamicPlain: 1 | ||
54 | + m_LightmapKeepDynamicDirCombined: 1 | ||
55 | + m_LightmapKeepShadowMask: 1 | ||
56 | + m_LightmapKeepSubtractive: 1 | ||
57 | + m_FogKeepLinear: 1 | ||
58 | + m_FogKeepExp: 1 | ||
59 | + m_FogKeepExp2: 1 | ||
60 | + m_AlbedoSwatchInfos: [] | ||
61 | + m_LightsUseLinearIntensity: 0 | ||
62 | + m_LightsUseColorTemperature: 0 |
ProjectSettings/InputManager.asset
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!13 &1 | ||
4 | +InputManager: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + serializedVersion: 2 | ||
7 | + m_Axes: | ||
8 | + - serializedVersion: 3 | ||
9 | + m_Name: Horizontal | ||
10 | + descriptiveName: | ||
11 | + descriptiveNegativeName: | ||
12 | + negativeButton: left | ||
13 | + positiveButton: right | ||
14 | + altNegativeButton: a | ||
15 | + altPositiveButton: d | ||
16 | + gravity: 3 | ||
17 | + dead: 0.001 | ||
18 | + sensitivity: 3 | ||
19 | + snap: 1 | ||
20 | + invert: 0 | ||
21 | + type: 0 | ||
22 | + axis: 0 | ||
23 | + joyNum: 0 | ||
24 | + - serializedVersion: 3 | ||
25 | + m_Name: Vertical | ||
26 | + descriptiveName: | ||
27 | + descriptiveNegativeName: | ||
28 | + negativeButton: down | ||
29 | + positiveButton: up | ||
30 | + altNegativeButton: s | ||
31 | + altPositiveButton: w | ||
32 | + gravity: 3 | ||
33 | + dead: 0.001 | ||
34 | + sensitivity: 3 | ||
35 | + snap: 1 | ||
36 | + invert: 0 | ||
37 | + type: 0 | ||
38 | + axis: 0 | ||
39 | + joyNum: 0 | ||
40 | + - serializedVersion: 3 | ||
41 | + m_Name: Fire1 | ||
42 | + descriptiveName: | ||
43 | + descriptiveNegativeName: | ||
44 | + negativeButton: | ||
45 | + positiveButton: left ctrl | ||
46 | + altNegativeButton: | ||
47 | + altPositiveButton: mouse 0 | ||
48 | + gravity: 1000 | ||
49 | + dead: 0.001 | ||
50 | + sensitivity: 1000 | ||
51 | + snap: 0 | ||
52 | + invert: 0 | ||
53 | + type: 0 | ||
54 | + axis: 0 | ||
55 | + joyNum: 0 | ||
56 | + - serializedVersion: 3 | ||
57 | + m_Name: Fire2 | ||
58 | + descriptiveName: | ||
59 | + descriptiveNegativeName: | ||
60 | + negativeButton: | ||
61 | + positiveButton: left alt | ||
62 | + altNegativeButton: | ||
63 | + altPositiveButton: mouse 1 | ||
64 | + gravity: 1000 | ||
65 | + dead: 0.001 | ||
66 | + sensitivity: 1000 | ||
67 | + snap: 0 | ||
68 | + invert: 0 | ||
69 | + type: 0 | ||
70 | + axis: 0 | ||
71 | + joyNum: 0 | ||
72 | + - serializedVersion: 3 | ||
73 | + m_Name: Fire3 | ||
74 | + descriptiveName: | ||
75 | + descriptiveNegativeName: | ||
76 | + negativeButton: | ||
77 | + positiveButton: left shift | ||
78 | + altNegativeButton: | ||
79 | + altPositiveButton: mouse 2 | ||
80 | + gravity: 1000 | ||
81 | + dead: 0.001 | ||
82 | + sensitivity: 1000 | ||
83 | + snap: 0 | ||
84 | + invert: 0 | ||
85 | + type: 0 | ||
86 | + axis: 0 | ||
87 | + joyNum: 0 | ||
88 | + - serializedVersion: 3 | ||
89 | + m_Name: Jump | ||
90 | + descriptiveName: | ||
91 | + descriptiveNegativeName: | ||
92 | + negativeButton: | ||
93 | + positiveButton: space | ||
94 | + altNegativeButton: | ||
95 | + altPositiveButton: | ||
96 | + gravity: 1000 | ||
97 | + dead: 0.001 | ||
98 | + sensitivity: 1000 | ||
99 | + snap: 0 | ||
100 | + invert: 0 | ||
101 | + type: 0 | ||
102 | + axis: 0 | ||
103 | + joyNum: 0 | ||
104 | + - serializedVersion: 3 | ||
105 | + m_Name: Mouse X | ||
106 | + descriptiveName: | ||
107 | + descriptiveNegativeName: | ||
108 | + negativeButton: | ||
109 | + positiveButton: | ||
110 | + altNegativeButton: | ||
111 | + altPositiveButton: | ||
112 | + gravity: 0 | ||
113 | + dead: 0 | ||
114 | + sensitivity: 0.1 | ||
115 | + snap: 0 | ||
116 | + invert: 0 | ||
117 | + type: 1 | ||
118 | + axis: 0 | ||
119 | + joyNum: 0 | ||
120 | + - serializedVersion: 3 | ||
121 | + m_Name: Mouse Y | ||
122 | + descriptiveName: | ||
123 | + descriptiveNegativeName: | ||
124 | + negativeButton: | ||
125 | + positiveButton: | ||
126 | + altNegativeButton: | ||
127 | + altPositiveButton: | ||
128 | + gravity: 0 | ||
129 | + dead: 0 | ||
130 | + sensitivity: 0.1 | ||
131 | + snap: 0 | ||
132 | + invert: 0 | ||
133 | + type: 1 | ||
134 | + axis: 1 | ||
135 | + joyNum: 0 | ||
136 | + - serializedVersion: 3 | ||
137 | + m_Name: Mouse ScrollWheel | ||
138 | + descriptiveName: | ||
139 | + descriptiveNegativeName: | ||
140 | + negativeButton: | ||
141 | + positiveButton: | ||
142 | + altNegativeButton: | ||
143 | + altPositiveButton: | ||
144 | + gravity: 0 | ||
145 | + dead: 0 | ||
146 | + sensitivity: 0.1 | ||
147 | + snap: 0 | ||
148 | + invert: 0 | ||
149 | + type: 1 | ||
150 | + axis: 2 | ||
151 | + joyNum: 0 | ||
152 | + - serializedVersion: 3 | ||
153 | + m_Name: Horizontal | ||
154 | + descriptiveName: | ||
155 | + descriptiveNegativeName: | ||
156 | + negativeButton: | ||
157 | + positiveButton: | ||
158 | + altNegativeButton: | ||
159 | + altPositiveButton: | ||
160 | + gravity: 0 | ||
161 | + dead: 0.19 | ||
162 | + sensitivity: 1 | ||
163 | + snap: 0 | ||
164 | + invert: 0 | ||
165 | + type: 2 | ||
166 | + axis: 0 | ||
167 | + joyNum: 0 | ||
168 | + - serializedVersion: 3 | ||
169 | + m_Name: Vertical | ||
170 | + descriptiveName: | ||
171 | + descriptiveNegativeName: | ||
172 | + negativeButton: | ||
173 | + positiveButton: | ||
174 | + altNegativeButton: | ||
175 | + altPositiveButton: | ||
176 | + gravity: 0 | ||
177 | + dead: 0.19 | ||
178 | + sensitivity: 1 | ||
179 | + snap: 0 | ||
180 | + invert: 1 | ||
181 | + type: 2 | ||
182 | + axis: 1 | ||
183 | + joyNum: 0 | ||
184 | + - serializedVersion: 3 | ||
185 | + m_Name: Fire1 | ||
186 | + descriptiveName: | ||
187 | + descriptiveNegativeName: | ||
188 | + negativeButton: | ||
189 | + positiveButton: joystick button 0 | ||
190 | + altNegativeButton: | ||
191 | + altPositiveButton: | ||
192 | + gravity: 1000 | ||
193 | + dead: 0.001 | ||
194 | + sensitivity: 1000 | ||
195 | + snap: 0 | ||
196 | + invert: 0 | ||
197 | + type: 0 | ||
198 | + axis: 0 | ||
199 | + joyNum: 0 | ||
200 | + - serializedVersion: 3 | ||
201 | + m_Name: Fire2 | ||
202 | + descriptiveName: | ||
203 | + descriptiveNegativeName: | ||
204 | + negativeButton: | ||
205 | + positiveButton: joystick button 1 | ||
206 | + altNegativeButton: | ||
207 | + altPositiveButton: | ||
208 | + gravity: 1000 | ||
209 | + dead: 0.001 | ||
210 | + sensitivity: 1000 | ||
211 | + snap: 0 | ||
212 | + invert: 0 | ||
213 | + type: 0 | ||
214 | + axis: 0 | ||
215 | + joyNum: 0 | ||
216 | + - serializedVersion: 3 | ||
217 | + m_Name: Fire3 | ||
218 | + descriptiveName: | ||
219 | + descriptiveNegativeName: | ||
220 | + negativeButton: | ||
221 | + positiveButton: joystick button 2 | ||
222 | + altNegativeButton: | ||
223 | + altPositiveButton: | ||
224 | + gravity: 1000 | ||
225 | + dead: 0.001 | ||
226 | + sensitivity: 1000 | ||
227 | + snap: 0 | ||
228 | + invert: 0 | ||
229 | + type: 0 | ||
230 | + axis: 0 | ||
231 | + joyNum: 0 | ||
232 | + - serializedVersion: 3 | ||
233 | + m_Name: Jump | ||
234 | + descriptiveName: | ||
235 | + descriptiveNegativeName: | ||
236 | + negativeButton: | ||
237 | + positiveButton: joystick button 3 | ||
238 | + altNegativeButton: | ||
239 | + altPositiveButton: | ||
240 | + gravity: 1000 | ||
241 | + dead: 0.001 | ||
242 | + sensitivity: 1000 | ||
243 | + snap: 0 | ||
244 | + invert: 0 | ||
245 | + type: 0 | ||
246 | + axis: 0 | ||
247 | + joyNum: 0 | ||
248 | + - serializedVersion: 3 | ||
249 | + m_Name: Submit | ||
250 | + descriptiveName: | ||
251 | + descriptiveNegativeName: | ||
252 | + negativeButton: | ||
253 | + positiveButton: return | ||
254 | + altNegativeButton: | ||
255 | + altPositiveButton: joystick button 0 | ||
256 | + gravity: 1000 | ||
257 | + dead: 0.001 | ||
258 | + sensitivity: 1000 | ||
259 | + snap: 0 | ||
260 | + invert: 0 | ||
261 | + type: 0 | ||
262 | + axis: 0 | ||
263 | + joyNum: 0 | ||
264 | + - serializedVersion: 3 | ||
265 | + m_Name: Submit | ||
266 | + descriptiveName: | ||
267 | + descriptiveNegativeName: | ||
268 | + negativeButton: | ||
269 | + positiveButton: enter | ||
270 | + altNegativeButton: | ||
271 | + altPositiveButton: space | ||
272 | + gravity: 1000 | ||
273 | + dead: 0.001 | ||
274 | + sensitivity: 1000 | ||
275 | + snap: 0 | ||
276 | + invert: 0 | ||
277 | + type: 0 | ||
278 | + axis: 0 | ||
279 | + joyNum: 0 | ||
280 | + - serializedVersion: 3 | ||
281 | + m_Name: Cancel | ||
282 | + descriptiveName: | ||
283 | + descriptiveNegativeName: | ||
284 | + negativeButton: | ||
285 | + positiveButton: escape | ||
286 | + altNegativeButton: | ||
287 | + altPositiveButton: joystick button 1 | ||
288 | + gravity: 1000 | ||
289 | + dead: 0.001 | ||
290 | + sensitivity: 1000 | ||
291 | + snap: 0 | ||
292 | + invert: 0 | ||
293 | + type: 0 | ||
294 | + axis: 0 | ||
295 | + joyNum: 0 |
ProjectSettings/NavMeshAreas.asset
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!126 &1 | ||
4 | +NavMeshProjectSettings: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + serializedVersion: 2 | ||
7 | + areas: | ||
8 | + - name: Walkable | ||
9 | + cost: 1 | ||
10 | + - name: Not Walkable | ||
11 | + cost: 1 | ||
12 | + - name: Jump | ||
13 | + cost: 2 | ||
14 | + - name: | ||
15 | + cost: 1 | ||
16 | + - name: | ||
17 | + cost: 1 | ||
18 | + - name: | ||
19 | + cost: 1 | ||
20 | + - name: | ||
21 | + cost: 1 | ||
22 | + - name: | ||
23 | + cost: 1 | ||
24 | + - name: | ||
25 | + cost: 1 | ||
26 | + - name: | ||
27 | + cost: 1 | ||
28 | + - name: | ||
29 | + cost: 1 | ||
30 | + - name: | ||
31 | + cost: 1 | ||
32 | + - name: | ||
33 | + cost: 1 | ||
34 | + - name: | ||
35 | + cost: 1 | ||
36 | + - name: | ||
37 | + cost: 1 | ||
38 | + - name: | ||
39 | + cost: 1 | ||
40 | + - name: | ||
41 | + cost: 1 | ||
42 | + - name: | ||
43 | + cost: 1 | ||
44 | + - name: | ||
45 | + cost: 1 | ||
46 | + - name: | ||
47 | + cost: 1 | ||
48 | + - name: | ||
49 | + cost: 1 | ||
50 | + - name: | ||
51 | + cost: 1 | ||
52 | + - name: | ||
53 | + cost: 1 | ||
54 | + - name: | ||
55 | + cost: 1 | ||
56 | + - name: | ||
57 | + cost: 1 | ||
58 | + - name: | ||
59 | + cost: 1 | ||
60 | + - name: | ||
61 | + cost: 1 | ||
62 | + - name: | ||
63 | + cost: 1 | ||
64 | + - name: | ||
65 | + cost: 1 | ||
66 | + - name: | ||
67 | + cost: 1 | ||
68 | + - name: | ||
69 | + cost: 1 | ||
70 | + - name: | ||
71 | + cost: 1 | ||
72 | + m_LastAgentTypeID: -887442657 | ||
73 | + m_Settings: | ||
74 | + - serializedVersion: 2 | ||
75 | + agentTypeID: 0 | ||
76 | + agentRadius: 0.5 | ||
77 | + agentHeight: 2 | ||
78 | + agentSlope: 45 | ||
79 | + agentClimb: 0.75 | ||
80 | + ledgeDropHeight: 0 | ||
81 | + maxJumpAcrossDistance: 0 | ||
82 | + minRegionArea: 2 | ||
83 | + manualCellSize: 0 | ||
84 | + cellSize: 0.16666667 | ||
85 | + manualTileSize: 0 | ||
86 | + tileSize: 256 | ||
87 | + accuratePlacement: 0 | ||
88 | + debug: | ||
89 | + m_Flags: 0 | ||
90 | + m_SettingNames: | ||
91 | + - Humanoid |
ProjectSettings/NetworkManager.asset
0 → 100644
ProjectSettings/Physics2DSettings.asset
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!19 &1 | ||
4 | +Physics2DSettings: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + serializedVersion: 3 | ||
7 | + m_Gravity: {x: 0, y: -9.81} | ||
8 | + m_DefaultMaterial: {fileID: 0} | ||
9 | + m_VelocityIterations: 8 | ||
10 | + m_PositionIterations: 3 | ||
11 | + m_VelocityThreshold: 1 | ||
12 | + m_MaxLinearCorrection: 0.2 | ||
13 | + m_MaxAngularCorrection: 8 | ||
14 | + m_MaxTranslationSpeed: 100 | ||
15 | + m_MaxRotationSpeed: 360 | ||
16 | + m_BaumgarteScale: 0.2 | ||
17 | + m_BaumgarteTimeOfImpactScale: 0.75 | ||
18 | + m_TimeToSleep: 0.5 | ||
19 | + m_LinearSleepTolerance: 0.01 | ||
20 | + m_AngularSleepTolerance: 2 | ||
21 | + m_DefaultContactOffset: 0.01 | ||
22 | + m_AutoSimulation: 1 | ||
23 | + m_QueriesHitTriggers: 1 | ||
24 | + m_QueriesStartInColliders: 1 | ||
25 | + m_ChangeStopsCallbacks: 0 | ||
26 | + m_CallbacksOnDisable: 1 | ||
27 | + m_AutoSyncTransforms: 1 | ||
28 | + m_AlwaysShowColliders: 0 | ||
29 | + m_ShowColliderSleep: 1 | ||
30 | + m_ShowColliderContacts: 0 | ||
31 | + m_ShowColliderAABB: 0 | ||
32 | + m_ContactArrowScale: 0.2 | ||
33 | + m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} | ||
34 | + m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} | ||
35 | + m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} | ||
36 | + m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} | ||
37 | + m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff |
ProjectSettings/ProjectSettings.asset
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!129 &1 | ||
4 | +PlayerSettings: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + serializedVersion: 14 | ||
7 | + productGUID: 2af5c386acaf0c64d86bdf2c1bd34252 | ||
8 | + AndroidProfiler: 0 | ||
9 | + AndroidFilterTouchesWhenObscured: 0 | ||
10 | + defaultScreenOrientation: 4 | ||
11 | + targetDevice: 2 | ||
12 | + useOnDemandResources: 0 | ||
13 | + accelerometerFrequency: 60 | ||
14 | + companyName: DefaultCompany | ||
15 | + productName: Flappy Bird | ||
16 | + defaultCursor: {fileID: 0} | ||
17 | + cursorHotspot: {x: 0, y: 0} | ||
18 | + m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} | ||
19 | + m_ShowUnitySplashScreen: 1 | ||
20 | + m_ShowUnitySplashLogo: 1 | ||
21 | + m_SplashScreenOverlayOpacity: 1 | ||
22 | + m_SplashScreenAnimation: 1 | ||
23 | + m_SplashScreenLogoStyle: 1 | ||
24 | + m_SplashScreenDrawMode: 0 | ||
25 | + m_SplashScreenBackgroundAnimationZoom: 1 | ||
26 | + m_SplashScreenLogoAnimationZoom: 1 | ||
27 | + m_SplashScreenBackgroundLandscapeAspect: 1 | ||
28 | + m_SplashScreenBackgroundPortraitAspect: 1 | ||
29 | + m_SplashScreenBackgroundLandscapeUvs: | ||
30 | + serializedVersion: 2 | ||
31 | + x: 0 | ||
32 | + y: 0 | ||
33 | + width: 1 | ||
34 | + height: 1 | ||
35 | + m_SplashScreenBackgroundPortraitUvs: | ||
36 | + serializedVersion: 2 | ||
37 | + x: 0 | ||
38 | + y: 0 | ||
39 | + width: 1 | ||
40 | + height: 1 | ||
41 | + m_SplashScreenLogos: [] | ||
42 | + m_VirtualRealitySplashScreen: {fileID: 0} | ||
43 | + m_HolographicTrackingLossScreen: {fileID: 0} | ||
44 | + defaultScreenWidth: 1024 | ||
45 | + defaultScreenHeight: 768 | ||
46 | + defaultScreenWidthWeb: 960 | ||
47 | + defaultScreenHeightWeb: 600 | ||
48 | + m_StereoRenderingPath: 0 | ||
49 | + m_ActiveColorSpace: 0 | ||
50 | + m_MTRendering: 1 | ||
51 | + m_StackTraceTypes: 010000000100000001000000010000000100000001000000 | ||
52 | + iosShowActivityIndicatorOnLoading: -1 | ||
53 | + androidShowActivityIndicatorOnLoading: -1 | ||
54 | + tizenShowActivityIndicatorOnLoading: -1 | ||
55 | + iosAppInBackgroundBehavior: 0 | ||
56 | + displayResolutionDialog: 1 | ||
57 | + iosAllowHTTPDownload: 1 | ||
58 | + allowedAutorotateToPortrait: 1 | ||
59 | + allowedAutorotateToPortraitUpsideDown: 1 | ||
60 | + allowedAutorotateToLandscapeRight: 1 | ||
61 | + allowedAutorotateToLandscapeLeft: 1 | ||
62 | + useOSAutorotation: 1 | ||
63 | + use32BitDisplayBuffer: 1 | ||
64 | + preserveFramebufferAlpha: 0 | ||
65 | + disableDepthAndStencilBuffers: 0 | ||
66 | + androidBlitType: 0 | ||
67 | + defaultIsFullScreen: 1 | ||
68 | + defaultIsNativeResolution: 1 | ||
69 | + macRetinaSupport: 1 | ||
70 | + runInBackground: 1 | ||
71 | + captureSingleScreen: 0 | ||
72 | + muteOtherAudioSources: 0 | ||
73 | + Prepare IOS For Recording: 0 | ||
74 | + Force IOS Speakers When Recording: 0 | ||
75 | + deferSystemGesturesMode: 0 | ||
76 | + hideHomeButton: 0 | ||
77 | + submitAnalytics: 1 | ||
78 | + usePlayerLog: 1 | ||
79 | + bakeCollisionMeshes: 0 | ||
80 | + forceSingleInstance: 0 | ||
81 | + resizableWindow: 0 | ||
82 | + useMacAppStoreValidation: 0 | ||
83 | + macAppStoreCategory: public.app-category.games | ||
84 | + gpuSkinning: 0 | ||
85 | + graphicsJobs: 0 | ||
86 | + xboxPIXTextureCapture: 0 | ||
87 | + xboxEnableAvatar: 0 | ||
88 | + xboxEnableKinect: 0 | ||
89 | + xboxEnableKinectAutoTracking: 0 | ||
90 | + xboxEnableFitness: 0 | ||
91 | + visibleInBackground: 1 | ||
92 | + allowFullscreenSwitch: 1 | ||
93 | + graphicsJobMode: 0 | ||
94 | + macFullscreenMode: 2 | ||
95 | + d3d11FullscreenMode: 1 | ||
96 | + xboxSpeechDB: 0 | ||
97 | + xboxEnableHeadOrientation: 0 | ||
98 | + xboxEnableGuest: 0 | ||
99 | + xboxEnablePIXSampling: 0 | ||
100 | + metalFramebufferOnly: 0 | ||
101 | + n3dsDisableStereoscopicView: 0 | ||
102 | + n3dsEnableSharedListOpt: 1 | ||
103 | + n3dsEnableVSync: 0 | ||
104 | + xboxOneResolution: 0 | ||
105 | + xboxOneSResolution: 0 | ||
106 | + xboxOneXResolution: 3 | ||
107 | + xboxOneMonoLoggingLevel: 0 | ||
108 | + xboxOneLoggingLevel: 1 | ||
109 | + xboxOneDisableEsram: 0 | ||
110 | + xboxOnePresentImmediateThreshold: 0 | ||
111 | + videoMemoryForVertexBuffers: 0 | ||
112 | + psp2PowerMode: 0 | ||
113 | + psp2AcquireBGM: 1 | ||
114 | + wiiUTVResolution: 0 | ||
115 | + wiiUGamePadMSAA: 1 | ||
116 | + wiiUSupportsNunchuk: 0 | ||
117 | + wiiUSupportsClassicController: 0 | ||
118 | + wiiUSupportsBalanceBoard: 0 | ||
119 | + wiiUSupportsMotionPlus: 0 | ||
120 | + wiiUSupportsProController: 0 | ||
121 | + wiiUAllowScreenCapture: 1 | ||
122 | + wiiUControllerCount: 0 | ||
123 | + m_SupportedAspectRatios: | ||
124 | + 4:3: 1 | ||
125 | + 5:4: 1 | ||
126 | + 16:10: 1 | ||
127 | + 16:9: 1 | ||
128 | + Others: 1 | ||
129 | + bundleVersion: 1.0 | ||
130 | + preloadedAssets: [] | ||
131 | + metroInputSource: 0 | ||
132 | + wsaTransparentSwapchain: 0 | ||
133 | + m_HolographicPauseOnTrackingLoss: 1 | ||
134 | + xboxOneDisableKinectGpuReservation: 0 | ||
135 | + xboxOneEnable7thCore: 0 | ||
136 | + vrSettings: | ||
137 | + cardboard: | ||
138 | + depthFormat: 0 | ||
139 | + enableTransitionView: 0 | ||
140 | + daydream: | ||
141 | + depthFormat: 0 | ||
142 | + useSustainedPerformanceMode: 0 | ||
143 | + enableVideoLayer: 0 | ||
144 | + useProtectedVideoMemory: 0 | ||
145 | + minimumSupportedHeadTracking: 0 | ||
146 | + maximumSupportedHeadTracking: 1 | ||
147 | + hololens: | ||
148 | + depthFormat: 1 | ||
149 | + depthBufferSharingEnabled: 0 | ||
150 | + oculus: | ||
151 | + sharedDepthBuffer: 0 | ||
152 | + dashSupport: 0 | ||
153 | + protectGraphicsMemory: 0 | ||
154 | + useHDRDisplay: 0 | ||
155 | + m_ColorGamuts: 00000000 | ||
156 | + targetPixelDensity: 30 | ||
157 | + resolutionScalingMode: 0 | ||
158 | + androidSupportedAspectRatio: 1 | ||
159 | + androidMaxAspectRatio: 2.1 | ||
160 | + applicationIdentifier: {} | ||
161 | + buildNumber: {} | ||
162 | + AndroidBundleVersionCode: 1 | ||
163 | + AndroidMinSdkVersion: 16 | ||
164 | + AndroidTargetSdkVersion: 0 | ||
165 | + AndroidPreferredInstallLocation: 1 | ||
166 | + aotOptions: | ||
167 | + stripEngineCode: 1 | ||
168 | + iPhoneStrippingLevel: 0 | ||
169 | + iPhoneScriptCallOptimization: 0 | ||
170 | + ForceInternetPermission: 0 | ||
171 | + ForceSDCardPermission: 0 | ||
172 | + CreateWallpaper: 0 | ||
173 | + APKExpansionFiles: 0 | ||
174 | + keepLoadedShadersAlive: 0 | ||
175 | + StripUnusedMeshComponents: 0 | ||
176 | + VertexChannelCompressionMask: | ||
177 | + serializedVersion: 2 | ||
178 | + m_Bits: 238 | ||
179 | + iPhoneSdkVersion: 988 | ||
180 | + iOSTargetOSVersionString: 7.0 | ||
181 | + tvOSSdkVersion: 0 | ||
182 | + tvOSRequireExtendedGameController: 0 | ||
183 | + tvOSTargetOSVersionString: 9.0 | ||
184 | + uIPrerenderedIcon: 0 | ||
185 | + uIRequiresPersistentWiFi: 0 | ||
186 | + uIRequiresFullScreen: 1 | ||
187 | + uIStatusBarHidden: 1 | ||
188 | + uIExitOnSuspend: 0 | ||
189 | + uIStatusBarStyle: 0 | ||
190 | + iPhoneSplashScreen: {fileID: 0} | ||
191 | + iPhoneHighResSplashScreen: {fileID: 0} | ||
192 | + iPhoneTallHighResSplashScreen: {fileID: 0} | ||
193 | + iPhone47inSplashScreen: {fileID: 0} | ||
194 | + iPhone55inPortraitSplashScreen: {fileID: 0} | ||
195 | + iPhone55inLandscapeSplashScreen: {fileID: 0} | ||
196 | + iPhone58inPortraitSplashScreen: {fileID: 0} | ||
197 | + iPhone58inLandscapeSplashScreen: {fileID: 0} | ||
198 | + iPadPortraitSplashScreen: {fileID: 0} | ||
199 | + iPadHighResPortraitSplashScreen: {fileID: 0} | ||
200 | + iPadLandscapeSplashScreen: {fileID: 0} | ||
201 | + iPadHighResLandscapeSplashScreen: {fileID: 0} | ||
202 | + appleTVSplashScreen: {fileID: 0} | ||
203 | + appleTVSplashScreen2x: {fileID: 0} | ||
204 | + tvOSSmallIconLayers: [] | ||
205 | + tvOSSmallIconLayers2x: [] | ||
206 | + tvOSLargeIconLayers: [] | ||
207 | + tvOSTopShelfImageLayers: [] | ||
208 | + tvOSTopShelfImageLayers2x: [] | ||
209 | + tvOSTopShelfImageWideLayers: [] | ||
210 | + tvOSTopShelfImageWideLayers2x: [] | ||
211 | + iOSLaunchScreenType: 0 | ||
212 | + iOSLaunchScreenPortrait: {fileID: 0} | ||
213 | + iOSLaunchScreenLandscape: {fileID: 0} | ||
214 | + iOSLaunchScreenBackgroundColor: | ||
215 | + serializedVersion: 2 | ||
216 | + rgba: 0 | ||
217 | + iOSLaunchScreenFillPct: 100 | ||
218 | + iOSLaunchScreenSize: 100 | ||
219 | + iOSLaunchScreenCustomXibPath: | ||
220 | + iOSLaunchScreeniPadType: 0 | ||
221 | + iOSLaunchScreeniPadImage: {fileID: 0} | ||
222 | + iOSLaunchScreeniPadBackgroundColor: | ||
223 | + serializedVersion: 2 | ||
224 | + rgba: 0 | ||
225 | + iOSLaunchScreeniPadFillPct: 100 | ||
226 | + iOSLaunchScreeniPadSize: 100 | ||
227 | + iOSLaunchScreeniPadCustomXibPath: | ||
228 | + iOSUseLaunchScreenStoryboard: 0 | ||
229 | + iOSLaunchScreenCustomStoryboardPath: | ||
230 | + iOSDeviceRequirements: [] | ||
231 | + iOSURLSchemes: [] | ||
232 | + iOSBackgroundModes: 0 | ||
233 | + iOSMetalForceHardShadows: 0 | ||
234 | + metalEditorSupport: 1 | ||
235 | + metalAPIValidation: 1 | ||
236 | + iOSRenderExtraFrameOnPause: 0 | ||
237 | + appleDeveloperTeamID: | ||
238 | + iOSManualSigningProvisioningProfileID: | ||
239 | + tvOSManualSigningProvisioningProfileID: | ||
240 | + appleEnableAutomaticSigning: 0 | ||
241 | + clonedFromGUID: 00000000000000000000000000000000 | ||
242 | + AndroidTargetDevice: 0 | ||
243 | + AndroidSplashScreenScale: 0 | ||
244 | + androidSplashScreen: {fileID: 0} | ||
245 | + AndroidKeystoreName: | ||
246 | + AndroidKeyaliasName: | ||
247 | + AndroidTVCompatibility: 1 | ||
248 | + AndroidIsGame: 1 | ||
249 | + AndroidEnableTango: 0 | ||
250 | + androidEnableBanner: 1 | ||
251 | + androidUseLowAccuracyLocation: 0 | ||
252 | + m_AndroidBanners: | ||
253 | + - width: 320 | ||
254 | + height: 180 | ||
255 | + banner: {fileID: 0} | ||
256 | + androidGamepadSupportLevel: 0 | ||
257 | + resolutionDialogBanner: {fileID: 0} | ||
258 | + m_BuildTargetIcons: [] | ||
259 | + m_BuildTargetBatching: [] | ||
260 | + m_BuildTargetGraphicsAPIs: [] | ||
261 | + m_BuildTargetVRSettings: [] | ||
262 | + m_BuildTargetEnableVuforiaSettings: [] | ||
263 | + openGLRequireES31: 0 | ||
264 | + openGLRequireES31AEP: 0 | ||
265 | + m_TemplateCustomTags: {} | ||
266 | + mobileMTRendering: | ||
267 | + Android: 1 | ||
268 | + iPhone: 1 | ||
269 | + tvOS: 1 | ||
270 | + m_BuildTargetGroupLightmapEncodingQuality: | ||
271 | + - m_BuildTarget: Standalone | ||
272 | + m_EncodingQuality: 1 | ||
273 | + - m_BuildTarget: XboxOne | ||
274 | + m_EncodingQuality: 1 | ||
275 | + - m_BuildTarget: PS4 | ||
276 | + m_EncodingQuality: 1 | ||
277 | + wiiUTitleID: 0005000011000000 | ||
278 | + wiiUGroupID: 00010000 | ||
279 | + wiiUCommonSaveSize: 4096 | ||
280 | + wiiUAccountSaveSize: 2048 | ||
281 | + wiiUOlvAccessKey: 0 | ||
282 | + wiiUTinCode: 0 | ||
283 | + wiiUJoinGameId: 0 | ||
284 | + wiiUJoinGameModeMask: 0000000000000000 | ||
285 | + wiiUCommonBossSize: 0 | ||
286 | + wiiUAccountBossSize: 0 | ||
287 | + wiiUAddOnUniqueIDs: [] | ||
288 | + wiiUMainThreadStackSize: 3072 | ||
289 | + wiiULoaderThreadStackSize: 1024 | ||
290 | + wiiUSystemHeapSize: 128 | ||
291 | + wiiUTVStartupScreen: {fileID: 0} | ||
292 | + wiiUGamePadStartupScreen: {fileID: 0} | ||
293 | + wiiUDrcBufferDisabled: 0 | ||
294 | + wiiUProfilerLibPath: | ||
295 | + playModeTestRunnerEnabled: 1 | ||
296 | + actionOnDotNetUnhandledException: 1 | ||
297 | + enableInternalProfiler: 0 | ||
298 | + logObjCUncaughtExceptions: 1 | ||
299 | + enableCrashReportAPI: 0 | ||
300 | + cameraUsageDescription: | ||
301 | + locationUsageDescription: | ||
302 | + microphoneUsageDescription: | ||
303 | + switchNetLibKey: | ||
304 | + switchSocketMemoryPoolSize: 6144 | ||
305 | + switchSocketAllocatorPoolSize: 128 | ||
306 | + switchSocketConcurrencyLimit: 14 | ||
307 | + switchScreenResolutionBehavior: 2 | ||
308 | + switchUseCPUProfiler: 0 | ||
309 | + switchApplicationID: 0x01004b9000490000 | ||
310 | + switchNSODependencies: | ||
311 | + switchTitleNames_0: | ||
312 | + switchTitleNames_1: | ||
313 | + switchTitleNames_2: | ||
314 | + switchTitleNames_3: | ||
315 | + switchTitleNames_4: | ||
316 | + switchTitleNames_5: | ||
317 | + switchTitleNames_6: | ||
318 | + switchTitleNames_7: | ||
319 | + switchTitleNames_8: | ||
320 | + switchTitleNames_9: | ||
321 | + switchTitleNames_10: | ||
322 | + switchTitleNames_11: | ||
323 | + switchTitleNames_12: | ||
324 | + switchTitleNames_13: | ||
325 | + switchTitleNames_14: | ||
326 | + switchPublisherNames_0: | ||
327 | + switchPublisherNames_1: | ||
328 | + switchPublisherNames_2: | ||
329 | + switchPublisherNames_3: | ||
330 | + switchPublisherNames_4: | ||
331 | + switchPublisherNames_5: | ||
332 | + switchPublisherNames_6: | ||
333 | + switchPublisherNames_7: | ||
334 | + switchPublisherNames_8: | ||
335 | + switchPublisherNames_9: | ||
336 | + switchPublisherNames_10: | ||
337 | + switchPublisherNames_11: | ||
338 | + switchPublisherNames_12: | ||
339 | + switchPublisherNames_13: | ||
340 | + switchPublisherNames_14: | ||
341 | + switchIcons_0: {fileID: 0} | ||
342 | + switchIcons_1: {fileID: 0} | ||
343 | + switchIcons_2: {fileID: 0} | ||
344 | + switchIcons_3: {fileID: 0} | ||
345 | + switchIcons_4: {fileID: 0} | ||
346 | + switchIcons_5: {fileID: 0} | ||
347 | + switchIcons_6: {fileID: 0} | ||
348 | + switchIcons_7: {fileID: 0} | ||
349 | + switchIcons_8: {fileID: 0} | ||
350 | + switchIcons_9: {fileID: 0} | ||
351 | + switchIcons_10: {fileID: 0} | ||
352 | + switchIcons_11: {fileID: 0} | ||
353 | + switchIcons_12: {fileID: 0} | ||
354 | + switchIcons_13: {fileID: 0} | ||
355 | + switchIcons_14: {fileID: 0} | ||
356 | + switchSmallIcons_0: {fileID: 0} | ||
357 | + switchSmallIcons_1: {fileID: 0} | ||
358 | + switchSmallIcons_2: {fileID: 0} | ||
359 | + switchSmallIcons_3: {fileID: 0} | ||
360 | + switchSmallIcons_4: {fileID: 0} | ||
361 | + switchSmallIcons_5: {fileID: 0} | ||
362 | + switchSmallIcons_6: {fileID: 0} | ||
363 | + switchSmallIcons_7: {fileID: 0} | ||
364 | + switchSmallIcons_8: {fileID: 0} | ||
365 | + switchSmallIcons_9: {fileID: 0} | ||
366 | + switchSmallIcons_10: {fileID: 0} | ||
367 | + switchSmallIcons_11: {fileID: 0} | ||
368 | + switchSmallIcons_12: {fileID: 0} | ||
369 | + switchSmallIcons_13: {fileID: 0} | ||
370 | + switchSmallIcons_14: {fileID: 0} | ||
371 | + switchManualHTML: | ||
372 | + switchAccessibleURLs: | ||
373 | + switchLegalInformation: | ||
374 | + switchMainThreadStackSize: 1048576 | ||
375 | + switchPresenceGroupId: | ||
376 | + switchLogoHandling: 0 | ||
377 | + switchReleaseVersion: 0 | ||
378 | + switchDisplayVersion: 1.0.0 | ||
379 | + switchStartupUserAccount: 0 | ||
380 | + switchTouchScreenUsage: 0 | ||
381 | + switchSupportedLanguagesMask: 0 | ||
382 | + switchLogoType: 0 | ||
383 | + switchApplicationErrorCodeCategory: | ||
384 | + switchUserAccountSaveDataSize: 0 | ||
385 | + switchUserAccountSaveDataJournalSize: 0 | ||
386 | + switchApplicationAttribute: 0 | ||
387 | + switchCardSpecSize: -1 | ||
388 | + switchCardSpecClock: -1 | ||
389 | + switchRatingsMask: 0 | ||
390 | + switchRatingsInt_0: 0 | ||
391 | + switchRatingsInt_1: 0 | ||
392 | + switchRatingsInt_2: 0 | ||
393 | + switchRatingsInt_3: 0 | ||
394 | + switchRatingsInt_4: 0 | ||
395 | + switchRatingsInt_5: 0 | ||
396 | + switchRatingsInt_6: 0 | ||
397 | + switchRatingsInt_7: 0 | ||
398 | + switchRatingsInt_8: 0 | ||
399 | + switchRatingsInt_9: 0 | ||
400 | + switchRatingsInt_10: 0 | ||
401 | + switchRatingsInt_11: 0 | ||
402 | + switchLocalCommunicationIds_0: | ||
403 | + switchLocalCommunicationIds_1: | ||
404 | + switchLocalCommunicationIds_2: | ||
405 | + switchLocalCommunicationIds_3: | ||
406 | + switchLocalCommunicationIds_4: | ||
407 | + switchLocalCommunicationIds_5: | ||
408 | + switchLocalCommunicationIds_6: | ||
409 | + switchLocalCommunicationIds_7: | ||
410 | + switchParentalControl: 0 | ||
411 | + switchAllowsScreenshot: 1 | ||
412 | + switchAllowsVideoCapturing: 1 | ||
413 | + switchAllowsRuntimeAddOnContentInstall: 0 | ||
414 | + switchDataLossConfirmation: 0 | ||
415 | + switchSupportedNpadStyles: 3 | ||
416 | + switchSocketConfigEnabled: 0 | ||
417 | + switchTcpInitialSendBufferSize: 32 | ||
418 | + switchTcpInitialReceiveBufferSize: 64 | ||
419 | + switchTcpAutoSendBufferSizeMax: 256 | ||
420 | + switchTcpAutoReceiveBufferSizeMax: 256 | ||
421 | + switchUdpSendBufferSize: 9 | ||
422 | + switchUdpReceiveBufferSize: 42 | ||
423 | + switchSocketBufferEfficiency: 4 | ||
424 | + switchSocketInitializeEnabled: 1 | ||
425 | + switchNetworkInterfaceManagerInitializeEnabled: 1 | ||
426 | + switchPlayerConnectionEnabled: 1 | ||
427 | + ps4NPAgeRating: 12 | ||
428 | + ps4NPTitleSecret: | ||
429 | + ps4NPTrophyPackPath: | ||
430 | + ps4ParentalLevel: 11 | ||
431 | + ps4ContentID: ED1633-NPXX51362_00-0000000000000000 | ||
432 | + ps4Category: 0 | ||
433 | + ps4MasterVersion: 01.00 | ||
434 | + ps4AppVersion: 01.00 | ||
435 | + ps4AppType: 0 | ||
436 | + ps4ParamSfxPath: | ||
437 | + ps4VideoOutPixelFormat: 0 | ||
438 | + ps4VideoOutInitialWidth: 1920 | ||
439 | + ps4VideoOutBaseModeInitialWidth: 1920 | ||
440 | + ps4VideoOutReprojectionRate: 60 | ||
441 | + ps4PronunciationXMLPath: | ||
442 | + ps4PronunciationSIGPath: | ||
443 | + ps4BackgroundImagePath: | ||
444 | + ps4StartupImagePath: | ||
445 | + ps4StartupImagesFolder: | ||
446 | + ps4IconImagesFolder: | ||
447 | + ps4SaveDataImagePath: | ||
448 | + ps4SdkOverride: | ||
449 | + ps4BGMPath: | ||
450 | + ps4ShareFilePath: | ||
451 | + ps4ShareOverlayImagePath: | ||
452 | + ps4PrivacyGuardImagePath: | ||
453 | + ps4NPtitleDatPath: | ||
454 | + ps4RemotePlayKeyAssignment: -1 | ||
455 | + ps4RemotePlayKeyMappingDir: | ||
456 | + ps4PlayTogetherPlayerCount: 0 | ||
457 | + ps4EnterButtonAssignment: 1 | ||
458 | + ps4ApplicationParam1: 0 | ||
459 | + ps4ApplicationParam2: 0 | ||
460 | + ps4ApplicationParam3: 0 | ||
461 | + ps4ApplicationParam4: 0 | ||
462 | + ps4DownloadDataSize: 0 | ||
463 | + ps4GarlicHeapSize: 2048 | ||
464 | + ps4ProGarlicHeapSize: 2560 | ||
465 | + ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ | ||
466 | + ps4pnSessions: 1 | ||
467 | + ps4pnPresence: 1 | ||
468 | + ps4pnFriends: 1 | ||
469 | + ps4pnGameCustomData: 1 | ||
470 | + playerPrefsSupport: 0 | ||
471 | + restrictedAudioUsageRights: 0 | ||
472 | + ps4UseResolutionFallback: 0 | ||
473 | + ps4ReprojectionSupport: 0 | ||
474 | + ps4UseAudio3dBackend: 0 | ||
475 | + ps4SocialScreenEnabled: 0 | ||
476 | + ps4ScriptOptimizationLevel: 0 | ||
477 | + ps4Audio3dVirtualSpeakerCount: 14 | ||
478 | + ps4attribCpuUsage: 0 | ||
479 | + ps4PatchPkgPath: | ||
480 | + ps4PatchLatestPkgPath: | ||
481 | + ps4PatchChangeinfoPath: | ||
482 | + ps4PatchDayOne: 0 | ||
483 | + ps4attribUserManagement: 0 | ||
484 | + ps4attribMoveSupport: 0 | ||
485 | + ps4attrib3DSupport: 0 | ||
486 | + ps4attribShareSupport: 0 | ||
487 | + ps4attribExclusiveVR: 0 | ||
488 | + ps4disableAutoHideSplash: 0 | ||
489 | + ps4videoRecordingFeaturesUsed: 0 | ||
490 | + ps4contentSearchFeaturesUsed: 0 | ||
491 | + ps4attribEyeToEyeDistanceSettingVR: 0 | ||
492 | + ps4IncludedModules: [] | ||
493 | + monoEnv: | ||
494 | + psp2Splashimage: {fileID: 0} | ||
495 | + psp2NPTrophyPackPath: | ||
496 | + psp2NPSupportGBMorGJP: 0 | ||
497 | + psp2NPAgeRating: 12 | ||
498 | + psp2NPTitleDatPath: | ||
499 | + psp2NPCommsID: | ||
500 | + psp2NPCommunicationsID: | ||
501 | + psp2NPCommsPassphrase: | ||
502 | + psp2NPCommsSig: | ||
503 | + psp2ParamSfxPath: | ||
504 | + psp2ManualPath: | ||
505 | + psp2LiveAreaGatePath: | ||
506 | + psp2LiveAreaBackroundPath: | ||
507 | + psp2LiveAreaPath: | ||
508 | + psp2LiveAreaTrialPath: | ||
509 | + psp2PatchChangeInfoPath: | ||
510 | + psp2PatchOriginalPackage: | ||
511 | + psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui | ||
512 | + psp2KeystoneFile: | ||
513 | + psp2MemoryExpansionMode: 0 | ||
514 | + psp2DRMType: 0 | ||
515 | + psp2StorageType: 0 | ||
516 | + psp2MediaCapacity: 0 | ||
517 | + psp2DLCConfigPath: | ||
518 | + psp2ThumbnailPath: | ||
519 | + psp2BackgroundPath: | ||
520 | + psp2SoundPath: | ||
521 | + psp2TrophyCommId: | ||
522 | + psp2TrophyPackagePath: | ||
523 | + psp2PackagedResourcesPath: | ||
524 | + psp2SaveDataQuota: 10240 | ||
525 | + psp2ParentalLevel: 1 | ||
526 | + psp2ShortTitle: Not Set | ||
527 | + psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF | ||
528 | + psp2Category: 0 | ||
529 | + psp2MasterVersion: 01.00 | ||
530 | + psp2AppVersion: 01.00 | ||
531 | + psp2TVBootMode: 0 | ||
532 | + psp2EnterButtonAssignment: 2 | ||
533 | + psp2TVDisableEmu: 0 | ||
534 | + psp2AllowTwitterDialog: 1 | ||
535 | + psp2Upgradable: 0 | ||
536 | + psp2HealthWarning: 0 | ||
537 | + psp2UseLibLocation: 0 | ||
538 | + psp2InfoBarOnStartup: 0 | ||
539 | + psp2InfoBarColor: 0 | ||
540 | + psp2ScriptOptimizationLevel: 0 | ||
541 | + psmSplashimage: {fileID: 0} | ||
542 | + splashScreenBackgroundSourceLandscape: {fileID: 0} | ||
543 | + splashScreenBackgroundSourcePortrait: {fileID: 0} | ||
544 | + spritePackerPolicy: | ||
545 | + webGLMemorySize: 256 | ||
546 | + webGLExceptionSupport: 1 | ||
547 | + webGLNameFilesAsHashes: 0 | ||
548 | + webGLDataCaching: 0 | ||
549 | + webGLDebugSymbols: 0 | ||
550 | + webGLEmscriptenArgs: | ||
551 | + webGLModulesDirectory: | ||
552 | + webGLTemplate: APPLICATION:Default | ||
553 | + webGLAnalyzeBuildSize: 0 | ||
554 | + webGLUseEmbeddedResources: 0 | ||
555 | + webGLUseWasm: 0 | ||
556 | + webGLCompressionFormat: 1 | ||
557 | + scriptingDefineSymbols: {} | ||
558 | + platformArchitecture: {} | ||
559 | + scriptingBackend: {} | ||
560 | + incrementalIl2cppBuild: {} | ||
561 | + additionalIl2CppArgs: | ||
562 | + scriptingRuntimeVersion: 0 | ||
563 | + apiCompatibilityLevelPerPlatform: {} | ||
564 | + m_RenderingPath: 1 | ||
565 | + m_MobileRenderingPath: 1 | ||
566 | + metroPackageName: Flappy Bird | ||
567 | + metroPackageVersion: | ||
568 | + metroCertificatePath: | ||
569 | + metroCertificatePassword: | ||
570 | + metroCertificateSubject: | ||
571 | + metroCertificateIssuer: | ||
572 | + metroCertificateNotAfter: 0000000000000000 | ||
573 | + metroApplicationDescription: Flappy Bird | ||
574 | + wsaImages: {} | ||
575 | + metroTileShortName: | ||
576 | + metroCommandLineArgsFile: | ||
577 | + metroTileShowName: 0 | ||
578 | + metroMediumTileShowName: 0 | ||
579 | + metroLargeTileShowName: 0 | ||
580 | + metroWideTileShowName: 0 | ||
581 | + metroDefaultTileSize: 1 | ||
582 | + metroTileForegroundText: 2 | ||
583 | + metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} | ||
584 | + metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, | ||
585 | + a: 1} | ||
586 | + metroSplashScreenUseBackgroundColor: 0 | ||
587 | + platformCapabilities: {} | ||
588 | + metroFTAName: | ||
589 | + metroFTAFileTypes: [] | ||
590 | + metroProtocolName: | ||
591 | + metroCompilationOverrides: 1 | ||
592 | + tizenProductDescription: | ||
593 | + tizenProductURL: | ||
594 | + tizenSigningProfileName: | ||
595 | + tizenGPSPermissions: 0 | ||
596 | + tizenMicrophonePermissions: 0 | ||
597 | + tizenDeploymentTarget: | ||
598 | + tizenDeploymentTargetType: -1 | ||
599 | + tizenMinOSVersion: 1 | ||
600 | + n3dsUseExtSaveData: 0 | ||
601 | + n3dsCompressStaticMem: 1 | ||
602 | + n3dsExtSaveDataNumber: 0x12345 | ||
603 | + n3dsStackSize: 131072 | ||
604 | + n3dsTargetPlatform: 2 | ||
605 | + n3dsRegion: 7 | ||
606 | + n3dsMediaSize: 0 | ||
607 | + n3dsLogoStyle: 3 | ||
608 | + n3dsTitle: GameName | ||
609 | + n3dsProductCode: | ||
610 | + n3dsApplicationId: 0xFF3FF | ||
611 | + XboxOneProductId: | ||
612 | + XboxOneUpdateKey: | ||
613 | + XboxOneSandboxId: | ||
614 | + XboxOneContentId: | ||
615 | + XboxOneTitleId: | ||
616 | + XboxOneSCId: | ||
617 | + XboxOneGameOsOverridePath: | ||
618 | + XboxOnePackagingOverridePath: | ||
619 | + XboxOneAppManifestOverridePath: | ||
620 | + XboxOnePackageEncryption: 0 | ||
621 | + XboxOnePackageUpdateGranularity: 2 | ||
622 | + XboxOneDescription: | ||
623 | + XboxOneLanguage: | ||
624 | + - enus | ||
625 | + XboxOneCapability: [] | ||
626 | + XboxOneGameRating: {} | ||
627 | + XboxOneIsContentPackage: 0 | ||
628 | + XboxOneEnableGPUVariability: 0 | ||
629 | + XboxOneSockets: {} | ||
630 | + XboxOneSplashScreen: {fileID: 0} | ||
631 | + XboxOneAllowedProductIds: [] | ||
632 | + XboxOnePersistentLocalStorageSize: 0 | ||
633 | + xboxOneScriptCompiler: 0 | ||
634 | + vrEditorSettings: | ||
635 | + daydream: | ||
636 | + daydreamIconForeground: {fileID: 0} | ||
637 | + daydreamIconBackground: {fileID: 0} | ||
638 | + cloudServicesEnabled: {} | ||
639 | + facebookSdkVersion: 7.9.4 | ||
640 | + apiCompatibilityLevel: 3 | ||
641 | + cloudProjectId: | ||
642 | + projectName: | ||
643 | + organizationId: | ||
644 | + cloudEnabled: 0 | ||
645 | + enableNativePlatformBackendsForNewInputSystem: 0 | ||
646 | + disableOldInputManagerSupport: 0 |
ProjectSettings/ProjectVersion.txt
0 → 100644
1 | +m_EditorVersion: 2017.3.1p1 |
ProjectSettings/QualitySettings.asset
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!47 &1 | ||
4 | +QualitySettings: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + serializedVersion: 5 | ||
7 | + m_CurrentQuality: 5 | ||
8 | + m_QualitySettings: | ||
9 | + - serializedVersion: 2 | ||
10 | + name: Very Low | ||
11 | + pixelLightCount: 0 | ||
12 | + shadows: 0 | ||
13 | + shadowResolution: 0 | ||
14 | + shadowProjection: 1 | ||
15 | + shadowCascades: 1 | ||
16 | + shadowDistance: 15 | ||
17 | + shadowNearPlaneOffset: 3 | ||
18 | + shadowCascade2Split: 0.33333334 | ||
19 | + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} | ||
20 | + shadowmaskMode: 0 | ||
21 | + blendWeights: 1 | ||
22 | + textureQuality: 1 | ||
23 | + anisotropicTextures: 0 | ||
24 | + antiAliasing: 0 | ||
25 | + softParticles: 0 | ||
26 | + softVegetation: 0 | ||
27 | + realtimeReflectionProbes: 0 | ||
28 | + billboardsFaceCameraPosition: 0 | ||
29 | + vSyncCount: 0 | ||
30 | + lodBias: 0.3 | ||
31 | + maximumLODLevel: 0 | ||
32 | + particleRaycastBudget: 4 | ||
33 | + asyncUploadTimeSlice: 2 | ||
34 | + asyncUploadBufferSize: 4 | ||
35 | + resolutionScalingFixedDPIFactor: 1 | ||
36 | + excludedTargetPlatforms: [] | ||
37 | + - serializedVersion: 2 | ||
38 | + name: Low | ||
39 | + pixelLightCount: 0 | ||
40 | + shadows: 0 | ||
41 | + shadowResolution: 0 | ||
42 | + shadowProjection: 1 | ||
43 | + shadowCascades: 1 | ||
44 | + shadowDistance: 20 | ||
45 | + shadowNearPlaneOffset: 3 | ||
46 | + shadowCascade2Split: 0.33333334 | ||
47 | + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} | ||
48 | + shadowmaskMode: 0 | ||
49 | + blendWeights: 2 | ||
50 | + textureQuality: 0 | ||
51 | + anisotropicTextures: 0 | ||
52 | + antiAliasing: 0 | ||
53 | + softParticles: 0 | ||
54 | + softVegetation: 0 | ||
55 | + realtimeReflectionProbes: 0 | ||
56 | + billboardsFaceCameraPosition: 0 | ||
57 | + vSyncCount: 0 | ||
58 | + lodBias: 0.4 | ||
59 | + maximumLODLevel: 0 | ||
60 | + particleRaycastBudget: 16 | ||
61 | + asyncUploadTimeSlice: 2 | ||
62 | + asyncUploadBufferSize: 4 | ||
63 | + resolutionScalingFixedDPIFactor: 1 | ||
64 | + excludedTargetPlatforms: [] | ||
65 | + - serializedVersion: 2 | ||
66 | + name: Medium | ||
67 | + pixelLightCount: 1 | ||
68 | + shadows: 1 | ||
69 | + shadowResolution: 0 | ||
70 | + shadowProjection: 1 | ||
71 | + shadowCascades: 1 | ||
72 | + shadowDistance: 20 | ||
73 | + shadowNearPlaneOffset: 3 | ||
74 | + shadowCascade2Split: 0.33333334 | ||
75 | + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} | ||
76 | + shadowmaskMode: 0 | ||
77 | + blendWeights: 2 | ||
78 | + textureQuality: 0 | ||
79 | + anisotropicTextures: 1 | ||
80 | + antiAliasing: 0 | ||
81 | + softParticles: 0 | ||
82 | + softVegetation: 0 | ||
83 | + realtimeReflectionProbes: 0 | ||
84 | + billboardsFaceCameraPosition: 0 | ||
85 | + vSyncCount: 1 | ||
86 | + lodBias: 0.7 | ||
87 | + maximumLODLevel: 0 | ||
88 | + particleRaycastBudget: 64 | ||
89 | + asyncUploadTimeSlice: 2 | ||
90 | + asyncUploadBufferSize: 4 | ||
91 | + resolutionScalingFixedDPIFactor: 1 | ||
92 | + excludedTargetPlatforms: [] | ||
93 | + - serializedVersion: 2 | ||
94 | + name: High | ||
95 | + pixelLightCount: 2 | ||
96 | + shadows: 2 | ||
97 | + shadowResolution: 1 | ||
98 | + shadowProjection: 1 | ||
99 | + shadowCascades: 2 | ||
100 | + shadowDistance: 40 | ||
101 | + shadowNearPlaneOffset: 3 | ||
102 | + shadowCascade2Split: 0.33333334 | ||
103 | + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} | ||
104 | + shadowmaskMode: 1 | ||
105 | + blendWeights: 2 | ||
106 | + textureQuality: 0 | ||
107 | + anisotropicTextures: 1 | ||
108 | + antiAliasing: 0 | ||
109 | + softParticles: 0 | ||
110 | + softVegetation: 1 | ||
111 | + realtimeReflectionProbes: 1 | ||
112 | + billboardsFaceCameraPosition: 1 | ||
113 | + vSyncCount: 1 | ||
114 | + lodBias: 1 | ||
115 | + maximumLODLevel: 0 | ||
116 | + particleRaycastBudget: 256 | ||
117 | + asyncUploadTimeSlice: 2 | ||
118 | + asyncUploadBufferSize: 4 | ||
119 | + resolutionScalingFixedDPIFactor: 1 | ||
120 | + excludedTargetPlatforms: [] | ||
121 | + - serializedVersion: 2 | ||
122 | + name: Very High | ||
123 | + pixelLightCount: 3 | ||
124 | + shadows: 2 | ||
125 | + shadowResolution: 2 | ||
126 | + shadowProjection: 1 | ||
127 | + shadowCascades: 2 | ||
128 | + shadowDistance: 70 | ||
129 | + shadowNearPlaneOffset: 3 | ||
130 | + shadowCascade2Split: 0.33333334 | ||
131 | + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} | ||
132 | + shadowmaskMode: 1 | ||
133 | + blendWeights: 4 | ||
134 | + textureQuality: 0 | ||
135 | + anisotropicTextures: 2 | ||
136 | + antiAliasing: 2 | ||
137 | + softParticles: 1 | ||
138 | + softVegetation: 1 | ||
139 | + realtimeReflectionProbes: 1 | ||
140 | + billboardsFaceCameraPosition: 1 | ||
141 | + vSyncCount: 1 | ||
142 | + lodBias: 1.5 | ||
143 | + maximumLODLevel: 0 | ||
144 | + particleRaycastBudget: 1024 | ||
145 | + asyncUploadTimeSlice: 2 | ||
146 | + asyncUploadBufferSize: 4 | ||
147 | + resolutionScalingFixedDPIFactor: 1 | ||
148 | + excludedTargetPlatforms: [] | ||
149 | + - serializedVersion: 2 | ||
150 | + name: Ultra | ||
151 | + pixelLightCount: 4 | ||
152 | + shadows: 2 | ||
153 | + shadowResolution: 2 | ||
154 | + shadowProjection: 1 | ||
155 | + shadowCascades: 4 | ||
156 | + shadowDistance: 150 | ||
157 | + shadowNearPlaneOffset: 3 | ||
158 | + shadowCascade2Split: 0.33333334 | ||
159 | + shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} | ||
160 | + shadowmaskMode: 1 | ||
161 | + blendWeights: 4 | ||
162 | + textureQuality: 0 | ||
163 | + anisotropicTextures: 2 | ||
164 | + antiAliasing: 2 | ||
165 | + softParticles: 1 | ||
166 | + softVegetation: 1 | ||
167 | + realtimeReflectionProbes: 1 | ||
168 | + billboardsFaceCameraPosition: 1 | ||
169 | + vSyncCount: 1 | ||
170 | + lodBias: 2 | ||
171 | + maximumLODLevel: 0 | ||
172 | + particleRaycastBudget: 4096 | ||
173 | + asyncUploadTimeSlice: 2 | ||
174 | + asyncUploadBufferSize: 4 | ||
175 | + resolutionScalingFixedDPIFactor: 1 | ||
176 | + excludedTargetPlatforms: [] | ||
177 | + m_PerPlatformDefaultQuality: | ||
178 | + Android: 2 | ||
179 | + Nintendo 3DS: 5 | ||
180 | + Nintendo Switch: 5 | ||
181 | + PS4: 5 | ||
182 | + PSM: 5 | ||
183 | + PSP2: 2 | ||
184 | + Samsung TV: 2 | ||
185 | + Standalone: 5 | ||
186 | + Tizen: 2 | ||
187 | + WebGL: 3 | ||
188 | + WiiU: 5 | ||
189 | + Windows Store Apps: 5 | ||
190 | + XboxOne: 5 | ||
191 | + iPhone: 2 | ||
192 | + tvOS: 2 |
ProjectSettings/TagManager.asset
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!78 &1 | ||
4 | +TagManager: | ||
5 | + serializedVersion: 2 | ||
6 | + tags: | ||
7 | + - Column | ||
8 | + layers: | ||
9 | + - Default | ||
10 | + - TransparentFX | ||
11 | + - Ignore Raycast | ||
12 | + - | ||
13 | + - Water | ||
14 | + - UI | ||
15 | + - | ||
16 | + - | ||
17 | + - | ||
18 | + - | ||
19 | + - | ||
20 | + - | ||
21 | + - | ||
22 | + - | ||
23 | + - | ||
24 | + - | ||
25 | + - | ||
26 | + - | ||
27 | + - | ||
28 | + - | ||
29 | + - | ||
30 | + - | ||
31 | + - | ||
32 | + - | ||
33 | + - | ||
34 | + - | ||
35 | + - | ||
36 | + - | ||
37 | + - | ||
38 | + - | ||
39 | + - | ||
40 | + - | ||
41 | + m_SortingLayers: | ||
42 | + - name: Default | ||
43 | + uniqueID: 0 | ||
44 | + locked: 0 | ||
45 | + - name: Background | ||
46 | + uniqueID: 2196692345 | ||
47 | + locked: 0 | ||
48 | + - name: Middleground | ||
49 | + uniqueID: 445731935 | ||
50 | + locked: 0 | ||
51 | + - name: Foreground | ||
52 | + uniqueID: 1403543497 | ||
53 | + locked: 0 |
ProjectSettings/TimeManager.asset
0 → 100644
ProjectSettings/UnityConnectSettings.asset
0 → 100644
1 | +%YAML 1.1 | ||
2 | +%TAG !u! tag:unity3d.com,2011: | ||
3 | +--- !u!310 &1 | ||
4 | +UnityConnectSettings: | ||
5 | + m_ObjectHideFlags: 0 | ||
6 | + m_Enabled: 0 | ||
7 | + m_TestMode: 0 | ||
8 | + m_TestEventUrl: | ||
9 | + m_TestConfigUrl: | ||
10 | + m_TestInitMode: 0 | ||
11 | + CrashReportingSettings: | ||
12 | + m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes | ||
13 | + m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate | ||
14 | + m_Enabled: 0 | ||
15 | + m_CaptureEditorExceptions: 1 | ||
16 | + UnityPurchasingSettings: | ||
17 | + m_Enabled: 0 | ||
18 | + m_TestMode: 0 | ||
19 | + UnityAnalyticsSettings: | ||
20 | + m_Enabled: 0 | ||
21 | + m_InitializeOnStartup: 1 | ||
22 | + m_TestMode: 0 | ||
23 | + m_TestEventUrl: | ||
24 | + m_TestConfigUrl: | ||
25 | + UnityAdsSettings: | ||
26 | + m_Enabled: 0 | ||
27 | + m_InitializeOnStartup: 1 | ||
28 | + m_TestMode: 0 | ||
29 | + m_IosGameId: | ||
30 | + m_AndroidGameId: | ||
31 | + m_GameIds: {} | ||
32 | + m_GameId: | ||
33 | + PerformanceReportingSettings: | ||
34 | + m_Enabled: 0 |
ScrollingObject.cs.meta
0 → 100644
1 | +fileFormatVersion: 2 | ||
2 | +guid: 7b1a752e74fb5054ca7c529e71e13e25 | ||
3 | +timeCreated: 1515674399 | ||
4 | +licenseType: Free | ||
5 | +MonoImporter: | ||
6 | + externalObjects: {} | ||
7 | + serializedVersion: 2 | ||
8 | + defaultReferences: [] | ||
9 | + executionOrder: 0 | ||
10 | + icon: {instanceID: 0} | ||
11 | + userData: | ||
12 | + assetBundleName: | ||
13 | + assetBundleVariant: |
UnityPackageManager/manifest.json
0 → 100644
-
Please register or login to post a comment