I_Jemin

Init

Showing 83 changed files with 2950 additions and 0 deletions
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
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
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="ContentModelUserStore">
4 + <explicitIncludes />
5 + <explicitExcludes />
6 + </component>
7 +</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/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
This diff is collapsed. Click to expand it.
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="ContentModelUserStore">
4 + <explicitIncludes />
5 + <explicitExcludes />
6 + </component>
7 +</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
This diff is collapsed. Click to expand it.
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 +fileFormatVersion: 2
2 +guid: c1a7de0ff0dc044a985b7127e2e2d5ca
3 +folderAsset: yes
4 +timeCreated: 1519397186
5 +licenseType: Pro
6 +DefaultImporter:
7 + externalObjects: {}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
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: []
1 +fileFormatVersion: 2
2 +guid: 716289930587c0444840344db05ebbf1
3 +timeCreated: 1515670898
4 +licenseType: Free
5 +NativeFormatImporter:
6 + externalObjects: {}
7 + mainObjectFileID: 7400000
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
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: []
1 +fileFormatVersion: 2
2 +guid: 01936ebf0f3ad824694ad8a117daae42
3 +timeCreated: 1515670821
4 +licenseType: Free
5 +NativeFormatImporter:
6 + externalObjects: {}
7 + mainObjectFileID: 7400000
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
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: []
1 +fileFormatVersion: 2
2 +guid: bf92e13734139bf479a5d6b5ed945cc2
3 +timeCreated: 1515670657
4 +licenseType: Free
5 +NativeFormatImporter:
6 + externalObjects: {}
7 + mainObjectFileID: 7400000
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: ca583b96f4ef23d428245ab04ab8b42d
3 +folderAsset: yes
4 +timeCreated: 1515667280
5 +licenseType: Free
6 +DefaultImporter:
7 + externalObjects: {}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
No preview for this file type
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:
This diff is collapsed. Click to expand it.
1 +fileFormatVersion: 2
2 +guid: d1c64794661cec645b1c55c68cb2600d
3 +timeCreated: 1515668124
4 +licenseType: Free
5 +DefaultImporter:
6 + externalObjects: {}
7 + userData:
8 + assetBundleName:
9 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 79957e121b01446fbbfa3319901eada9
3 +folderAsset: yes
4 +timeCreated: 1519397037
5 +licenseType: Pro
6 +DefaultImporter:
7 + externalObjects: {}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 702908d5b30644955951703db967008b
3 +folderAsset: yes
4 +timeCreated: 1519397037
5 +licenseType: Pro
6 +DefaultImporter:
7 + externalObjects: {}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 12abc13bee76c40a3b886ae26970d443
3 +folderAsset: yes
4 +timeCreated: 1519397037
5 +licenseType: Pro
6 +DefaultImporter:
7 + externalObjects: {}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
This diff is collapsed. Click to expand it.
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:
1 +fileFormatVersion: 2
2 +guid: ad44573ae39294409b89bc8dd99a2326
3 +folderAsset: yes
4 +timeCreated: 1519397196
5 +licenseType: Pro
6 +DefaultImporter:
7 + externalObjects: {}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
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
1 +fileFormatVersion: 2
2 +guid: c2c9aa14a7d79f9429aa9c0fafc9997b
3 +timeCreated: 1516103228
4 +licenseType: Free
5 +NativeFormatImporter:
6 + externalObjects: {}
7 + mainObjectFileID: 100100000
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: cfdc4be287a85406b8d129e982404887
3 +folderAsset: yes
4 +timeCreated: 1519408422
5 +licenseType: Pro
6 +DefaultImporter:
7 + externalObjects: {}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
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}
1 +fileFormatVersion: 2
2 +guid: b287b335dbdc6814e972f36f77260521
3 +timeCreated: 1515670657
4 +licenseType: Free
5 +NativeFormatImporter:
6 + externalObjects: {}
7 + mainObjectFileID: 9100000
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 7daef70ed45c3401aa5c32365f319449
3 +folderAsset: yes
4 +timeCreated: 1519397171
5 +licenseType: Pro
6 +DefaultImporter:
7 + externalObjects: {}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
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
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:
1 +using UnityEngine;
2 + using System.Collections;
3 +
4 + public class Column : MonoBehaviour
5 + {
6 +
7 + }
...\ No newline at end of file ...\ No newline at end of file
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:
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
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:
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
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:
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 +
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:
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
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:
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
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:
1 +fileFormatVersion: 2
2 +guid: c6604b5fcb7eb6544919684d9a3ad2ed
3 +folderAsset: yes
4 +timeCreated: 1515667280
5 +licenseType: Free
6 +DefaultImporter:
7 + externalObjects: {}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
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:
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:
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:
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:
1 +fileFormatVersion: 2
2 +guid: dfc3819c0ae0848318d14768a547e823
3 +folderAsset: yes
4 +timeCreated: 1519397390
5 +licenseType: Pro
6 +DefaultImporter:
7 + externalObjects: {}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
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
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:
1 +fileFormatVersion: 2
2 +guid: 55fbade602e7642ac87996b6d9e039e1
3 +folderAsset: yes
4 +timeCreated: 1519399874
5 +licenseType: Pro
6 +DefaultImporter:
7 + externalObjects: {}
8 + userData:
9 + assetBundleName:
10 + assetBundleVariant:
No preview for this file type
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:
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
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!236 &1
4 +ClusterInputManager:
5 + m_ObjectHideFlags: 0
6 + m_Inputs: []
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
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!1045 &1
4 +EditorBuildSettings:
5 + m_ObjectHideFlags: 0
6 + serializedVersion: 2
7 + m_Scenes:
8 + - enabled: 1
9 + path: Assets/Main.unity
10 + guid: d1c64794661cec645b1c55c68cb2600d
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
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
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
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
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!149 &1
4 +NetworkManager:
5 + m_ObjectHideFlags: 0
6 + m_DebugLevel: 0
7 + m_Sendrate: 15
8 + m_AssetToPrefab: {}
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
This diff is collapsed. Click to expand it.
1 +m_EditorVersion: 2017.3.1p1
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
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
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!5 &1
4 +TimeManager:
5 + m_ObjectHideFlags: 0
6 + Fixed Timestep: 0.02
7 + Maximum Allowed Timestep: 0.33333334
8 + m_TimeScale: 1
9 + Maximum Particle Timestep: 0.03
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
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:
1 +{
2 + "dependencies": {
3 + }
4 +}