浏览代码

updated particle color and gun behavior

/hh-develop-water-balloon-fight
HH 4 年前
当前提交
f1c82850
共有 5 个文件被更改,包括 722 次插入222 次删除
  1. 10
      Project/Assets/ML-Agents/Examples/FPS_Game/Prefabs/Gun Impact Particles.prefab
  2. 198
      Project/Assets/ML-Agents/Examples/FPS_Game/Scenes/FPS_Game.unity
  3. 2
      Project/Assets/ML-Agents/Examples/FPS_Game/Scripts/GunController.cs
  4. 2
      Project/Assets/ML-Agents/Examples/SharedAssets/Materials/Projectile.mat
  5. 732
      Project/Assets/Particle Examples/EffectExamples/Water Effects/Prefabs/BigSplash.prefab

10
Project/Assets/ML-Agents/Examples/FPS_Game/Prefabs/Gun Impact Particles.prefab


m_RotationOrder: 4
startColor:
serializedVersion: 2
minMaxState: 2
minColor: {r: 1, g: 1, b: 1, a: 1}
maxColor: {r: 1, g: 0.91147983, b: 0, a: 1}
minMaxState: 0
minColor: {r: 0, g: 0.83448315, b: 1, a: 0.303}
maxColor: {r: 0.58746636, g: 0.71687025, b: 0.78431374, a: 1}
key0: {r: 1, g: 1, b: 1, a: 1}
key1: {r: 1, g: 1, b: 1, a: 1}
key0: {r: 0.74884, g: 0.7540278, b: 0.965, a: 1}
key1: {r: 1, g: 0.727, b: 0.8115575, a: 1}
key2: {r: 0, g: 0, b: 0, a: 0}
key3: {r: 0, g: 0, b: 0, a: 0}
key4: {r: 0, g: 0, b: 0, a: 0}

198
Project/Assets/ML-Agents/Examples/FPS_Game/Scenes/FPS_Game.unity


m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 168335418}
m_CullTransparentMesh: 0
--- !u!1 &186704590
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 186704591}
- component: {fileID: 186704593}
- component: {fileID: 186704592}
m_Layer: 11
m_Name: Cube
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &186704591
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 186704590}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0.014, z: -0.418}
m_LocalScale: {x: 0.58029246, y: 0.4155525, z: 0.55725}
m_Children: []
m_Father: {fileID: 1479187681323959701}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!23 &186704592
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 186704590}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10303, 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_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!33 &186704593
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 186704590}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1001 &193531851
PrefabInstance:
m_ObjectHideFlags: 0

propertyPath: UISlider
value:
objectReference: {fileID: 459618382}
- target: {fileID: 2568648706638207415, guid: 6a2f6d60e715b493dad52cc5c9fd1e71,
type: 3}
propertyPath: ExplosionParticles
value:
objectReference: {fileID: 1722726733478836, guid: c1c88308ebb5d2541a282905b854ee4c,
type: 3}
- target: {fileID: 3775793887401821298, guid: 6a2f6d60e715b493dad52cc5c9fd1e71,
type: 3}
propertyPath: cam

type: 3}
propertyPath: m_Name
value: Projectile
objectReference: {fileID: 0}
- target: {fileID: 3911029810215854908, guid: 01e75f85d5a3c451b9a5bed7070be0a0,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 01e75f85d5a3c451b9a5bed7070be0a0, type: 3}

objectReference: {fileID: 0}
- target: {fileID: 1828481692, guid: a0e7db83e097b4a3e96a89b390d1ebed, type: 3}
propertyPath: m_LocalRotation.x
value: 0.04971524
value: 0.04971522
value: -0.0000000015411582
value: 0.0000000037206842
value: 7.671392e-11
value: -1.8520366e-10
objectReference: {fileID: 0}
- target: {fileID: 1828481692, guid: a0e7db83e097b4a3e96a89b390d1ebed, type: 3}
propertyPath: m_LocalRotation.w

propertyPath: UISlider
value:
objectReference: {fileID: 1732295774}
- target: {fileID: 1376546389932612024, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: shootingRate
value: 0.1
objectReference: {fileID: 0}
- target: {fileID: 2747490485226133338, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: forceToUse
value: 20
objectReference: {fileID: 0}
- target: {fileID: 2747490485226133339, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_LocalRotation.y
value: -0.012779308
objectReference: {fileID: 0}
- target: {fileID: 2747490485226133339, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -1.5
objectReference: {fileID: 0}
- target: {fileID: 2747490485226133339, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.21642098
objectReference: {fileID: 0}
- target: {fileID: 2747490485226133339, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_LocalRotation.z
value: -0.0028331028
objectReference: {fileID: 0}
- target: {fileID: 2747490485226133339, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.97621244
objectReference: {fileID: 0}
- target: {fileID: 2747490485226133339, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -25
objectReference: {fileID: 0}
- target: {fileID: 2747490485226133412, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_ImpulseDefinition.m_AmplitudeGain
value: 0.25
objectReference: {fileID: 0}
- target: {fileID: 2747490485226133412, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_ImpulseDefinition.m_FrequencyGain
value: 0.25
objectReference: {fileID: 0}
- target: {fileID: 2747490485406847266, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: forceToUse
value: 20
objectReference: {fileID: 0}
- target: {fileID: 2747490485406847267, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.21642098
objectReference: {fileID: 0}
- target: {fileID: 2747490485406847267, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_LocalRotation.y
value: -0.012779308
objectReference: {fileID: 0}
- target: {fileID: 2747490485406847267, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_LocalRotation.z
value: -0.0028331028
objectReference: {fileID: 0}
- target: {fileID: 2747490485406847267, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.97621244
objectReference: {fileID: 0}
- target: {fileID: 2747490485406847267, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -25
objectReference: {fileID: 0}
- target: {fileID: 2747490485406847276, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_ImpulseDefinition.m_AmplitudeGain
value: 0.25
objectReference: {fileID: 0}
- target: {fileID: 2747490485406847276, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_ImpulseDefinition.m_FrequencyGain
value: 0.25
objectReference: {fileID: 0}
- target: {fileID: 4453630946124038627, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_ActionEvents.Array.data[6].m_PersistentCalls.m_Calls.Array.data[0].m_Target

- target: {fileID: 8227337537847974460, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: m_LocalRotation.x
value: 0.04971524
value: 0.04971522
value: -0.0000000015411582
value: 0.0000000037206842
value: 7.671392e-11
value: -1.8520366e-10
objectReference: {fileID: 0}
- target: {fileID: 8227337537847974460, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}

propertyPath: UISlider
value:
objectReference: {fileID: 459618382}
- target: {fileID: 8931083779362434129, guid: a0e7db83e097b4a3e96a89b390d1ebed,
type: 3}
propertyPath: ExplosionParticles
value:
objectReference: {fileID: 1722726733478836, guid: c1c88308ebb5d2541a282905b854ee4c,
type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: a0e7db83e097b4a3e96a89b390d1ebed, type: 3}
--- !u!23 &8697938321178617620

2
Project/Assets/ML-Agents/Examples/FPS_Game/Scripts/GunController.cs


public void Shoot()
{
if (coolDownWait)
if (coolDownWait || !gameObject.activeSelf)
{
return;
}

2
Project/Assets/ML-Agents/Examples/SharedAssets/Materials/Projectile.mat


- _ZWrite: 0
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 1, g: 0.53792727, b: 0, a: 1}
- _EmissionColor: {r: 0, g: 0.51824737, b: 1, a: 1}

732
Project/Assets/Particle Examples/EffectExamples/Water Effects/Prefabs/BigSplash.prefab
文件差异内容过多而无法显示
查看文件

正在加载...
取消
保存