Added a bunch of features

This commit is contained in:
2018-04-11 16:54:57 +10:00
parent 2cd21dc329
commit a13da880b1
17 changed files with 737 additions and 23 deletions
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:157aa5da4e06c0c0191f1ad6a370595bfcb0a2c5bd80a8363c2c94839dfdc8bf
size 14832
+77
View File
@@ -0,0 +1,77 @@
fileFormatVersion: 2
guid: ff6472ad649bbbc4aba100c238f7aea0
timeCreated: 1523425914
licenseType: Free
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:
+1 -1
View File
@@ -99,7 +99,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: eac2f64158454a043b4b2ed57afad7de, type: 3} m_Script: {fileID: 11500000, guid: eac2f64158454a043b4b2ed57afad7de, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
value: 2 value: 1
--- !u!212 &212412342297678404 --- !u!212 &212412342297678404
SpriteRenderer: SpriteRenderer:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
+146
View File
@@ -0,0 +1,146 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 1565483088663456}
m_IsPrefabParent: 1
--- !u!1 &1565483088663456
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 5
m_Component:
- component: {fileID: 4621041320636482}
- component: {fileID: 212131510441877052}
- component: {fileID: 50110833416578352}
- component: {fileID: 61567576339031328}
- component: {fileID: 114798359239674528}
m_Layer: 0
m_Name: Nightcrawler
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &4621041320636482
Transform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1565483088663456}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.5, y: 0.5, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!50 &50110833416578352
Rigidbody2D:
serializedVersion: 4
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1565483088663456}
m_BodyType: 0
m_Simulated: 1
m_UseFullKinematicContacts: 0
m_UseAutoMass: 0
m_Mass: 1
m_LinearDrag: 0
m_AngularDrag: 0
m_GravityScale: 0
m_Material: {fileID: 0}
m_Interpolate: 0
m_SleepingMode: 1
m_CollisionDetection: 0
m_Constraints: 0
--- !u!61 &61567576339031328
BoxCollider2D:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1565483088663456}
m_Enabled: 1
m_Density: 1
m_Material: {fileID: 0}
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0.5, y: 0.5}
oldSize: {x: 5.24, y: 6.51}
newSize: {x: 5.24, y: 6.51}
adaptiveTilingThreshold: 0.5
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 5.24, y: 6.51}
m_EdgeRadius: 0
--- !u!114 &114798359239674528
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1565483088663456}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: eac2f64158454a043b4b2ed57afad7de, type: 3}
m_Name:
m_EditorClassIdentifier:
value: 2
--- !u!212 &212131510441877052
SpriteRenderer:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1565483088663456}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 0
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: -1858500921
m_SortingLayer: 1
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 0cca786346a287141be9aec477d99f4d, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 5.24, y: 6.51}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
+10
View File
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: d63fd10b2b3fd214da1efb31eab0a8bd
timeCreated: 1523425064
licenseType: Free
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 100100000
userData:
assetBundleName:
assetBundleVariant:
+293 -17
View File
@@ -141,7 +141,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 2001262636} m_Father: {fileID: 2001262636}
m_RootOrder: 1 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &148838262 --- !u!114 &148838262
MonoBehaviour: MonoBehaviour:
@@ -374,7 +374,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 2001262636} m_Father: {fileID: 2001262636}
m_RootOrder: 3 m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &409174665 --- !u!114 &409174665
MonoBehaviour: MonoBehaviour:
@@ -440,11 +440,11 @@ Prefab:
m_Modifications: m_Modifications:
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2} - target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: 9.14 value: 9.49
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2} - target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalPosition.y propertyPath: m_LocalPosition.y
value: -7.91 value: -7.18
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2} - target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
@@ -477,12 +477,12 @@ Prefab:
- target: {fileID: 114508120021180596, guid: b16589ec086fe774ba4170ead0d42374, - target: {fileID: 114508120021180596, guid: b16589ec086fe774ba4170ead0d42374,
type: 2} type: 2}
propertyPath: motion.x propertyPath: motion.x
value: 2 value: -2
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 114508120021180596, guid: b16589ec086fe774ba4170ead0d42374, - target: {fileID: 114508120021180596, guid: b16589ec086fe774ba4170ead0d42374,
type: 2} type: 2}
propertyPath: delay propertyPath: delay
value: 11 value: 13
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 114508120021180596, guid: b16589ec086fe774ba4170ead0d42374, - target: {fileID: 114508120021180596, guid: b16589ec086fe774ba4170ead0d42374,
type: 2} type: 2}
@@ -498,6 +498,128 @@ Prefab:
m_RemovedComponents: [] m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: b16589ec086fe774ba4170ead0d42374, type: 2} m_ParentPrefab: {fileID: 100100000, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
m_IsPrefabParent: 0 m_IsPrefabParent: 0
--- !u!1 &513900516
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 513900517}
- component: {fileID: 513900519}
- component: {fileID: 513900518}
m_Layer: 0
m_Name: SoundController
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &513900517
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 513900516}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1453867830}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &513900518
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 513900516}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c721dd74b396cd74c8a87e1944178d3e, type: 3}
m_Name:
m_EditorClassIdentifier:
snapShot: {fileID: 8300000, guid: dff5247fcc2378842b97e9a3a5fe761c, type: 3}
--- !u!82 &513900519
AudioSource:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 513900516}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 0}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 2
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
- serializedVersion: 2
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 2
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 0
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 2
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 2
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 0
--- !u!1 &541459442 --- !u!1 &541459442
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -526,7 +648,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 2001262636} m_Father: {fileID: 2001262636}
m_RootOrder: 2 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &541459444 --- !u!114 &541459444
MonoBehaviour: MonoBehaviour:
@@ -606,12 +728,12 @@ Transform:
m_PrefabParentObject: {fileID: 0} m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0} m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 737836239} m_GameObject: {fileID: 737836239}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 2001262636} m_Father: {fileID: 2001262636}
m_RootOrder: 0 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &737836241 --- !u!114 &737836241
MonoBehaviour: MonoBehaviour:
@@ -668,6 +790,73 @@ SpriteRenderer:
m_SpriteTileMode: 0 m_SpriteTileMode: 0
m_WasSpriteAssigned: 1 m_WasSpriteAssigned: 1
m_MaskInteraction: 0 m_MaskInteraction: 0
--- !u!1001 &878750102
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalPosition.x
value: -5.71
objectReference: {fileID: 0}
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalPosition.y
value: 6.81
objectReference: {fileID: 0}
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalPosition.z
value: -4.466797
objectReference: {fileID: 0}
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_RootOrder
value: 6
objectReference: {fileID: 0}
- target: {fileID: 1049810975271280, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_Name
value: MonsterSpawner (3)
objectReference: {fileID: 0}
- target: {fileID: 114508120021180596, guid: b16589ec086fe774ba4170ead0d42374,
type: 2}
propertyPath: motion.x
value: 2
objectReference: {fileID: 0}
- target: {fileID: 114508120021180596, guid: b16589ec086fe774ba4170ead0d42374,
type: 2}
propertyPath: delay
value: 11
objectReference: {fileID: 0}
- target: {fileID: 114508120021180596, guid: b16589ec086fe774ba4170ead0d42374,
type: 2}
propertyPath: monsterPrefab
value:
objectReference: {fileID: 1876593924556066, guid: a3a482c56d8487d4182da0e0cb895726,
type: 2}
- target: {fileID: 114508120021180596, guid: b16589ec086fe774ba4170ead0d42374,
type: 2}
propertyPath: motion.y
value: -4
objectReference: {fileID: 0}
m_RemovedComponents: []
m_ParentPrefab: {fileID: 100100000, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
m_IsPrefabParent: 0
--- !u!1001 &926281811 --- !u!1001 &926281811
Prefab: Prefab:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -677,11 +866,11 @@ Prefab:
m_Modifications: m_Modifications:
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2} - target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: -21.45 value: -15.74
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2} - target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalPosition.y propertyPath: m_LocalPosition.y
value: -3.55 value: -3.34
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2} - target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
@@ -711,7 +900,7 @@ Prefab:
type: 2} type: 2}
propertyPath: monsterPrefab propertyPath: monsterPrefab
value: value:
objectReference: {fileID: 1303357507213898, guid: de4fdabdbf5460e499dcbc3b6c56e49d, objectReference: {fileID: 1565483088663456, guid: d63fd10b2b3fd214da1efb31eab0a8bd,
type: 2} type: 2}
- target: {fileID: 114508120021180596, guid: b16589ec086fe774ba4170ead0d42374, - target: {fileID: 114508120021180596, guid: b16589ec086fe774ba4170ead0d42374,
type: 2} type: 2}
@@ -786,7 +975,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 7 m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1453867828 --- !u!1 &1453867828
GameObject: GameObject:
@@ -827,7 +1016,8 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children:
- {fileID: 513900517}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 2 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@@ -911,6 +1101,91 @@ AudioSource:
m_PreInfinity: 2 m_PreInfinity: 2
m_PostInfinity: 2 m_PostInfinity: 2
m_RotationOrder: 0 m_RotationOrder: 0
--- !u!1 &1479090321
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 5
m_Component:
- component: {fileID: 1479090322}
- component: {fileID: 1479090324}
- component: {fileID: 1479090323}
m_Layer: 0
m_Name: Flash
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1479090322
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1479090321}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2001262636}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1479090323
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1479090321}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f42feb702d6b2b49a80e802d2811da4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!212 &1479090324
SpriteRenderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1479090321}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 0
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: -1946130261
m_SortingLayer: 2
m_SortingOrder: 1
m_Sprite: {fileID: 21300000, guid: ff6472ad649bbbc4aba100c238f7aea0, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
m_Size: {x: 38.399998, y: 10.799999}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
--- !u!1001 &1512958822 --- !u!1001 &1512958822
Prefab: Prefab:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -920,11 +1195,11 @@ Prefab:
m_Modifications: m_Modifications:
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2} - target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: 22.58 value: 20.68
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2} - target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalPosition.y propertyPath: m_LocalPosition.y
value: -1.9 value: -1.99
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2} - target: {fileID: 4910612253286244, guid: b16589ec086fe774ba4170ead0d42374, type: 2}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
@@ -1061,7 +1336,7 @@ RectTransform:
- {fileID: 316885955} - {fileID: 316885955}
- {fileID: 181175713} - {fileID: 181175713}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 6 m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0}
@@ -1233,6 +1508,7 @@ Transform:
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children:
- {fileID: 1479090322}
- {fileID: 737836240} - {fileID: 737836240}
- {fileID: 148838261} - {fileID: 148838261}
- {fileID: 541459443} - {fileID: 541459443}
+41
View File
@@ -0,0 +1,41 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Flash : MonoBehaviour {
SpriteRenderer spriteRenderer;
float alpha = 1.0f;
const float gradient = 0.1f;
const float period = 0.1f;
float lastClick; //prevent double exposure
void Awake() {
spriteRenderer = GetComponent<SpriteRenderer> ();
spriteRenderer.color = new Color (1f, 1f, 1f, 0f);
}
public void StartFlash() {
StartCoroutine (FlashCoroutine ());
}
IEnumerator FlashCoroutine() {
lastClick = Time.time;
float thisClick = lastClick;
alpha = 1.0f;
while (alpha > 0) {
yield return new WaitForSeconds (period);
if (thisClick != lastClick) {
break;
}
alpha -= gradient;
spriteRenderer.color = new Color (1f, 1f, 1f, alpha);
}
}
}
+13
View File
@@ -0,0 +1,13 @@
fileFormatVersion: 2
guid: 5f42feb702d6b2b49a80e802d2811da4
timeCreated: 1523426005
licenseType: Free
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+14 -2
View File
@@ -5,19 +5,31 @@ using UnityEngine;
public class Monster : MonoBehaviour { public class Monster : MonoBehaviour {
public int value; public int value;
Rigidbody2D rigidBody;
void Awake() { void Awake() {
StartCoroutine (DestroySelfAfter (30f)); rigidBody = GetComponent<Rigidbody2D> ();
StartCoroutine (ReverseDirectionAfter (2f));
StartCoroutine (DestroySelfAfter (4f));
} }
void OnMouseOver() { void OnMouseOver() {
if (Input.GetMouseButtonDown(0)) { if (Input.GetMouseButtonDown(0)) {
//TODO: play death sound GameObject.Find ("SoundController").GetComponent<SoundController> ().PlaySnapShot ();
GameObject.Find ("Flash").GetComponent<Flash> ().StartFlash ();
PersistentData.score += value; PersistentData.score += value;
Destroy (gameObject); Destroy (gameObject);
} }
} }
IEnumerator ReverseDirectionAfter(float seconds) {
yield return new WaitForSeconds (seconds);
rigidBody.velocity = new Vector2 (-rigidBody.velocity.x, -rigidBody.velocity.y);
}
IEnumerator DestroySelfAfter(float seconds) { IEnumerator DestroySelfAfter(float seconds) {
//clean up lost objects
yield return new WaitForSeconds (seconds); yield return new WaitForSeconds (seconds);
Destroy (gameObject); Destroy (gameObject);
} }
+16
View File
@@ -0,0 +1,16 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SoundController : MonoBehaviour {
AudioSource audioSource;
public AudioClip snapShot;
void Awake() {
audioSource = GetComponent<AudioSource> ();
}
public void PlaySnapShot() {
audioSource.PlayOneShot (snapShot, 1.0f);
}
}
+13
View File
@@ -0,0 +1,13 @@
fileFormatVersion: 2
guid: c721dd74b396cd74c8a87e1944178d3e
timeCreated: 1523425291
licenseType: Free
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:599861c5a03e84b8cf861edc87380697f5afa2b038a179c44114fac1ccac7613
size 116972
+24
View File
@@ -0,0 +1,24 @@
fileFormatVersion: 2
guid: dff5247fcc2378842b97e9a3a5fe761c
timeCreated: 1523424576
licenseType: Free
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
+2 -2
View File
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:634b98b5967ef8007946d8401db2caf6c5e2712cacb5f6c7e4a7ea64038cd955 oid sha256:d24b90984e9023dd68b0fd5c587ec4c2ec0ec9b3eeff9c0e17d1c217d1d54a03
size 118030 size 142018
+1 -1
View File
@@ -1,6 +1,6 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: fb143031c71e7314ebdcc76df91dbbb8 guid: fb143031c71e7314ebdcc76df91dbbb8
timeCreated: 1523362365 timeCreated: 1523424574
licenseType: Free licenseType: Free
TextureImporter: TextureImporter:
fileIDToRecycleName: {} fileIDToRecycleName: {}
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d36aa9ded572e7c4d5f6f46a45648934eb848f6b3873ed3b107c9f680fe448c9
size 51802
+77
View File
@@ -0,0 +1,77 @@
fileFormatVersion: 2
guid: 0cca786346a287141be9aec477d99f4d
timeCreated: 1523424574
licenseType: Free
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 100
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant: