浏览代码

Integrated dust particles

/main
Ciro Continisio 4 年前
当前提交
3e2ad7f2
共有 38 个文件被更改,包括 601 次插入11 次删除
  1. 357
      UOP1_Project/Assets/Prefabs/Characters/PigChef.prefab
  2. 1
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/States/JumpAscending.asset
  3. 1
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/States/JumpDescending.asset
  4. 1
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/States/Walking.asset
  5. 3
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/Editor/AnimatorParameterActionSOEditor.cs
  6. 6
      UOP1_Project/Assets/Art/Effects/DustParticles/PuffOfDust.fbx.meta
  7. 10
      UOP1_Project/Assets/Art/Effects/DustParticles/PuffOfDust.mat
  8. 8
      UOP1_Project/Assets/Art/Effects/DustParticles.meta
  9. 8
      UOP1_Project/Assets/Prefabs/Effects.meta
  10. 14
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/ControlWalkingParticles.asset
  11. 8
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/ControlWalkingParticles.asset.meta
  12. 14
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/PlayJumpParticles.asset
  13. 8
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/PlayJumpParticles.asset.meta
  14. 14
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/PlayLandParticles.asset
  15. 8
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/PlayLandParticles.asset.meta
  16. 33
      UOP1_Project/Assets/Scripts/Characters/DustParticlesController.cs
  17. 29
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/ControlWalkingParticlesActionSO.cs
  18. 11
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/ControlWalkingParticlesActionSO.cs.meta
  19. 24
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/PlayJumpParticlesActionSO.cs
  20. 11
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/PlayJumpParticlesActionSO.cs.meta
  21. 24
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/PlayLandParticlesActionSO.cs
  22. 11
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/PlayLandParticlesActionSO.cs.meta
  23. 8
      UOP1_Project/Assets/Prefabs/Effects/DustParticles.meta
  24. 0
      /UOP1_Project/Assets/Scripts/Characters/DustParticlesController.cs.meta
  25. 0
      /UOP1_Project/Assets/Prefabs/Effects/DustParticles/WalkingParticle.prefab
  26. 0
      /UOP1_Project/Assets/Prefabs/Effects/DustParticles/WalkingParticle.prefab.meta
  27. 0
      /UOP1_Project/Assets/Prefabs/Effects/DustParticles/JumpParticle.prefab
  28. 0
      /UOP1_Project/Assets/Prefabs/Effects/DustParticles/JumpParticle.prefab.meta
  29. 0
      /UOP1_Project/Assets/Prefabs/Effects/DustParticles/LandingParticle.prefab
  30. 0
      /UOP1_Project/Assets/Prefabs/Effects/DustParticles/LandingParticle.prefab.meta
  31. 0
      /UOP1_Project/Assets/Art/Effects/DustParticles/PuffOfDust.mat.meta
  32. 0
      /UOP1_Project/Assets/Art/Effects/DustParticles/PuffOfDust.fbx
  33. 0
      /UOP1_Project/Assets/Art/Effects/DustParticles/PuffOfDust.fbx.meta
  34. 0
      /UOP1_Project/Assets/Art/Effects/DustParticles/PuffOfDust.mat

357
UOP1_Project/Assets/Prefabs/Characters/PigChef.prefab


extraActionInput: 0
movementInput: {x: 0, y: 0, z: 0}
movementVector: {x: 0, y: 0, z: 0}
--- !u!114 &9165201357015476168
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 309633228405838073}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 80c5557fa8b49a64cbad5297c09f21f1, type: 3}
m_Name:
m_EditorClassIdentifier:
_walkingParticles: {fileID: 4559447277278735044}
_landParticles: {fileID: 334012115255375375}
_jumpParticles: {fileID: 4839788363397376542}
--- !u!1 &8577975502853322496
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2229996005663935112}
m_Layer: 0
m_Name: DustParticles
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2229996005663935112
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8577975502853322496}
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:
- {fileID: 8517470450379016030}
- {fileID: 3583992150622067535}
- {fileID: 5607242278399728533}
m_Father: {fileID: 1083073290189785667}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &616254372594363816
PrefabInstance:
m_ObjectHideFlags: 0

type: 3}
m_PrefabInstance: {fileID: 616254372594363816}
m_PrefabAsset: {fileID: 0}
--- !u!4 &1083073290189785667 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: c478a391cfbc4b74ebda3f9a57283705,
type: 3}
m_PrefabInstance: {fileID: 616254372594363816}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &2293294246731547253
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2229996005663935112}
m_Modifications:
- target: {fileID: 1331107967620109782, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
propertyPath: m_Name
value: JumpParticle
objectReference: {fileID: 0}
- target: {fileID: 3346050453518178618, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3346050453518178618, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
propertyPath: m_LocalPosition.y
value: 0.115
objectReference: {fileID: 0}
- target: {fileID: 3346050453518178618, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3346050453518178618, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: 3346050453518178618, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
propertyPath: m_LocalRotation.y
value: 0.000000007450579
objectReference: {fileID: 0}
- target: {fileID: 3346050453518178618, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
propertyPath: m_LocalRotation.z
value: 0.000000007450579
objectReference: {fileID: 0}
- target: {fileID: 3346050453518178618, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.7071068
objectReference: {fileID: 0}
- target: {fileID: 3346050453518178618, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3346050453518178618, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -90.00001
objectReference: {fileID: 0}
- target: {fileID: 3346050453518178618, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3346050453518178618, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 5bf7aeff6af6cad4ba9c19219c9841db, type: 3}
--- !u!4 &3583992150622067535 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 3346050453518178618, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
m_PrefabInstance: {fileID: 2293294246731547253}
m_PrefabAsset: {fileID: 0}
--- !u!198 &4839788363397376542 stripped
ParticleSystem:
m_CorrespondingSourceObject: {fileID: 6699398188219967595, guid: 5bf7aeff6af6cad4ba9c19219c9841db,
type: 3}
m_PrefabInstance: {fileID: 2293294246731547253}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &5431934865371800706
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2229996005663935112}
m_Modifications:
- target: {fileID: 482719544232312599, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 482719544232312599, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: m_LocalPosition.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 482719544232312599, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: m_LocalPosition.z
value: -0.188
objectReference: {fileID: 0}
- target: {fileID: 482719544232312599, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: 482719544232312599, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: m_LocalRotation.y
value: 0.000000007450579
objectReference: {fileID: 0}
- target: {fileID: 482719544232312599, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: m_LocalRotation.z
value: 0.000000007450579
objectReference: {fileID: 0}
- target: {fileID: 482719544232312599, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.7071068
objectReference: {fileID: 0}
- target: {fileID: 482719544232312599, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 482719544232312599, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -90.00001
objectReference: {fileID: 0}
- target: {fileID: 482719544232312599, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 482719544232312599, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4225628047528096763, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: m_Name
value: WalkingParticle
objectReference: {fileID: 0}
- target: {fileID: 8368940308521127494, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: InitialModule.startSize.scalar
value: 0.07
objectReference: {fileID: 0}
- target: {fileID: 8368940308521127494, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: InitialModule.startSize.minScalar
value: 0.02
objectReference: {fileID: 0}
- target: {fileID: 8368940308521127494, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: InitialModule.gravityModifier.scalar
value: -0.2
objectReference: {fileID: 0}
- target: {fileID: 8368940308521127494, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: ShapeModule.type
value: 12
objectReference: {fileID: 0}
- target: {fileID: 8368940308521127494, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: ShapeModule.radius.value
value: 0.14
objectReference: {fileID: 0}
- target: {fileID: 8368940308521127494, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: EmissionModule.rateOverTime.minMaxState
value: 3
objectReference: {fileID: 0}
- target: {fileID: 8368940308521127494, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: EmissionModule.rateOverTime.minScalar
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8368940308521127494, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: EmissionModule.rateOverDistance.minMaxState
value: 3
objectReference: {fileID: 0}
- target: {fileID: 8368940308521127494, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: EmissionModule.m_Bursts.Array.data[0].cycleCount
value: 3
objectReference: {fileID: 0}
- target: {fileID: 8368940308521127494, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: EmissionModule.m_Bursts.Array.data[0].repeatInterval
value: 0.1
objectReference: {fileID: 0}
- target: {fileID: 8368940308521127494, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: EmissionModule.m_Bursts.Array.data[0].probability
value: 0.7
objectReference: {fileID: 0}
- target: {fileID: 8368940308521127494, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
propertyPath: ShapeModule.radiusThickness
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: f8a6e96eef53e5a4686f9a85a72fe73b, type: 3}
--- !u!4 &5607242278399728533 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 482719544232312599, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
m_PrefabInstance: {fileID: 5431934865371800706}
m_PrefabAsset: {fileID: 0}
--- !u!198 &4559447277278735044 stripped
ParticleSystem:
m_CorrespondingSourceObject: {fileID: 8368940308521127494, guid: f8a6e96eef53e5a4686f9a85a72fe73b,
type: 3}
m_PrefabInstance: {fileID: 5431934865371800706}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &8181670996397994228
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2229996005663935112}
m_Modifications:
- target: {fileID: 558165235346798506, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 558165235346798506, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
propertyPath: m_LocalPosition.y
value: 0.18
objectReference: {fileID: 0}
- target: {fileID: 558165235346798506, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 558165235346798506, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: 558165235346798506, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
propertyPath: m_LocalRotation.y
value: 0.000000007450579
objectReference: {fileID: 0}
- target: {fileID: 558165235346798506, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
propertyPath: m_LocalRotation.z
value: 0.000000007450579
objectReference: {fileID: 0}
- target: {fileID: 558165235346798506, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.7071068
objectReference: {fileID: 0}
- target: {fileID: 558165235346798506, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 558165235346798506, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -90
objectReference: {fileID: 0}
- target: {fileID: 558165235346798506, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 558165235346798506, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4299113413002230598, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
propertyPath: m_Name
value: LandingParticle
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9, type: 3}
--- !u!4 &8517470450379016030 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 558165235346798506, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
m_PrefabInstance: {fileID: 8181670996397994228}
m_PrefabAsset: {fileID: 0}
--- !u!198 &334012115255375375 stripped
ParticleSystem:
m_CorrespondingSourceObject: {fileID: 8442424470799517435, guid: 2a17d00f8cddbf44ea0f55e00cbc97e9,
type: 3}
m_PrefabInstance: {fileID: 8181670996397994228}
m_PrefabAsset: {fileID: 0}

1
UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/States/JumpAscending.asset


m_Name: JumpAscending
m_EditorClassIdentifier:
_actions:
- {fileID: 11400000, guid: 4984500e131bbe34594c4ab0e2c409f3, type: 2}
- {fileID: 11400000, guid: 00abdcc5c2b7e3d4d8855f1a84801fae, type: 2}
- {fileID: 11400000, guid: f1f9b67c2b957d74dae6555b3598ae49, type: 2}
- {fileID: 11400000, guid: 5d9c1bbe4ffcb2146a540998d17b665d, type: 2}

1
UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/States/JumpDescending.asset


- {fileID: 11400000, guid: 47d9da417e68970419335f80f4395239, type: 2}
- {fileID: 11400000, guid: 096d532f9a47f3145892efa1c4322e72, type: 2}
- {fileID: 11400000, guid: 99b804881a9d5744fb4784c30000c0b5, type: 2}
- {fileID: 11400000, guid: 49dad5a4b1fa43844ab26a848b9bcc18, type: 2}

1
UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/States/Walking.asset


- {fileID: 11400000, guid: bd85c54d16eb60c4c99504f1679af851, type: 2}
- {fileID: 11400000, guid: 47d9da417e68970419335f80f4395239, type: 2}
- {fileID: 11400000, guid: 096d532f9a47f3145892efa1c4322e72, type: 2}
- {fileID: 11400000, guid: fa0ce5b895dcf17499819f0d6f2dce96, type: 2}

3
UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/Editor/AnimatorParameterActionSOEditor.cs


[CustomEditor(typeof(AnimatorParameterActionSO)), CanEditMultipleObjects]
public class AnimatorParameterActionSOEditor : UnityEditor.Editor
{
private bool _boolValue = default;
public override void OnInspectorGUI()
{
serializedObject.Update();

6
UOP1_Project/Assets/Art/Effects/DustParticles/PuffOfDust.fbx.meta


globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
useSRGBMaterialColor: 0
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1

blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []

skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0

10
UOP1_Project/Assets/Art/Effects/DustParticles/PuffOfDust.mat


m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: PuffofDustParticlesMaterial
m_Name: PuffOfDust
m_Shader: {fileID: -6465566751694194690, guid: bf36778a400a0894b86a1f49c422fa62,
type: 3}
m_ShaderKeywords:

- _LightProbeContribution: 3.5
- _Metallic: 0
- _OcclusionStrength: 1
- _OutlineDepthSensitivity: 0.544
- _OutlineNormalsSensitivity: 1
- _OutlineThickness: 0.1
- _OutlineDepthSensitivity: 0
- _OutlineNormalsSensitivity: 0
- _OutlineThickness: 0
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5

- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _MainColor: {r: 1, g: 1, b: 1, a: 1}
- _MainColor: {r: 0.9137255, g: 0.92141336, b: 0.92141336, a: 1}
- _Offset: {r: 0, g: 0, b: 0, a: 0}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 0}

8
UOP1_Project/Assets/Art/Effects/DustParticles.meta


fileFormatVersion: 2
guid: 7961f9f38581fb8448e2042278b96e37
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
UOP1_Project/Assets/Prefabs/Effects.meta


fileFormatVersion: 2
guid: 6a7dffa2320169441a1eae8e15a3850e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

14
UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/ControlWalkingParticles.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c8cf89d331a39374f87e1448b75a3295, type: 3}
m_Name: ControlWalkingParticles
m_EditorClassIdentifier:

8
UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/ControlWalkingParticles.asset.meta


fileFormatVersion: 2
guid: fa0ce5b895dcf17499819f0d6f2dce96
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

14
UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/PlayJumpParticles.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0d4626beca74e2c43b7101165ecf3d06, type: 3}
m_Name: PlayJumpParticles
m_EditorClassIdentifier:

8
UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/PlayJumpParticles.asset.meta


fileFormatVersion: 2
guid: 4984500e131bbe34594c4ab0e2c409f3
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

14
UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/PlayLandParticles.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8115780fbfa20004092e7e8aec2078d7, type: 3}
m_Name: PlayLandParticles
m_EditorClassIdentifier:

8
UOP1_Project/Assets/ScriptableObjects/StateMachine/Protagonist/Actions/PlayLandParticles.asset.meta


fileFormatVersion: 2
guid: 49dad5a4b1fa43844ab26a848b9bcc18
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

33
UOP1_Project/Assets/Scripts/Characters/DustParticlesController.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UOP1.StateMachine;
/// <summary>
/// Controls playback of particles connected to movement. Methods invoked by the StateMachine StateActions
/// </summary>
public class DustParticlesController : MonoBehaviour
{
[SerializeField] ParticleSystem _walkingParticles = default;
[SerializeField] ParticleSystem _landParticles = default;
[SerializeField] ParticleSystem _jumpParticles = default;
public void EnableWalkParticles()
{
_walkingParticles.Play();
}
public void DisableWalkParticles()
{
_walkingParticles.Stop();
}
public void PlayJumpParticles()
{
_jumpParticles.Play();
}
public void PlayLandParticles()
{
_landParticles.Play();
}
}

29
UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/ControlWalkingParticlesActionSO.cs


using UnityEngine;
using UOP1.StateMachine;
using UOP1.StateMachine.ScriptableObjects;
[CreateAssetMenu(fileName = "ControlWalkingParticlesAction", menuName = "State Machines/Actions/Control Walking Particles")]
public class ControlWalkingParticlesActionSO : StateActionSO<ControlWalkingParticlesAction> { }
public class ControlWalkingParticlesAction : StateAction
{
//Component references
private DustParticlesController _dustController;
public override void Awake(StateMachine stateMachine)
{
_dustController = stateMachine.GetComponent<DustParticlesController>();
}
public override void OnStateEnter()
{
_dustController.EnableWalkParticles();
}
public override void OnStateExit()
{
_dustController.DisableWalkParticles();
}
public override void OnUpdate() { }
}

11
UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/ControlWalkingParticlesActionSO.cs.meta


fileFormatVersion: 2
guid: c8cf89d331a39374f87e1448b75a3295
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

24
UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/PlayJumpParticlesActionSO.cs


using UnityEngine;
using UOP1.StateMachine;
using UOP1.StateMachine.ScriptableObjects;
[CreateAssetMenu(menuName = "State Machines/Actions/Play Jump Particles")]
public class PlayJumpParticlesActionSO : StateActionSO<PlayJumpParticlesAction> { }
public class PlayJumpParticlesAction : StateAction
{
//Component references
private DustParticlesController _dustController;
public override void Awake(StateMachine stateMachine)
{
_dustController = stateMachine.GetComponent<DustParticlesController>();
}
public override void OnStateEnter()
{
_dustController.PlayJumpParticles();
}
public override void OnUpdate() { }
}

11
UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/PlayJumpParticlesActionSO.cs.meta


fileFormatVersion: 2
guid: 0d4626beca74e2c43b7101165ecf3d06
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

24
UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/PlayLandParticlesActionSO.cs


using UnityEngine;
using UOP1.StateMachine;
using UOP1.StateMachine.ScriptableObjects;
[CreateAssetMenu(menuName = "State Machines/Actions/Play Land Particles")]
public class PlayLandParticlesActionSO : StateActionSO<PlayLandParticlesAction> { }
public class PlayLandParticlesAction : StateAction
{
//Component references
private DustParticlesController _dustController;
public override void Awake(StateMachine stateMachine)
{
_dustController = stateMachine.GetComponent<DustParticlesController>();
}
public override void OnStateExit()
{
_dustController.PlayLandParticles();
}
public override void OnUpdate() { }
}

11
UOP1_Project/Assets/Scripts/Characters/StateMachine/Actions/PlayLandParticlesActionSO.cs.meta


fileFormatVersion: 2
guid: 8115780fbfa20004092e7e8aec2078d7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

8
UOP1_Project/Assets/Prefabs/Effects/DustParticles.meta


fileFormatVersion: 2
guid: b557494c08e62484d8da05ea8d0b71e3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

/UOP1_Project/Assets/ErizzoalbuquerqueStuff/TempPigParticlesController.cs.meta → /UOP1_Project/Assets/Scripts/Characters/DustParticlesController.cs.meta

/UOP1_Project/Assets/ErizzoalbuquerqueStuff/WalkingParticle.prefab → /UOP1_Project/Assets/Prefabs/Effects/DustParticles/WalkingParticle.prefab

/UOP1_Project/Assets/ErizzoalbuquerqueStuff/WalkingParticle.prefab.meta → /UOP1_Project/Assets/Prefabs/Effects/DustParticles/WalkingParticle.prefab.meta

/UOP1_Project/Assets/ErizzoalbuquerqueStuff/JumpParticle.prefab → /UOP1_Project/Assets/Prefabs/Effects/DustParticles/JumpParticle.prefab

/UOP1_Project/Assets/ErizzoalbuquerqueStuff/JumpParticle.prefab.meta → /UOP1_Project/Assets/Prefabs/Effects/DustParticles/JumpParticle.prefab.meta

/UOP1_Project/Assets/ErizzoalbuquerqueStuff/LandingParticle.prefab → /UOP1_Project/Assets/Prefabs/Effects/DustParticles/LandingParticle.prefab

/UOP1_Project/Assets/ErizzoalbuquerqueStuff/LandingParticle.prefab.meta → /UOP1_Project/Assets/Prefabs/Effects/DustParticles/LandingParticle.prefab.meta

/UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDustParticlesMaterial.mat.meta → /UOP1_Project/Assets/Art/Effects/DustParticles/PuffOfDust.mat.meta

/UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDust.fbx → /UOP1_Project/Assets/Art/Effects/DustParticles/PuffOfDust.fbx

/UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDust.fbx.meta → /UOP1_Project/Assets/Art/Effects/DustParticles/PuffOfDust.fbx.meta

/UOP1_Project/Assets/ErizzoalbuquerqueStuff/PuffofDustParticlesMaterial.mat → /UOP1_Project/Assets/Art/Effects/DustParticles/PuffOfDust.mat

正在加载...
取消
保存