浏览代码

Merge pull request #28 from UnityTechnologies/vfx

Modified particles systems to match gameplay animations
/AdsTesting
GitHub 4 年前
当前提交
ccea4c2b
共有 12 个文件被更改,包括 485 次插入99 次删除
  1. 45
      Assets/Animation/Chest_Anim_Open.anim
  2. 17
      Assets/Models/Dino.fbx.meta
  3. 19
      Assets/Models/Gameplay Elements/Chest.fbx.meta
  4. 9
      Assets/Prefabs/Chest.prefab
  5. 4
      Assets/Prefabs/GameplayCanvas.prefab
  6. 106
      Assets/Prefabs/JumpParticles.prefab
  7. 335
      Assets/Prefabs/Player.prefab
  8. 11
      Assets/Scripts/Gameplay/Chest.cs
  9. 4
      Assets/Scripts/PlayerController.cs
  10. 8
      UserSettings/EditorUserSettings.asset
  11. 15
      Assets/Scripts/DustParticles.cs
  12. 11
      Assets/Scripts/DustParticles.cs.meta

45
Assets/Animation/Chest_Anim_Open.anim


m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_Enabled
path: Point Light
classID: 108
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0

attribute: 3
script: {fileID: 0}
typeID: 4
customType: 0
isPPtrCurve: 0
- serializedVersion: 2
path: 1963377571
attribute: 3305885265
script: {fileID: 0}
typeID: 108
customType: 0
isPPtrCurve: 0
- serializedVersion: 2

attribute: localEulerAnglesRaw.z
path: Chest_Art/Chest_top
classID: 4
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 103
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_Enabled
path: Point Light
classID: 108
script: {fileID: 0}
- curve:
serializedVersion: 2

17
Assets/Models/Dino.fbx.meta


mirror: 0
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
curves: []
events: []
events:
- time: 0.66809475
functionName: PlayParticles
data:
objectReferenceParameter: {instanceID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0
transformMask: []
maskType: 3
maskSource: {instanceID: 0}

addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
importVisibility: 0
importBlendShapes: 0
importCameras: 0
importLights: 0
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0

19
Assets/Models/Gameplay Elements/Chest.fbx.meta


fileFormatVersion: 2
guid: 2cae7626c2bf8dc40b8dd84baea99167
ModelImporter:
serializedVersion: 19301
serializedVersion: 20200
internalIDToNameTable: []
externalObjects:
- first:

meshes:
lODScreenPercentages: []
globalScale: 0.7
meshCompression: 0
meshCompression: 2
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
importVisibility: 0
importBlendShapes: 0
importCameras: 0
importLights: 0
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0

bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4

secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:

armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 0.0069999998
globalScale: 0.7
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0

animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 0
additionalBone: 0
userData:
assetBundleName:

9
Assets/Prefabs/Chest.prefab


m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5116346864126037608}
serializedVersion: 7
lengthInSec: 2
lengthInSec: 1
simulationSpeed: 1
stopAction: 0
cullingMode: 0

startDelay:
serializedVersion: 2
minMaxState: 0
scalar: 0.5
scalar: 0
minScalar: 0
maxCurve:
serializedVersion: 2

serializedVersion: 2
minMaxState: 3
scalar: 0.5
minScalar: 2
minScalar: 1
maxCurve:
serializedVersion: 2
m_Curve:

m_Lightmapping: 4
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_BounceIntensity: 0
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}

m_Name:
m_EditorClassIdentifier:
m_ParticleSystem: {fileID: 5116346864126037614}
m_ParticlePlayDelayTime: 0.55
--- !u!1001 &5116346864751513382
PrefabInstance:
m_ObjectHideFlags: 0

4
Assets/Prefabs/GameplayCanvas.prefab


m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -29, y: -38.640137}
m_SizeDelta: {x: 185, y: 134}
m_AnchoredPosition: {x: -59, y: -45}
m_SizeDelta: {x: 150.2998, y: 108.8635}
m_Pivot: {x: 1, y: 1}
--- !u!222 &7702242263051669515
CanvasRenderer:

106
Assets/Prefabs/JumpParticles.prefab


- component: {fileID: 1848637902619463902}
- component: {fileID: 1848637902619463713}
- component: {fileID: 1848637902619463712}
- component: {fileID: 8583602134986185745}
m_Name: Jump_Particles
m_Name: JumpParticles
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0

m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1848637902619463715}
serializedVersion: 6
serializedVersion: 7
lengthInSec: 2
simulationSpeed: 1
stopAction: 0

m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
LifetimeByEmitterSpeedModule:
enabled: 0
m_Curve:
serializedVersion: 2
minMaxState: 1
scalar: 1
minScalar: 1
maxCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: -0.8
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0.2
inSlope: -0.8
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
minCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
m_Range: {x: 0, y: 1}
ForceModule:
enabled: 0
x:

range: {x: 0, y: 1}
CollisionModule:
enabled: 0
serializedVersion: 3
serializedVersion: 4
type: 0
collisionMode: 0
colliderForce: 0

plane0: {fileID: 0}
plane1: {fileID: 0}
plane2: {fileID: 0}
plane3: {fileID: 0}
plane4: {fileID: 0}
plane5: {fileID: 0}
m_Planes:
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
m_Dampen:
serializedVersion: 2
minMaxState: 0

interiorCollisions: 0
TriggerModule:
enabled: 0
collisionShape0: {fileID: 0}
collisionShape1: {fileID: 0}
collisionShape2: {fileID: 0}
collisionShape3: {fileID: 0}
collisionShape4: {fileID: 0}
collisionShape5: {fileID: 0}
serializedVersion: 2
colliderQueryMode: 0
primitives:
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
SubModule:
serializedVersion: 2
enabled: 0

m_LightProbeUsage: 0
m_ReflectionProbeUsage: 0
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:

m_EnableGPUInstancing: 1
m_ApplyActiveColorSpace: 1
m_AllowRoll: 0
m_FreeformStretching: 0
m_RotateWithStretchDirection: 1
m_VertexStreams: 00010304
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
m_Mesh1: {fileID: 0}

--- !u!114 &8583602134986185745
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1848637902619463715}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3da73fbe6d1911748aa71248eb0f8b82, type: 3}
m_Name:
m_EditorClassIdentifier:

335
Assets/Prefabs/Player.prefab


m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!114 &1529884499
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2054700875163822802}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3da73fbe6d1911748aa71248eb0f8b82, type: 3}
m_Name:
m_EditorClassIdentifier:
m_ParticleSystem: {fileID: 851981570792355814}
--- !u!1 &4494805130079759894
GameObject:
m_ObjectHideFlags: 0

serializedVersion: 6
m_Component:
- component: {fileID: 4494805130079759893}
- component: {fileID: 212567514}
- component: {fileID: 212567514}
- component: {fileID: 8083381679980500539}
m_Layer: 0
m_Name: Player

m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &212567514
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4494805130079759894}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9c684d12b3107504a9bb5142f4b14364, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HatAnchor: {fileID: 1946178409}
--- !u!136 &7316869891310652686
CapsuleCollider:
m_ObjectHideFlags: 0

m_Interpolate: 0
m_Constraints: 112
m_CollisionDetection: 0
--- !u!114 &212567514
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4494805130079759894}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9c684d12b3107504a9bb5142f4b14364, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HatAnchor: {fileID: 1946178409}
--- !u!114 &8083381679980500539
MonoBehaviour:
m_ObjectHideFlags: 0

propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7758165653037175527, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -0.0017545149
objectReference: {fileID: 0}
- target: {fileID: -7758165653037175527, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0.119197145
objectReference: {fileID: 0}
- target: {fileID: -7758165653037175527, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -12.548256
objectReference: {fileID: 0}
- target: {fileID: -7706489218599140721, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -0.0000028289323
objectReference: {fileID: 0}
- target: {fileID: -7706489218599140721, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 90.00005
objectReference: {fileID: 0}
- target: {fileID: -7706489218599140721, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 8.640967
objectReference: {fileID: 0}
- target: {fileID: -6270443632558275355, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0.000013184668
objectReference: {fileID: 0}
- target: {fileID: -6270443632558275355, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -179.99998
objectReference: {fileID: 0}
- target: {fileID: -6270443632558275355, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -43.780186
objectReference: {fileID: 0}
- target: {fileID: -6102495045734837000, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -64.30857
objectReference: {fileID: 0}
- target: {fileID: -6102495045734837000, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -152.5936
objectReference: {fileID: 0}
- target: {fileID: -6102495045734837000, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -24.689724
objectReference: {fileID: 0}
- target: {fileID: -5136063911026647195, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0.0000013280928
objectReference: {fileID: 0}
- target: {fileID: -5136063911026647195, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -0.000004648329
objectReference: {fileID: 0}
- target: {fileID: -5136063911026647195, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0.00000099607
objectReference: {fileID: 0}
- target: {fileID: -4774654942227451890, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -1.7745323
objectReference: {fileID: 0}
- target: {fileID: -4774654942227451890, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 113.93783
objectReference: {fileID: 0}
- target: {fileID: -4774654942227451890, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -7.249722
objectReference: {fileID: 0}
- target: {fileID: -4685106804549623822, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0.000025712741
objectReference: {fileID: 0}
- target: {fileID: -4685106804549623822, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -0.000029449056
objectReference: {fileID: 0}
- target: {fileID: -4685106804549623822, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -0.36942673
objectReference: {fileID: 0}
- target: {fileID: -3887185075125053422, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_DirtyAABB

propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 0}
- target: {fileID: -3189479072107341721, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -0.0039433166
objectReference: {fileID: 0}
- target: {fileID: -3189479072107341721, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0.007812783
objectReference: {fileID: 0}
- target: {fileID: -3189479072107341721, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 2.5128498
objectReference: {fileID: 0}
- target: {fileID: -2417555664777235568, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -64.30856
objectReference: {fileID: 0}
- target: {fileID: -2417555664777235568, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -27.406445
objectReference: {fileID: 0}
- target: {fileID: -2417555664777235568, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 24.68976
objectReference: {fileID: 0}
- target: {fileID: -1965600641076838331, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -0.0000026561847
objectReference: {fileID: 0}
- target: {fileID: -1965600641076838331, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -0.0000013280899
objectReference: {fileID: 0}
- target: {fileID: -1965600641076838331, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -0.00000033202258
objectReference: {fileID: 0}
- target: {fileID: -113740507542610940, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -0.000030687366
objectReference: {fileID: 0}
- target: {fileID: -113740507542610940, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0.0000970424
objectReference: {fileID: 0}
- target: {fileID: -113740507542610940, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0.000026703052
objectReference: {fileID: 0}
- target: {fileID: 388712734468583340, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0.000015250157
objectReference: {fileID: 0}
- target: {fileID: 388712734468583340, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -0.00001432131
objectReference: {fileID: 0}
- target: {fileID: 388712734468583340, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -5.490531
objectReference: {fileID: 0}
- target: {fileID: 2841387533839458389, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 68.15238
objectReference: {fileID: 0}
- target: {fileID: 2841387533839458389, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -167.98318
objectReference: {fileID: 0}
- target: {fileID: 2841387533839458389, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 95.84515
objectReference: {fileID: 0}
- target: {fileID: 3755914197744880270, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0.005257122
objectReference: {fileID: 0}
- target: {fileID: 3755914197744880270, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -45.66081
objectReference: {fileID: 0}
- target: {fileID: 3755914197744880270, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -12.627785
objectReference: {fileID: 0}
- target: {fileID: 4076586993409769109, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -2.9834404
objectReference: {fileID: 0}
- target: {fileID: 4076586993409769109, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -145.74142
objectReference: {fileID: 0}
- target: {fileID: 4076586993409769109, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 3.567155
objectReference: {fileID: 0}
- target: {fileID: 5570250042315399294, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0.000039467915
objectReference: {fileID: 0}
- target: {fileID: 5570250042315399294, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -0.000039385308
objectReference: {fileID: 0}
- target: {fileID: 5570250042315399294, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 49.96876
objectReference: {fileID: 0}
- target: {fileID: 6370269900010780030, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -2.9834604
objectReference: {fileID: 0}
- target: {fileID: 6370269900010780030, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 145.74142
objectReference: {fileID: 0}
- target: {fileID: 6370269900010780030, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -3.5671515
objectReference: {fileID: 0}
- target: {fileID: 7771924244085175256, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -85.67137
objectReference: {fileID: 0}
- target: {fileID: 7771924244085175256, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 94.9207
objectReference: {fileID: 0}
- target: {fileID: 7771924244085175256, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -117.60383
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 9f5858cf2c3ec59428254c8fff5e9130, type: 3}
--- !u!1 &2054700875163822802 stripped

m_Modification:
m_TransformParent: {fileID: 4494805130079759893}
m_Modifications:
- target: {fileID: 1848637902619463712, guid: 80c850b5834d25244b868178c027cd24,
type: 3}
propertyPath: m_Materials.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1848637902619463713, guid: 80c850b5834d25244b868178c027cd24,
type: 3}
propertyPath: looping
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1848637902619463713, guid: 80c850b5834d25244b868178c027cd24,
type: 3}
propertyPath: playOnAwake
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1848637902619463715, guid: 80c850b5834d25244b868178c027cd24,
type: 3}
propertyPath: m_Name

propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedComponents:
- {fileID: 8583602134986185745, guid: 80c850b5834d25244b868178c027cd24, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: 80c850b5834d25244b868178c027cd24, type: 3}
--- !u!4 &851981570792355609 stripped
Transform:

m_PrefabAsset: {fileID: 0}
--- !u!198 &851981570792355814 stripped
ParticleSystem:
m_CorrespondingSourceObject: {fileID: 1848637902619463713, guid: 80c850b5834d25244b868178c027cd24,
type: 3}
m_PrefabInstance: {fileID: 1330099940373112775}
m_PrefabAsset: {fileID: 0}

11
Assets/Scripts/Gameplay/Chest.cs


using System.Collections;
using UnityEngine;
[RequireComponent (typeof(Animator))]

[SerializeField]
private ParticleSystem m_ParticleSystem;
[SerializeField]
private float m_ParticlePlayDelayTime = 0.75f;
// Start is called before the first frame update
void Start()
{

{
// TODO: cache the string as a hash
m_Animator.SetTrigger("Open");
StartCoroutine(PlayParticles());
}
private IEnumerator PlayParticles()
{
yield return new WaitForSeconds(m_ParticlePlayDelayTime);
m_ParticleSystem.Play();
}

4
Assets/Scripts/PlayerController.cs


private void OnTriggerEnter(Collider other)
{
// Cache the string value
//TODO: Cache the string value
if (other.CompareTag("Chest"))
{
// TODO: Maybe cache the getcomponent read, although it is only read once

private IEnumerator LevelCompleted()
{
yield return new WaitForSeconds(1.75f);
yield return new WaitForSeconds(2.15f);
m_GameManager.LevelCompleted();
}

8
UserSettings/EditorUserSettings.asset


value: 22424703114646680e0b0227036c7315001214157c7968252320092a
flags: 0
RecentlyUsedScenePath-3:
value: 22424703114646680e0b0227036c7315001214157c7868252320092a
value: 22424703114646680e0b0227036c7315001214157c7b68252320092a
value: 22424703114646680e0b0227036c7315001214157c7b68252320092a
value: 22424703114646680e0b0227036c731f171311242b1b2535232c5326ece92021
value: 22424703114646680e0b0227036c731f171311242b1b2535232c5326ece92021
value: 22424703114646680e0b0227036c72111f19352f223d68252320092a
value: 22424703114646680e0b0227036c72111f19352f223d68252320092a
value: 22424703114646680e0b0227036c7315001214157c7868252320092a
flags: 0
vcSharedLogLevel:
value: 0d5e400f0650

15
Assets/Scripts/DustParticles.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DustParticles : MonoBehaviour
{
[SerializeField]
private ParticleSystem m_ParticleSystem;
public void PlayParticles()
{
m_ParticleSystem.Play();
}
}

11
Assets/Scripts/DustParticles.cs.meta


fileFormatVersion: 2
guid: 3da73fbe6d1911748aa71248eb0f8b82
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存