HH
4 年前
当前提交
fe569079
共有 28 个文件被更改,包括 2486 次插入 和 89 次删除
-
7Project/Assets/ML-Agents/Examples/FPS_Game/Input/FPSAgentInput.cs
-
2Project/Assets/ML-Agents/Examples/FPS_Game/Input/FPSPlayerInputActions.cs
-
2Project/Assets/ML-Agents/Examples/FPS_Game/Input/FPSPlayerInputActions.inputactions
-
13Project/Assets/ML-Agents/Examples/FPS_Game/Prefabs/Projectile.prefab
-
914Project/Assets/ML-Agents/Examples/FPS_Game/Scenes/FPS_Game.unity
-
21Project/Assets/ML-Agents/Examples/FPS_Game/Scripts/AgentCubeMovement.cs
-
53Project/Assets/ML-Agents/Examples/FPS_Game/Scripts/AgentHealth.cs
-
22Project/Assets/ML-Agents/Examples/FPS_Game/Scripts/FPSAgent.cs
-
16Project/Assets/ML-Agents/Examples/FPS_Game/Scripts/GunController.cs
-
45Project/Assets/ML-Agents/Examples/FPS_Game/Scripts/MultiGunAlternating.cs
-
13Project/Assets/ML-Agents/Examples/FPS_Game/Scripts/Projectile.cs
-
65Project/Assets/ML-Agents/Examples/FPS_Game/Scripts/ShieldController.cs
-
5Project/Assets/ML-Agents/Examples/SharedAssets/Materials/AgentBlue.mat
-
2Project/Assets/ML-Agents/Examples/SharedAssets/Materials/Outline.mat
-
25Project/Assets/ML-Agents/Examples/SharedAssets/Materials/Projectile.mat
-
7Project/ProjectSettings/DynamicsManager.asset
-
8Project/Assets/ML-Agents/Examples/FPS_Game/Materials.meta
-
1001Project/Assets/ML-Agents/Examples/FPS_Game/Prefabs/Gun Impact Particles.prefab
-
7Project/Assets/ML-Agents/Examples/FPS_Game/Prefabs/Gun Impact Particles.prefab.meta
-
39Project/Assets/ML-Agents/Examples/FPS_Game/Scripts/PoolGameObjects.cs
-
11Project/Assets/ML-Agents/Examples/FPS_Game/Scripts/PoolGameObjects.cs.meta
-
81Project/Assets/ML-Agents/Examples/PushBlock/Prefabs/MuzzleFlash.prefab
-
7Project/Assets/ML-Agents/Examples/PushBlock/Prefabs/MuzzleFlash.prefab.meta
-
82Project/Assets/ML-Agents/Examples/SharedAssets/Materials/MuzzleFlash.mat
-
8Project/Assets/ML-Agents/Examples/SharedAssets/Materials/MuzzleFlash.mat.meta
-
111Project/Assets/ML-Agents/Examples/FPS_Game/Materials/FIRE.mat
-
8Project/Assets/ML-Agents/Examples/FPS_Game/Materials/FIRE.mat.meta
914
Project/Assets/ML-Agents/Examples/FPS_Game/Scenes/FPS_Game.unity
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
fileFormatVersion: 2 |
|||
guid: 5025bff3f8cb14d32a64452f2c598992 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
1001
Project/Assets/ML-Agents/Examples/FPS_Game/Prefabs/Gun Impact Particles.prefab
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
fileFormatVersion: 2 |
|||
guid: 5bb51c5e67946445685930ba829b4825 |
|||
PrefabImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
public class PoolGameObjects : MonoBehaviour |
|||
{ |
|||
public int numberOfObjectsToPool; |
|||
public GameObject objectPrefab; |
|||
public bool setupComplete; |
|||
public List<GameObject> poolList; |
|||
public List<Rigidbody> rbList; |
|||
// public SphericalGravity sphericalGravity;
|
|||
// public bool addSphericalGravityForces = true;
|
|||
void Awake() |
|||
{ |
|||
// sphericalGravity = FindObjectOfType<SphericalGravity>();
|
|||
PoolObjects(); |
|||
} |
|||
public void PoolObjects() |
|||
{ |
|||
poolList = new List<GameObject>(numberOfObjectsToPool); |
|||
for (int i = 0; i < numberOfObjectsToPool; i++) |
|||
{ |
|||
GameObject obj = Instantiate(objectPrefab, transform.position, Quaternion.identity); //will be parent of rhythmNodes
|
|||
Rigidbody rb = obj.GetComponent<Rigidbody>(); |
|||
if (rb) |
|||
{ |
|||
rbList.Add(rb); |
|||
// if(sphericalGravity && addSphericalGravityForces)
|
|||
// {
|
|||
// sphericalGravity.rbList.Add(rb);
|
|||
// }
|
|||
} |
|||
obj.transform.SetParent(transform); //parent the GameObject
|
|||
obj.SetActive(false); |
|||
poolList.Add(obj); |
|||
} |
|||
setupComplete = true; |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 48632c61e1bc64fdd86c3404ec57c9b7 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!1 &1158006594261827975 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 6284117573631589716} |
|||
- component: {fileID: 8614778725364409748} |
|||
- component: {fileID: 8494615155775840143} |
|||
m_Layer: 0 |
|||
m_Name: MuzzleFlash |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &6284117573631589716 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1158006594261827975} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 10.674111, y: 1.229, z: -0.8473772} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!33 &8614778725364409748 |
|||
MeshFilter: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1158006594261827975} |
|||
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} |
|||
--- !u!23 &8494615155775840143 |
|||
MeshRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1158006594261827975} |
|||
m_Enabled: 1 |
|||
m_CastShadows: 0 |
|||
m_ReceiveShadows: 0 |
|||
m_DynamicOccludee: 1 |
|||
m_MotionVectors: 1 |
|||
m_LightProbeUsage: 0 |
|||
m_ReflectionProbeUsage: 0 |
|||
m_RayTracingMode: 2 |
|||
m_RenderingLayerMask: 1 |
|||
m_RendererPriority: 0 |
|||
m_Materials: |
|||
- {fileID: 2100000, guid: cb2aa8892bed247b58476624d7896b0f, type: 2} |
|||
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 |
|
|||
fileFormatVersion: 2 |
|||
guid: 1b24fe96fd75b4646a6e7bf65b6a4943 |
|||
PrefabImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!21 &2100000 |
|||
Material: |
|||
serializedVersion: 6 |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_Name: MuzzleFlash |
|||
m_Shader: {fileID: 4800000, guid: 5dfe02aa25125453eaaaa295936dc8cd, type: 3} |
|||
m_ShaderKeywords: |
|||
m_LightmapFlags: 4 |
|||
m_EnableInstancingVariants: 0 |
|||
m_DoubleSidedGI: 0 |
|||
m_CustomRenderQueue: -1 |
|||
stringTagMap: {} |
|||
disabledShaderPasses: [] |
|||
m_SavedProperties: |
|||
serializedVersion: 3 |
|||
m_TexEnvs: |
|||
- _BumpMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailAlbedoMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailMask: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailNormalMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _EmissionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MainTex: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MetallicGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _OcclusionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _ParallaxMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
m_Floats: |
|||
- _BumpScale: 1 |
|||
- _Cutoff: 0.5 |
|||
- _DetailNormalMapScale: 1 |
|||
- _DstBlend: 0 |
|||
- _GlossMapScale: 1 |
|||
- _Glossiness: 0.5 |
|||
- _GlossyReflections: 1 |
|||
- _Metallic: 0 |
|||
- _Mode: 0 |
|||
- _OcclusionStrength: 1 |
|||
- _OutlineVal: 0.08 |
|||
- _Parallax: 0.02 |
|||
- _SmoothnessTextureChannel: 0 |
|||
- _SpecularHighlights: 1 |
|||
- _SpeedX: 0 |
|||
- _SpeedY: 0 |
|||
- _SrcBlend: 1 |
|||
- _UVSec: 0 |
|||
- _ZWrite: 1 |
|||
- _Zoom: 1 |
|||
m_Colors: |
|||
- _Color: {r: 1, g: 1, b: 1, a: 1} |
|||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
|||
- _OutlineCol: {r: 1, g: 0, b: 0, a: 1} |
|
|||
fileFormatVersion: 2 |
|||
guid: 1c2c3ec7ad05944199ea9843e3aad378 |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 2100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!21 &2100000 |
|||
Material: |
|||
serializedVersion: 6 |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_Name: FIRE |
|||
m_Shader: {fileID: 211, guid: 0000000000000000f000000000000000, type: 0} |
|||
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON _COLORCOLOR_ON |
|||
m_LightmapFlags: 0 |
|||
m_EnableInstancingVariants: 0 |
|||
m_DoubleSidedGI: 0 |
|||
m_CustomRenderQueue: 3000 |
|||
stringTagMap: |
|||
RenderType: Transparent |
|||
disabledShaderPasses: |
|||
- SHADOWCASTER |
|||
- ALWAYS |
|||
m_SavedProperties: |
|||
serializedVersion: 3 |
|||
m_TexEnvs: |
|||
- _BaseMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _BumpMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _EmissionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MainTex: |
|||
m_Texture: {fileID: 10904, guid: 0000000000000000f000000000000000, type: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MetallicGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _OcclusionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _SpecGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
m_Floats: |
|||
- _AlphaClip: 0 |
|||
- _Blend: 0 |
|||
- _BlendOp: 0 |
|||
- _BumpScale: 1 |
|||
- _CameraFadingEnabled: 0 |
|||
- _CameraFarFadeDistance: 2 |
|||
- _CameraNearFadeDistance: 1 |
|||
- _ColorMode: 4 |
|||
- _Cull: 2 |
|||
- _Cutoff: 0.5 |
|||
- _DistortionBlend: 0.5 |
|||
- _DistortionEnabled: 0 |
|||
- _DistortionStrength: 1 |
|||
- _DistortionStrengthScaled: 0 |
|||
- _DstBlend: 10 |
|||
- _EmissionEnabled: 0 |
|||
- _EnvironmentReflections: 1 |
|||
- _FlipbookMode: 0 |
|||
- _GlossMapScale: 0 |
|||
- _Glossiness: 0 |
|||
- _GlossyReflections: 0 |
|||
- _LightingEnabled: 0 |
|||
- _Metallic: 0 |
|||
- _Mode: 3 |
|||
- _OcclusionStrength: 1 |
|||
- _QueueOffset: 0 |
|||
- _ReceiveShadows: 1 |
|||
- _Smoothness: 0.5 |
|||
- _SmoothnessTextureChannel: 0 |
|||
- _SoftParticlesEnabled: 0 |
|||
- _SoftParticlesFarFadeDistance: 1 |
|||
- _SoftParticlesNearFadeDistance: 0 |
|||
- _SpecularHighlights: 1 |
|||
- _SrcBlend: 1 |
|||
- _Surface: 1 |
|||
- _WorkflowMode: 1 |
|||
- _ZWrite: 0 |
|||
m_Colors: |
|||
- _BaseColor: {r: 0.4811321, g: 0.4811321, b: 0.4811321, a: 0.54509807} |
|||
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0} |
|||
- _Color: {r: 1, g: 1, b: 1, a: 1} |
|||
- _ColorAddSubDiff: {r: -1, g: 1, b: 0, a: 0} |
|||
- _EmissionColor: {r: 1, g: 0.7528021, b: 0.495283, a: 1} |
|||
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} |
|||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} |
|||
--- !u!114 &6776054413064631746 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 11 |
|||
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: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
version: 2 |
|
|||
fileFormatVersion: 2 |
|||
guid: 45872766fec2e495594bfad5d947367c |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 2100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue