Compare commits
4 commits
dd4b0120f6
...
00f0288f06
Author | SHA1 | Date | |
---|---|---|---|
00f0288f06 | |||
![]() |
26bd6d49e7 | ||
![]() |
efdcacb822 | ||
![]() |
c2350c0912 |
36 changed files with 10611 additions and 550 deletions
BIN
Modelling/Sources/Maya/scenes/ModularAssets.ma
(Stored with Git LFS)
BIN
Modelling/Sources/Maya/scenes/ModularAssets.ma
(Stored with Git LFS)
Binary file not shown.
8
RunningLateGame/.idea/.idea.RunningLateGame/.idea/indexLayout.xml
generated
Normal file
8
RunningLateGame/.idea/.idea.RunningLateGame/.idea/indexLayout.xml
generated
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="UserContentModel">
|
||||||
|
<attachedFolders />
|
||||||
|
<explicitIncludes />
|
||||||
|
<explicitExcludes />
|
||||||
|
</component>
|
||||||
|
</project>
|
6
RunningLateGame/.idea/.idea.RunningLateGame/.idea/inspectionProfiles/Project_Default.xml
generated
Normal file
6
RunningLateGame/.idea/.idea.RunningLateGame/.idea/inspectionProfiles/Project_Default.xml
generated
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<profile version="1.0">
|
||||||
|
<option name="myName" value="Project Default" />
|
||||||
|
<inspection_tool class="RequiredAttributes" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||||
|
</profile>
|
||||||
|
</component>
|
6
RunningLateGame/.idea/.idea.RunningLateGame/.idea/vcs.xml
generated
Normal file
6
RunningLateGame/.idea/.idea.RunningLateGame/.idea/vcs.xml
generated
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
2493
RunningLateGame/Assets/AI person.prefab
Normal file
2493
RunningLateGame/Assets/AI person.prefab
Normal file
File diff suppressed because it is too large
Load diff
7
RunningLateGame/Assets/AI person.prefab.meta
Normal file
7
RunningLateGame/Assets/AI person.prefab.meta
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f55479b6d0cc9124eb329d666245f480
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
RunningLateGame/Assets/Material.meta
Normal file
8
RunningLateGame/Assets/Material.meta
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: af31566b5077e6045848d15729793e85
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
137
RunningLateGame/Assets/Material/nothing.mat
Normal file
137
RunningLateGame/Assets/Material/nothing.mat
Normal file
|
@ -0,0 +1,137 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: nothing
|
||||||
|
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords:
|
||||||
|
- _ALPHAPREMULTIPLY_ON
|
||||||
|
- _SURFACE_TYPE_TRANSPARENT
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Transparent
|
||||||
|
disabledShaderPasses:
|
||||||
|
- DepthOnly
|
||||||
|
- SHADOWCASTER
|
||||||
|
m_LockedProperties:
|
||||||
|
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}
|
||||||
|
- _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}
|
||||||
|
- _SpecGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- unity_Lightmaps:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- unity_LightmapsInd:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- unity_ShadowMasks:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _AlphaClip: 0
|
||||||
|
- _AlphaToMask: 0
|
||||||
|
- _Blend: 0
|
||||||
|
- _BlendModePreserveSpecular: 1
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _ClearCoatMask: 0
|
||||||
|
- _ClearCoatSmoothness: 0
|
||||||
|
- _Cull: 2
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailAlbedoMapScale: 1
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 10
|
||||||
|
- _DstBlendAlpha: 10
|
||||||
|
- _EnvironmentReflections: 1
|
||||||
|
- _GlossMapScale: 0
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 0
|
||||||
|
- _Metallic: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.005
|
||||||
|
- _QueueOffset: 0
|
||||||
|
- _ReceiveShadows: 1
|
||||||
|
- _Smoothness: 0
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _SrcBlendAlpha: 1
|
||||||
|
- _Surface: 1
|
||||||
|
- _WorkflowMode: 1
|
||||||
|
- _ZWrite: 0
|
||||||
|
m_Colors:
|
||||||
|
- _BaseColor: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _Color: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
|
--- !u!114 &8248635986458825645
|
||||||
|
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: 7
|
8
RunningLateGame/Assets/Material/nothing.mat.meta
Normal file
8
RunningLateGame/Assets/Material/nothing.mat.meta
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c8307bc3f06474c428efb0638b4ee7d4
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
RunningLateGame/Assets/Prefabs.meta
Normal file
8
RunningLateGame/Assets/Prefabs.meta
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0f49cc654746fa64f8b4cecb44783d74
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
2493
RunningLateGame/Assets/Prefabs/AI person.prefab
Normal file
2493
RunningLateGame/Assets/Prefabs/AI person.prefab
Normal file
File diff suppressed because it is too large
Load diff
7
RunningLateGame/Assets/Prefabs/AI person.prefab.meta
Normal file
7
RunningLateGame/Assets/Prefabs/AI person.prefab.meta
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: aebcdae242e01f94b8df85895a81a0ff
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
RunningLateGame/Assets/Prefabs/car.fbx
(Stored with Git LFS)
Normal file
BIN
RunningLateGame/Assets/Prefabs/car.fbx
(Stored with Git LFS)
Normal file
Binary file not shown.
109
RunningLateGame/Assets/Prefabs/car.fbx.meta
Normal file
109
RunningLateGame/Assets/Prefabs/car.fbx.meta
Normal file
|
@ -0,0 +1,109 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ea8f4c36c1c70304680c14a8eaa0a194
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 22200
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 0
|
||||||
|
materialName: 0
|
||||||
|
materialSearch: 1
|
||||||
|
materialLocation: 1
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
removeConstantScaleCurves: 0
|
||||||
|
motionNodeName:
|
||||||
|
rigImportErrors:
|
||||||
|
rigImportWarnings:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 0
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 1
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 1
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
importPhysicalCameras: 1
|
||||||
|
importVisibility: 1
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 1
|
||||||
|
importLights: 1
|
||||||
|
nodeNameCollisionStrategy: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 1
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 0
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 0
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
optimizeBones: 1
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
strictVertexDataChecks: 0
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 1
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 1
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 2
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
importBlendShapeDeformPercent: 1
|
||||||
|
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
3155
RunningLateGame/Assets/Prefabs/player.prefab
Normal file
3155
RunningLateGame/Assets/Prefabs/player.prefab
Normal file
File diff suppressed because it is too large
Load diff
7
RunningLateGame/Assets/Prefabs/player.prefab.meta
Normal file
7
RunningLateGame/Assets/Prefabs/player.prefab.meta
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fede53ad5812a1046bf12a85cacb875a
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
RunningLateGame/Assets/Scenes/SampleScene.meta
Normal file
8
RunningLateGame/Assets/Scenes/SampleScene.meta
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ffa306c25c255c04b8d327f67aebe5e7
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
File diff suppressed because it is too large
Load diff
Binary file not shown.
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c5b15e08603268b499e9f7d38414aa1b
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 23800000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
RunningLateGame/Assets/Scripts.meta
Normal file
8
RunningLateGame/Assets/Scripts.meta
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2ddbeadd7f1bc4645857cb1843e555f6
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
144
RunningLateGame/Assets/Scripts/AI.cs
Normal file
144
RunningLateGame/Assets/Scripts/AI.cs
Normal file
|
@ -0,0 +1,144 @@
|
||||||
|
/*
|
||||||
|
* author: lin hengrui ryan
|
||||||
|
* date: 30/7/2024
|
||||||
|
* description: ai code for the different ai in the game
|
||||||
|
*/
|
||||||
|
|
||||||
|
using System.Collections;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.AI;
|
||||||
|
using Random = System.Random;
|
||||||
|
|
||||||
|
public class AI : MonoBehaviour
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// the types of ai that this game object can be
|
||||||
|
/// </summary>
|
||||||
|
public enum EntityType
|
||||||
|
{
|
||||||
|
Human,
|
||||||
|
Car
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// to save resources when referring to the speed of this ai if its a human
|
||||||
|
/// </summary>
|
||||||
|
private static readonly int AnimatorSpeed = Animator.StringToHash("Speed");
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// to show the entity types in the inspector as a dropdown
|
||||||
|
/// </summary>
|
||||||
|
public EntityType entityType;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// set the layers the AI can be on
|
||||||
|
/// </summary>
|
||||||
|
public LayerMask walkableLayers;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// the destination coordinate of the AI
|
||||||
|
/// </summary>
|
||||||
|
public Vector3 destinationCoord;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// the range that the AI can set as their destination
|
||||||
|
/// </summary>
|
||||||
|
public int movingRange;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// the nav mash agent that is on this AI
|
||||||
|
/// </summary>
|
||||||
|
private NavMeshAgent _agent;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// the animator that is attached to this AI if applicable
|
||||||
|
/// </summary>
|
||||||
|
private Animator _animator;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// the current state that the AI is at this point in time
|
||||||
|
/// </summary>
|
||||||
|
private string _currentState;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// a bool to check if the destination point is set
|
||||||
|
/// </summary>
|
||||||
|
private bool _destinationPointSet;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// the state that the AI will be on the next update
|
||||||
|
/// </summary>
|
||||||
|
private string _nextState;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// to set initial values
|
||||||
|
/// </summary>
|
||||||
|
public void Awake()
|
||||||
|
{
|
||||||
|
_agent = GetComponent<NavMeshAgent>();
|
||||||
|
if (entityType == EntityType.Human)
|
||||||
|
{
|
||||||
|
_animator = GetComponent<Animator>();
|
||||||
|
_currentState = "Strolling";
|
||||||
|
}
|
||||||
|
|
||||||
|
_nextState = _currentState;
|
||||||
|
ChangeState();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// to update the speed of the AI to the animator each frame and to update any state changes to the ai
|
||||||
|
/// </summary>
|
||||||
|
public void Update()
|
||||||
|
{
|
||||||
|
if (entityType == EntityType.Human) _animator.SetFloat(AnimatorSpeed, _agent.velocity.magnitude);
|
||||||
|
_currentState = _nextState;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// to change the scene when needed
|
||||||
|
/// </summary>
|
||||||
|
public void ChangeState()
|
||||||
|
{
|
||||||
|
StartCoroutine(_currentState);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// to set a random x and y coordinate for the AI to go to
|
||||||
|
/// </summary>
|
||||||
|
private void SearchWalkPoint()
|
||||||
|
{
|
||||||
|
var rand = new Random();
|
||||||
|
float randomX = rand.Next(-movingRange * 100, movingRange * 100);
|
||||||
|
float randomZ = rand.Next(-movingRange * 100, movingRange * 100);
|
||||||
|
destinationCoord = new Vector3(
|
||||||
|
transform.position.x + randomX / 100,
|
||||||
|
transform.position.y,
|
||||||
|
transform.position.z + randomZ / 100
|
||||||
|
);
|
||||||
|
if (Physics.Raycast(destinationCoord, -transform.up, 2f, walkableLayers)) _destinationPointSet = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// a state that the AI wonders around using the SearchWalkPoint function to find a location for the AI to go to
|
||||||
|
/// </summary>
|
||||||
|
private IEnumerator Strolling()
|
||||||
|
{
|
||||||
|
SearchWalkPoint();
|
||||||
|
|
||||||
|
while (_currentState == "Strolling")
|
||||||
|
{
|
||||||
|
Debug.Log("strolling");
|
||||||
|
if (!_destinationPointSet)
|
||||||
|
SearchWalkPoint();
|
||||||
|
else
|
||||||
|
_agent.SetDestination(destinationCoord);
|
||||||
|
|
||||||
|
if ((transform.position - destinationCoord).magnitude < 1f) _destinationPointSet = false;
|
||||||
|
|
||||||
|
yield return new WaitForSeconds(1f);
|
||||||
|
}
|
||||||
|
|
||||||
|
ChangeState();
|
||||||
|
}
|
||||||
|
}
|
11
RunningLateGame/Assets/Scripts/AI.cs.meta
Normal file
11
RunningLateGame/Assets/Scripts/AI.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f6822f90b5efff04997e5b884d402be8
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
64
RunningLateGame/Assets/Scripts/CarController.cs
Normal file
64
RunningLateGame/Assets/Scripts/CarController.cs
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class CarController : MonoBehaviour
|
||||||
|
{
|
||||||
|
public enum Axel
|
||||||
|
{
|
||||||
|
Front,
|
||||||
|
Rear
|
||||||
|
}
|
||||||
|
|
||||||
|
public float acceleration;
|
||||||
|
public float turnAngle;
|
||||||
|
public List<Wheel> wheels;
|
||||||
|
public float brakeForce = 50.0f;
|
||||||
|
private float _currentAcceleration;
|
||||||
|
private float _currentTurn;
|
||||||
|
public bool braking;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private void FixedUpdate()
|
||||||
|
{
|
||||||
|
Move();
|
||||||
|
Steering();
|
||||||
|
Brake();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetInputs(float forwardAmount,float turnAmount)
|
||||||
|
{
|
||||||
|
_currentAcceleration = forwardAmount*acceleration;
|
||||||
|
_currentTurn = turnAmount*turnAngle;
|
||||||
|
}
|
||||||
|
public void Move()
|
||||||
|
{
|
||||||
|
foreach (var wheel in wheels) wheel.wheelCollider.motorTorque = _currentAcceleration;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Brake()
|
||||||
|
{
|
||||||
|
if (braking)
|
||||||
|
foreach (var wheel in wheels)
|
||||||
|
wheel.wheelCollider.brakeTorque = brakeForce;
|
||||||
|
else
|
||||||
|
foreach (var wheel in wheels)
|
||||||
|
wheel.wheelCollider.brakeTorque = 0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Steering()
|
||||||
|
{
|
||||||
|
foreach (var wheel in wheels)
|
||||||
|
if (wheel.axel == Axel.Front)
|
||||||
|
wheel.wheelCollider.steerAngle = _currentTurn;
|
||||||
|
}
|
||||||
|
|
||||||
|
[Serializable]
|
||||||
|
public struct Wheel
|
||||||
|
{
|
||||||
|
public GameObject wheelModel;
|
||||||
|
public WheelCollider wheelCollider;
|
||||||
|
public Axel axel;
|
||||||
|
}
|
||||||
|
}
|
11
RunningLateGame/Assets/Scripts/CarController.cs.meta
Normal file
11
RunningLateGame/Assets/Scripts/CarController.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6da9430305b32f446a2517f4a73fdf57
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
19
RunningLateGame/Assets/Scripts/ai car.cs
Normal file
19
RunningLateGame/Assets/Scripts/ai car.cs
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
using System;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class AICar : MonoBehaviour
|
||||||
|
{
|
||||||
|
private CarController _carController;
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
_carController = GetComponent<CarController>();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
float forwardAmount = 1f;
|
||||||
|
float turnAmount = 1f;
|
||||||
|
_carController.SetInputs(forwardAmount,turnAmount);
|
||||||
|
}
|
||||||
|
}
|
3
RunningLateGame/Assets/Scripts/ai car.cs.meta
Normal file
3
RunningLateGame/Assets/Scripts/ai car.cs.meta
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bc82a40176164f02897928bd573bc2ca
|
||||||
|
timeCreated: 1722499203
|
|
@ -23,8 +23,9 @@ Transform:
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 7094977340588366727}
|
m_GameObject: {fileID: 7094977340588366727}
|
||||||
|
serializedVersion: 2
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 22.210217, y: -8.786317, z: 23.948788}
|
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_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
|
@ -33,7 +34,6 @@ Transform:
|
||||||
- {fileID: 937451010987979973}
|
- {fileID: 937451010987979973}
|
||||||
- {fileID: 6116018315020930700}
|
- {fileID: 6116018315020930700}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1001 &4253012990495331769
|
--- !u!1001 &4253012990495331769
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
|
@ -43,63 +43,78 @@ PrefabInstance:
|
||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_TransformParent: {fileID: 6556307555316582679}
|
m_TransformParent: {fileID: 6556307555316582679}
|
||||||
m_Modifications:
|
m_Modifications:
|
||||||
- target: {fileID: 1992104595683069851, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 1992104595683069851, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
value: UI_EventSystem
|
value: UI_EventSystem
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 4
|
value: 4
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalScale.x
|
propertyPath: m_LocalScale.x
|
||||||
value: 1
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalScale.y
|
propertyPath: m_LocalScale.y
|
||||||
value: 1
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalScale.z
|
propertyPath: m_LocalScale.z
|
||||||
value: 1
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
value: -22.210217
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.y
|
propertyPath: m_LocalPosition.y
|
||||||
value: 8.786317
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: -23.948788
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.w
|
propertyPath: m_LocalRotation.w
|
||||||
value: 1
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.x
|
propertyPath: m_LocalRotation.x
|
||||||
value: -0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.y
|
propertyPath: m_LocalRotation.y
|
||||||
value: -0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.z
|
propertyPath: m_LocalRotation.z
|
||||||
value: -0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.y
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
- target: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
@ -110,7 +125,8 @@ PrefabInstance:
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
||||||
--- !u!4 &6116018315020930700 stripped
|
--- !u!4 &6116018315020930700 stripped
|
||||||
Transform:
|
Transform:
|
||||||
m_CorrespondingSourceObject: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce, type: 3}
|
m_CorrespondingSourceObject: {fileID: 8063073397250431797, guid: f0271df749728104eac22c3d897fd8ce,
|
||||||
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 4253012990495331769}
|
m_PrefabInstance: {fileID: 4253012990495331769}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1001 &4313866245218740378
|
--- !u!1001 &4313866245218740378
|
||||||
|
@ -121,59 +137,73 @@ PrefabInstance:
|
||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_TransformParent: {fileID: 6556307555316582679}
|
m_TransformParent: {fileID: 6556307555316582679}
|
||||||
m_Modifications:
|
m_Modifications:
|
||||||
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
value: -22.210217
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.y
|
propertyPath: m_LocalPosition.y
|
||||||
value: 10.161317
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: -23.948788
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.w
|
propertyPath: m_LocalRotation.w
|
||||||
value: 1
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.x
|
propertyPath: m_LocalRotation.x
|
||||||
value: -0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.y
|
propertyPath: m_LocalRotation.y
|
||||||
value: -0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.z
|
propertyPath: m_LocalRotation.z
|
||||||
value: -0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.y
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9005220659476430821, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430821, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: far clip plane
|
propertyPath: far clip plane
|
||||||
value: 500
|
value: 500
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9005220659476430821, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430821, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: orthographic size
|
propertyPath: orthographic size
|
||||||
value: 10
|
value: 10
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 9005220659476430823, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
- target: {fileID: 9005220659476430823, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
value: MainCamera
|
value: MainCamera
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
@ -184,7 +214,8 @@ PrefabInstance:
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
||||||
--- !u!4 &5126527961139664760 stripped
|
--- !u!4 &5126527961139664760 stripped
|
||||||
Transform:
|
Transform:
|
||||||
m_CorrespondingSourceObject: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74, type: 3}
|
m_CorrespondingSourceObject: {fileID: 9005220659476430818, guid: 2d3a85ecde41a8246a79669975912b74,
|
||||||
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 4313866245218740378}
|
m_PrefabInstance: {fileID: 4313866245218740378}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1001 &6782772647021209901
|
--- !u!1001 &6782772647021209901
|
||||||
|
@ -195,55 +226,68 @@ PrefabInstance:
|
||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_TransformParent: {fileID: 6556307555316582679}
|
m_TransformParent: {fileID: 6556307555316582679}
|
||||||
m_Modifications:
|
m_Modifications:
|
||||||
- target: {fileID: 8762286023885395077, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
- target: {fileID: 8762286023885395077, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
value: PlayerFollowCamera
|
value: PlayerFollowCamera
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 1
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
value: -22.210217
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.y
|
propertyPath: m_LocalPosition.y
|
||||||
value: 10.161317
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: -23.948788
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.w
|
propertyPath: m_LocalRotation.w
|
||||||
value: 1
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.x
|
propertyPath: m_LocalRotation.x
|
||||||
value: -0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.y
|
propertyPath: m_LocalRotation.y
|
||||||
value: -0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.z
|
propertyPath: m_LocalRotation.z
|
||||||
value: -0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.y
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
- target: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8762286023885395323, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
- target: {fileID: 8762286023885395323, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_Follow
|
propertyPath: m_Follow
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 5242107653240477475}
|
objectReference: {fileID: 5242107653240477475}
|
||||||
|
@ -254,7 +298,8 @@ PrefabInstance:
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
||||||
--- !u!4 &2862278905927072855 stripped
|
--- !u!4 &2862278905927072855 stripped
|
||||||
Transform:
|
Transform:
|
||||||
m_CorrespondingSourceObject: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81, type: 3}
|
m_CorrespondingSourceObject: {fileID: 8762286023885395322, guid: 9c489a8547f4d9e4387da15a4ff82c81,
|
||||||
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 6782772647021209901}
|
m_PrefabInstance: {fileID: 6782772647021209901}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!1001 &8204767106804910123
|
--- !u!1001 &8204767106804910123
|
||||||
|
@ -265,55 +310,68 @@ PrefabInstance:
|
||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_TransformParent: {fileID: 6556307555316582679}
|
m_TransformParent: {fileID: 6556307555316582679}
|
||||||
m_Modifications:
|
m_Modifications:
|
||||||
- target: {fileID: 5393215578589016655, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
- target: {fileID: 5393215578589016655, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_Materials.Array.data[0]
|
propertyPath: m_Materials.Array.data[0]
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 2100000, guid: 6b911390c5825014e8377183a7837d3f, type: 2}
|
objectReference: {fileID: 2100000, guid: 6b911390c5825014e8377183a7837d3f, type: 2}
|
||||||
- target: {fileID: 8616685848737228372, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
- target: {fileID: 8616685848737228372, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
value: PlayerCapsule
|
value: PlayerCapsule
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_RootOrder
|
propertyPath: m_RootOrder
|
||||||
value: 2
|
value: 2
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
value: -22.210217
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.y
|
propertyPath: m_LocalPosition.y
|
||||||
value: 8.786317
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
value: -23.948788
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.w
|
propertyPath: m_LocalRotation.w
|
||||||
value: 1
|
value: 1
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.x
|
propertyPath: m_LocalRotation.x
|
||||||
value: -0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.y
|
propertyPath: m_LocalRotation.y
|
||||||
value: -0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalRotation.z
|
propertyPath: m_LocalRotation.z
|
||||||
value: -0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.x
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.y
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
- target: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
@ -324,11 +382,13 @@ PrefabInstance:
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
||||||
--- !u!4 &937451010987979973 stripped
|
--- !u!4 &937451010987979973 stripped
|
||||||
Transform:
|
Transform:
|
||||||
m_CorrespondingSourceObject: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
m_CorrespondingSourceObject: {fileID: 8997996947095583982, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 8204767106804910123}
|
m_PrefabInstance: {fileID: 8204767106804910123}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
--- !u!4 &5242107653240477475 stripped
|
--- !u!4 &5242107653240477475 stripped
|
||||||
Transform:
|
Transform:
|
||||||
m_CorrespondingSourceObject: {fileID: 4135013735270702856, guid: c5efc39a8aaf6e64ea40e9ad573e9b47, type: 3}
|
m_CorrespondingSourceObject: {fileID: 4135013735270702856, guid: c5efc39a8aaf6e64ea40e9ad573e9b47,
|
||||||
|
type: 3}
|
||||||
m_PrefabInstance: {fileID: 8204767106804910123}
|
m_PrefabInstance: {fileID: 8204767106804910123}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
|
|
@ -1,33 +1,5 @@
|
||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
--- !u!1102 &-7469282255733588732
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: InAir
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: -1241942381204629156}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 1
|
|
||||||
m_WriteDefaultValues: 1
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: -2702400367771620057, guid: 063aa479676c4084ebf187660ca0a7b8,
|
|
||||||
type: 3}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1107 &-5602963042399094863
|
--- !u!1107 &-5602963042399094863
|
||||||
AnimatorStateMachine:
|
AnimatorStateMachine:
|
||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
|
@ -38,17 +10,8 @@ AnimatorStateMachine:
|
||||||
m_Name: Base Layer
|
m_Name: Base Layer
|
||||||
m_ChildStates:
|
m_ChildStates:
|
||||||
- serializedVersion: 1
|
- serializedVersion: 1
|
||||||
m_State: {fileID: 6904719651407550685}
|
m_State: {fileID: 8339175055766481336}
|
||||||
m_Position: {x: 200, y: 400, z: 0}
|
m_Position: {x: 200, y: 410, z: 0}
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: -7469282255733588732}
|
|
||||||
m_Position: {x: 200, y: 600, z: 0}
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: -1645763842379584696}
|
|
||||||
m_Position: {x: 400, y: 490, z: 0}
|
|
||||||
- serializedVersion: 1
|
|
||||||
m_State: {fileID: 2316907928501487792}
|
|
||||||
m_Position: {x: 0, y: 490, z: 0}
|
|
||||||
m_ChildStateMachines: []
|
m_ChildStateMachines: []
|
||||||
m_AnyStateTransitions: []
|
m_AnyStateTransitions: []
|
||||||
m_EntryTransitions: []
|
m_EntryTransitions: []
|
||||||
|
@ -56,9 +19,51 @@ AnimatorStateMachine:
|
||||||
m_StateMachineBehaviours: []
|
m_StateMachineBehaviours: []
|
||||||
m_AnyStatePosition: {x: 10, y: 330, z: 0}
|
m_AnyStatePosition: {x: 10, y: 330, z: 0}
|
||||||
m_EntryPosition: {x: 220, y: 330, z: 0}
|
m_EntryPosition: {x: 220, y: 330, z: 0}
|
||||||
m_ExitPosition: {x: 680, y: 260, z: 0}
|
m_ExitPosition: {x: 780, y: 90, z: 0}
|
||||||
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
||||||
m_DefaultState: {fileID: 6904719651407550685}
|
m_DefaultState: {fileID: 8339175055766481336}
|
||||||
|
--- !u!206 &-5557379071981553134
|
||||||
|
BlendTree:
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Blend Tree
|
||||||
|
m_Childs:
|
||||||
|
- serializedVersion: 2
|
||||||
|
m_Motion: {fileID: -3100369314251171874, guid: 12e52e465ed793a4d801955e9f964a82,
|
||||||
|
type: 3}
|
||||||
|
m_Threshold: 0
|
||||||
|
m_Position: {x: 0, y: 0}
|
||||||
|
m_TimeScale: 1
|
||||||
|
m_CycleOffset: 0
|
||||||
|
m_DirectBlendParameter: Speed
|
||||||
|
m_Mirror: 0
|
||||||
|
- serializedVersion: 2
|
||||||
|
m_Motion: {fileID: 1657602633327794031, guid: 8269a9f8cf495034c817722ac21f309f,
|
||||||
|
type: 3}
|
||||||
|
m_Threshold: 2.5
|
||||||
|
m_Position: {x: 0, y: 0}
|
||||||
|
m_TimeScale: 1
|
||||||
|
m_CycleOffset: 0
|
||||||
|
m_DirectBlendParameter: Speed
|
||||||
|
m_Mirror: 0
|
||||||
|
- serializedVersion: 2
|
||||||
|
m_Motion: {fileID: 6564411413370888346, guid: 16114d403eabb53438de032c6f0d1deb,
|
||||||
|
type: 3}
|
||||||
|
m_Threshold: 5
|
||||||
|
m_Position: {x: 0, y: 0}
|
||||||
|
m_TimeScale: 1
|
||||||
|
m_CycleOffset: 0
|
||||||
|
m_DirectBlendParameter: Speed
|
||||||
|
m_Mirror: 0
|
||||||
|
m_BlendParameter: Speed
|
||||||
|
m_BlendParameterY: Speed
|
||||||
|
m_MinThreshold: 0
|
||||||
|
m_MaxThreshold: 5
|
||||||
|
m_UseAutomaticThresholds: 0
|
||||||
|
m_NormalizedBlendValues: 0
|
||||||
|
m_BlendType: 0
|
||||||
--- !u!1101 &-5554260563948360725
|
--- !u!1101 &-5554260563948360725
|
||||||
AnimatorStateTransition:
|
AnimatorStateTransition:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
|
@ -106,31 +111,6 @@ AnimatorStateTransition:
|
||||||
m_InterruptionSource: 0
|
m_InterruptionSource: 0
|
||||||
m_OrderedInterruption: 1
|
m_OrderedInterruption: 1
|
||||||
m_CanTransitionToSelf: 1
|
m_CanTransitionToSelf: 1
|
||||||
--- !u!1101 &-4639224020698590961
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 1
|
|
||||||
m_ConditionEvent: FreeFall
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: -7469282255733588732}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0.037536144
|
|
||||||
m_TransitionOffset: 0.23041831
|
|
||||||
m_ExitTime: 0.9466194
|
|
||||||
m_HasExitTime: 0
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1101 &-3943826829571047522
|
--- !u!1101 &-3943826829571047522
|
||||||
AnimatorStateTransition:
|
AnimatorStateTransition:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
|
@ -181,58 +161,6 @@ AnimatorStateTransition:
|
||||||
m_InterruptionSource: 0
|
m_InterruptionSource: 0
|
||||||
m_OrderedInterruption: 1
|
m_OrderedInterruption: 1
|
||||||
m_CanTransitionToSelf: 1
|
m_CanTransitionToSelf: 1
|
||||||
--- !u!1102 &-1645763842379584696
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: JumpLand
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: 1965893691485178243}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 0
|
|
||||||
m_WriteDefaultValues: 1
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 8738420251406115919}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1101 &-1241942381204629156
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 1
|
|
||||||
m_ConditionEvent: Grounded
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: -1645763842379584696}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0.09764749
|
|
||||||
m_TransitionOffset: 0.08027425
|
|
||||||
m_ExitTime: 0.30146867
|
|
||||||
m_HasExitTime: 0
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!91 &9100000
|
--- !u!91 &9100000
|
||||||
AnimatorController:
|
AnimatorController:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -247,31 +175,31 @@ AnimatorController:
|
||||||
m_DefaultFloat: 0
|
m_DefaultFloat: 0
|
||||||
m_DefaultInt: 0
|
m_DefaultInt: 0
|
||||||
m_DefaultBool: 0
|
m_DefaultBool: 0
|
||||||
m_Controller: {fileID: 0}
|
m_Controller: {fileID: 9100000}
|
||||||
- m_Name: Jump
|
- m_Name: Jump
|
||||||
m_Type: 4
|
m_Type: 4
|
||||||
m_DefaultFloat: 0
|
m_DefaultFloat: 0
|
||||||
m_DefaultInt: 0
|
m_DefaultInt: 0
|
||||||
m_DefaultBool: 0
|
m_DefaultBool: 0
|
||||||
m_Controller: {fileID: 0}
|
m_Controller: {fileID: 9100000}
|
||||||
- m_Name: Grounded
|
- m_Name: Grounded
|
||||||
m_Type: 4
|
m_Type: 4
|
||||||
m_DefaultFloat: 0
|
m_DefaultFloat: 0
|
||||||
m_DefaultInt: 0
|
m_DefaultInt: 0
|
||||||
m_DefaultBool: 0
|
m_DefaultBool: 0
|
||||||
m_Controller: {fileID: 0}
|
m_Controller: {fileID: 9100000}
|
||||||
- m_Name: FreeFall
|
- m_Name: FreeFall
|
||||||
m_Type: 4
|
m_Type: 4
|
||||||
m_DefaultFloat: 0
|
m_DefaultFloat: 0
|
||||||
m_DefaultInt: 0
|
m_DefaultInt: 0
|
||||||
m_DefaultBool: 0
|
m_DefaultBool: 0
|
||||||
m_Controller: {fileID: 0}
|
m_Controller: {fileID: 9100000}
|
||||||
- m_Name: MotionSpeed
|
- m_Name: MotionSpeed
|
||||||
m_Type: 1
|
m_Type: 1
|
||||||
m_DefaultFloat: 0
|
m_DefaultFloat: 0
|
||||||
m_DefaultInt: 0
|
m_DefaultInt: 0
|
||||||
m_DefaultBool: 0
|
m_DefaultBool: 0
|
||||||
m_Controller: {fileID: 0}
|
m_Controller: {fileID: 9100000}
|
||||||
m_AnimatorLayers:
|
m_AnimatorLayers:
|
||||||
- serializedVersion: 5
|
- serializedVersion: 5
|
||||||
m_Name: Base Layer
|
m_Name: Base Layer
|
||||||
|
@ -310,28 +238,6 @@ AnimatorStateTransition:
|
||||||
m_InterruptionSource: 2
|
m_InterruptionSource: 2
|
||||||
m_OrderedInterruption: 1
|
m_OrderedInterruption: 1
|
||||||
m_CanTransitionToSelf: 1
|
m_CanTransitionToSelf: 1
|
||||||
--- !u!1101 &1705606405774109490
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions: []
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: -7469282255733588732}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0.47048202
|
|
||||||
m_TransitionOffset: 0.60876185
|
|
||||||
m_ExitTime: 0.66366935
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1102 &1725567275296691115
|
--- !u!1102 &1725567275296691115
|
||||||
AnimatorState:
|
AnimatorState:
|
||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
|
@ -360,56 +266,6 @@ AnimatorState:
|
||||||
m_MirrorParameter:
|
m_MirrorParameter:
|
||||||
m_CycleOffsetParameter:
|
m_CycleOffsetParameter:
|
||||||
m_TimeParameter:
|
m_TimeParameter:
|
||||||
--- !u!1101 &1965893691485178243
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions: []
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: 6904719651407550685}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0.4340285
|
|
||||||
m_TransitionOffset: 0.36290926
|
|
||||||
m_ExitTime: 0.39948252
|
|
||||||
m_HasExitTime: 1
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 2
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!1102 &2316907928501487792
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: JumpStart
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: 1705606405774109490}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 1
|
|
||||||
m_WriteDefaultValues: 1
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 0
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 7478122292733868173, guid: 98f277b0c8055e143b2fcf058d3c27dc,
|
|
||||||
type: 3}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter:
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter:
|
|
||||||
--- !u!1101 &2455683505482688366
|
--- !u!1101 &2455683505482688366
|
||||||
AnimatorStateTransition:
|
AnimatorStateTransition:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
|
@ -457,34 +313,6 @@ AnimatorStateTransition:
|
||||||
m_InterruptionSource: 0
|
m_InterruptionSource: 0
|
||||||
m_OrderedInterruption: 1
|
m_OrderedInterruption: 1
|
||||||
m_CanTransitionToSelf: 0
|
m_CanTransitionToSelf: 0
|
||||||
--- !u!1102 &6904719651407550685
|
|
||||||
AnimatorState:
|
|
||||||
serializedVersion: 6
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: Idle Walk Run Blend
|
|
||||||
m_Speed: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_Transitions:
|
|
||||||
- {fileID: -4639224020698590961}
|
|
||||||
- {fileID: 8635457214972911529}
|
|
||||||
m_StateMachineBehaviours: []
|
|
||||||
m_Position: {x: 50, y: 50, z: 0}
|
|
||||||
m_IKOnFeet: 1
|
|
||||||
m_WriteDefaultValues: 1
|
|
||||||
m_Mirror: 0
|
|
||||||
m_SpeedParameterActive: 1
|
|
||||||
m_MirrorParameterActive: 0
|
|
||||||
m_CycleOffsetParameterActive: 0
|
|
||||||
m_TimeParameterActive: 0
|
|
||||||
m_Motion: {fileID: 8571049798372811705}
|
|
||||||
m_Tag:
|
|
||||||
m_SpeedParameter: MotionSpeed
|
|
||||||
m_MirrorParameter:
|
|
||||||
m_CycleOffsetParameter:
|
|
||||||
m_TimeParameter: Speed
|
|
||||||
--- !u!1101 &7604687646627025577
|
--- !u!1101 &7604687646627025577
|
||||||
AnimatorStateTransition:
|
AnimatorStateTransition:
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
|
@ -535,112 +363,29 @@ AnimatorStateTransition:
|
||||||
m_InterruptionSource: 0
|
m_InterruptionSource: 0
|
||||||
m_OrderedInterruption: 1
|
m_OrderedInterruption: 1
|
||||||
m_CanTransitionToSelf: 1
|
m_CanTransitionToSelf: 1
|
||||||
--- !u!206 &8571049798372811705
|
--- !u!1102 &8339175055766481336
|
||||||
BlendTree:
|
AnimatorState:
|
||||||
|
serializedVersion: 6
|
||||||
m_ObjectHideFlags: 1
|
m_ObjectHideFlags: 1
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name: Blend Tree
|
m_Name: Blend Tree
|
||||||
m_Childs:
|
m_Speed: 1
|
||||||
- serializedVersion: 2
|
m_CycleOffset: 0
|
||||||
m_Motion: {fileID: -3100369314251171874, guid: 12e52e465ed793a4d801955e9f964a82,
|
m_Transitions: []
|
||||||
type: 3}
|
m_StateMachineBehaviours: []
|
||||||
m_Threshold: 0
|
m_Position: {x: 50, y: 50, z: 0}
|
||||||
m_Position: {x: 0, y: 0}
|
m_IKOnFeet: 0
|
||||||
m_TimeScale: 1
|
m_WriteDefaultValues: 1
|
||||||
m_CycleOffset: 0
|
m_Mirror: 0
|
||||||
m_DirectBlendParameter: Speed
|
m_SpeedParameterActive: 0
|
||||||
m_Mirror: 0
|
m_MirrorParameterActive: 0
|
||||||
- serializedVersion: 2
|
m_CycleOffsetParameterActive: 0
|
||||||
m_Motion: {fileID: 1657602633327794031, guid: 8269a9f8cf495034c817722ac21f309f,
|
m_TimeParameterActive: 0
|
||||||
type: 3}
|
m_Motion: {fileID: -5557379071981553134}
|
||||||
m_Threshold: 2
|
m_Tag:
|
||||||
m_Position: {x: 0, y: 0}
|
m_SpeedParameter:
|
||||||
m_TimeScale: 1
|
m_MirrorParameter:
|
||||||
m_CycleOffset: 0
|
m_CycleOffsetParameter:
|
||||||
m_DirectBlendParameter: Speed
|
m_TimeParameter:
|
||||||
m_Mirror: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
m_Motion: {fileID: 6564411413370888346, guid: 16114d403eabb53438de032c6f0d1deb,
|
|
||||||
type: 3}
|
|
||||||
m_Threshold: 6
|
|
||||||
m_Position: {x: 0, y: 0}
|
|
||||||
m_TimeScale: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_DirectBlendParameter: Speed
|
|
||||||
m_Mirror: 0
|
|
||||||
m_BlendParameter: Speed
|
|
||||||
m_BlendParameterY: Speed
|
|
||||||
m_MinThreshold: 0
|
|
||||||
m_MaxThreshold: 6
|
|
||||||
m_UseAutomaticThresholds: 0
|
|
||||||
m_NormalizedBlendValues: 0
|
|
||||||
m_BlendType: 0
|
|
||||||
--- !u!1101 &8635457214972911529
|
|
||||||
AnimatorStateTransition:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name:
|
|
||||||
m_Conditions:
|
|
||||||
- m_ConditionMode: 1
|
|
||||||
m_ConditionEvent: Jump
|
|
||||||
m_EventTreshold: 0
|
|
||||||
m_DstStateMachine: {fileID: 0}
|
|
||||||
m_DstState: {fileID: 2316907928501487792}
|
|
||||||
m_Solo: 0
|
|
||||||
m_Mute: 0
|
|
||||||
m_IsExit: 0
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TransitionDuration: 0.07026373
|
|
||||||
m_TransitionOffset: 0
|
|
||||||
m_ExitTime: 0.03574113
|
|
||||||
m_HasExitTime: 0
|
|
||||||
m_HasFixedDuration: 1
|
|
||||||
m_InterruptionSource: 0
|
|
||||||
m_OrderedInterruption: 1
|
|
||||||
m_CanTransitionToSelf: 1
|
|
||||||
--- !u!206 &8738420251406115919
|
|
||||||
BlendTree:
|
|
||||||
m_ObjectHideFlags: 1
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: Blend Tree
|
|
||||||
m_Childs:
|
|
||||||
- serializedVersion: 2
|
|
||||||
m_Motion: {fileID: -9098803823909532060, guid: 98f277b0c8055e143b2fcf058d3c27dc,
|
|
||||||
type: 3}
|
|
||||||
m_Threshold: 0
|
|
||||||
m_Position: {x: 0, y: 0}
|
|
||||||
m_TimeScale: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_DirectBlendParameter: Speed
|
|
||||||
m_Mirror: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
m_Motion: {fileID: 3062299877480904481, guid: 325a26d62b61fa94cb3c97c435efebc5,
|
|
||||||
type: 3}
|
|
||||||
m_Threshold: 2
|
|
||||||
m_Position: {x: 0, y: 0}
|
|
||||||
m_TimeScale: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_DirectBlendParameter: Speed
|
|
||||||
m_Mirror: 0
|
|
||||||
- serializedVersion: 2
|
|
||||||
m_Motion: {fileID: -2817517482862745934, guid: 3c033631149b9c541bcf155cd94cccba,
|
|
||||||
type: 3}
|
|
||||||
m_Threshold: 6
|
|
||||||
m_Position: {x: 0, y: 0}
|
|
||||||
m_TimeScale: 1
|
|
||||||
m_CycleOffset: 0
|
|
||||||
m_DirectBlendParameter: Speed
|
|
||||||
m_Mirror: 0
|
|
||||||
m_BlendParameter: Speed
|
|
||||||
m_BlendParameterY: Speed
|
|
||||||
m_MinThreshold: 0
|
|
||||||
m_MaxThreshold: 6
|
|
||||||
m_UseAutomaticThresholds: 0
|
|
||||||
m_NormalizedBlendValues: 0
|
|
||||||
m_BlendType: 0
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ Material:
|
||||||
m_LightmapFlags: 4
|
m_LightmapFlags: 4
|
||||||
m_EnableInstancingVariants: 0
|
m_EnableInstancingVariants: 0
|
||||||
m_DoubleSidedGI: 0
|
m_DoubleSidedGI: 0
|
||||||
m_CustomRenderQueue: -1
|
m_CustomRenderQueue: 2000
|
||||||
stringTagMap:
|
stringTagMap:
|
||||||
RenderType: Opaque
|
RenderType: Opaque
|
||||||
disabledShaderPasses:
|
disabledShaderPasses:
|
||||||
|
@ -137,4 +137,3 @@ Material:
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
|
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
m_AllowLocking: 1
|
|
||||||
|
|
|
@ -119,11 +119,10 @@ Material:
|
||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _BaseColor: {r: 0.5110952, g: 0.62652487, b: 0.6886792, a: 1}
|
- _BaseColor: {r: 0.5110952, g: 0.62652487, b: 0.6886792, a: 1}
|
||||||
- _Color: {r: 0.5110952, g: 0.62652487, b: 0.6886792, a: 1}
|
- _Color: {r: 0.51109517, g: 0.62652487, b: 0.6886792, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
|
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
m_AllowLocking: 1
|
|
||||||
--- !u!114 &8179846364062491463
|
--- !u!114 &8179846364062491463
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 11
|
m_ObjectHideFlags: 11
|
||||||
|
|
|
@ -17,15 +17,25 @@ MonoBehaviour:
|
||||||
m_MaterialReferences: []
|
m_MaterialReferences: []
|
||||||
--- !u!21 &2100000
|
--- !u!21 &2100000
|
||||||
Material:
|
Material:
|
||||||
serializedVersion: 6
|
serializedVersion: 8
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name: Heather
|
m_Name: Heather
|
||||||
m_Shader: {fileID: -6465566751694194690, guid: dfa3b96612ed4df4a97b7fd06217ba23, type: 3}
|
m_Shader: {fileID: -6465566751694194690, guid: dfa3b96612ed4df4a97b7fd06217ba23,
|
||||||
m_ShaderKeywords: _ALPHATEST_ON _BUILTIN_ALPHATEST_ON _BUILTIN_AlphaClip _DISABLE_DECALS
|
type: 3}
|
||||||
_DISABLE_SSR _DISABLE_SSR_TRANSPARENT _DOUBLESIDED_ON
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords:
|
||||||
|
- _ALPHATEST_ON
|
||||||
|
- _BUILTIN_ALPHATEST_ON
|
||||||
|
- _BUILTIN_AlphaClip
|
||||||
|
- _DISABLE_DECALS
|
||||||
|
- _DISABLE_SSR
|
||||||
|
- _DISABLE_SSR_TRANSPARENT
|
||||||
|
- _DOUBLESIDED_ON
|
||||||
|
m_InvalidKeywords: []
|
||||||
m_LightmapFlags: 2
|
m_LightmapFlags: 2
|
||||||
m_EnableInstancingVariants: 1
|
m_EnableInstancingVariants: 1
|
||||||
m_DoubleSidedGI: 1
|
m_DoubleSidedGI: 1
|
||||||
|
@ -40,6 +50,7 @@ Material:
|
||||||
- RayTracingPrepass
|
- RayTracingPrepass
|
||||||
- ForwardEmissiveForDeferred
|
- ForwardEmissiveForDeferred
|
||||||
- MOTIONVECTORS
|
- MOTIONVECTORS
|
||||||
|
m_LockedProperties:
|
||||||
m_SavedProperties:
|
m_SavedProperties:
|
||||||
serializedVersion: 3
|
serializedVersion: 3
|
||||||
m_TexEnvs:
|
m_TexEnvs:
|
||||||
|
@ -56,11 +67,13 @@ Material:
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- TerrainTexture:
|
- TerrainTexture:
|
||||||
m_Texture: {fileID: 707188533860266558, guid: dfce0fe87ba57ef449f748baa61f1cc2, type: 2}
|
m_Texture: {fileID: 707188533860266558, guid: dfce0fe87ba57ef449f748baa61f1cc2,
|
||||||
|
type: 2}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- Terrain_Splatmap:
|
- Terrain_Splatmap:
|
||||||
m_Texture: {fileID: 707188533860266558, guid: dfce0fe87ba57ef449f748baa61f1cc2, type: 2}
|
m_Texture: {fileID: 707188533860266558, guid: dfce0fe87ba57ef449f748baa61f1cc2,
|
||||||
|
type: 2}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- Terrain_Splatmap_0:
|
- Terrain_Splatmap_0:
|
||||||
|
@ -68,7 +81,8 @@ Material:
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- Terrain_Splatmap_1:
|
- Terrain_Splatmap_1:
|
||||||
m_Texture: {fileID: 6456901915053530685, guid: dfce0fe87ba57ef449f748baa61f1cc2, type: 2}
|
m_Texture: {fileID: 6456901915053530685, guid: dfce0fe87ba57ef449f748baa61f1cc2,
|
||||||
|
type: 2}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- Texture2D_8713F080:
|
- Texture2D_8713F080:
|
||||||
|
@ -159,7 +173,7 @@ Material:
|
||||||
- _AlphaCutoffEnable: 1
|
- _AlphaCutoffEnable: 1
|
||||||
- _AlphaDstBlend: 0
|
- _AlphaDstBlend: 0
|
||||||
- _AlphaSrcBlend: 1
|
- _AlphaSrcBlend: 1
|
||||||
- _AlphaToMask: 0
|
- _AlphaToMask: 1
|
||||||
- _AlphaToMaskInspectorValue: 0
|
- _AlphaToMaskInspectorValue: 0
|
||||||
- _BUILTIN_AlphaClip: 1
|
- _BUILTIN_AlphaClip: 1
|
||||||
- _BUILTIN_Blend: 0
|
- _BUILTIN_Blend: 0
|
||||||
|
@ -174,6 +188,7 @@ Material:
|
||||||
- _BUILTIN_ZWriteControl: 0
|
- _BUILTIN_ZWriteControl: 0
|
||||||
- _Blend: 0
|
- _Blend: 0
|
||||||
- _BlendMode: 0
|
- _BlendMode: 0
|
||||||
|
- _BlendModePreserveSpecular: 0
|
||||||
- _CastShadows: 1
|
- _CastShadows: 1
|
||||||
- _ConservativeDepthOffsetEnable: 0
|
- _ConservativeDepthOffsetEnable: 0
|
||||||
- _Cull: 0
|
- _Cull: 0
|
||||||
|
@ -188,6 +203,7 @@ Material:
|
||||||
- _DstBlend: 0
|
- _DstBlend: 0
|
||||||
- _EnableBlendModePreserveSpecularLighting: 1
|
- _EnableBlendModePreserveSpecularLighting: 1
|
||||||
- _EnableFogOnTransparent: 1
|
- _EnableFogOnTransparent: 1
|
||||||
|
- _ExcludeFromTUAndAA: 0
|
||||||
- _FadeBias: 1
|
- _FadeBias: 1
|
||||||
- _ForceForwardEmissive: 0
|
- _ForceForwardEmissive: 0
|
||||||
- _OpaqueCullMode: 2
|
- _OpaqueCullMode: 2
|
||||||
|
@ -232,7 +248,8 @@ Material:
|
||||||
- use_terrain_texture: 0
|
- use_terrain_texture: 0
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- Color_1: {r: 1, g: 1, b: 1, a: 0}
|
- Color_1: {r: 1, g: 1, b: 1, a: 0}
|
||||||
- Color_5108e9ce42374b88877d5b6d32008f57: {r: 0.4245283, g: 0.3904859, b: 0.3224012, a: 1}
|
- Color_5108e9ce42374b88877d5b6d32008f57: {r: 0.4245283, g: 0.3904859, b: 0.3224012,
|
||||||
|
a: 1}
|
||||||
- Color_98d740f37ee94393862968e06dd248d6: {r: 1, g: 1, b: 1, a: 0}
|
- Color_98d740f37ee94393862968e06dd248d6: {r: 1, g: 1, b: 1, a: 0}
|
||||||
- Fade_Color: {r: 0, g: 0, b: 0, a: 0}
|
- Fade_Color: {r: 0, g: 0, b: 0, a: 0}
|
||||||
- SplatA: {r: 0, g: 0, b: 0, a: 1}
|
- SplatA: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
@ -245,8 +262,10 @@ Material:
|
||||||
- Terrain_Scale: {r: 100, g: 100, b: 0, a: 0}
|
- Terrain_Scale: {r: 100, g: 100, b: 0, a: 0}
|
||||||
- Vector2_1a286d49dc7b437fb4f1ea99b04e2664: {r: 0.05, g: 0.5, b: 0, a: 0}
|
- Vector2_1a286d49dc7b437fb4f1ea99b04e2664: {r: 0.05, g: 0.5, b: 0, a: 0}
|
||||||
- Vector2_98F9C2DA: {r: 0.2, g: 0.2, b: 0, a: 0}
|
- Vector2_98F9C2DA: {r: 0.2, g: 0.2, b: 0, a: 0}
|
||||||
- _DiffusionProfileAsset: {r: -0.00000002060262, g: 7.3194675e-27, b: 69972056, a: -3.7115523e+9}
|
- _DiffusionProfileAsset: {r: -0.00000002060262, g: 7.3194675e-27, b: 69972056,
|
||||||
- _Diffusion_Profile_Asset: {r: -0.00000002060262, g: 7.3194675e-27, b: 69972056, a: -3.7115523e+9}
|
a: -3.7115523e+9}
|
||||||
|
- _Diffusion_Profile_Asset: {r: -0.00000002060262, g: 7.3194675e-27, b: 69972056,
|
||||||
|
a: -3.7115523e+9}
|
||||||
- _DoubleSidedConstants: {r: 1, g: 1, b: -1, a: 0}
|
- _DoubleSidedConstants: {r: 1, g: 1, b: -1, a: 0}
|
||||||
- _EmissionColor: {r: 1, g: 1, b: 1, a: 1}
|
- _EmissionColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
- _SSSColor: {r: 0.95744157, g: 1, b: 0.5424528, a: 0}
|
- _SSSColor: {r: 0.95744157, g: 1, b: 0.5424528, a: 0}
|
||||||
|
|
|
@ -12,13 +12,14 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: b2686e09ec7aef44bad2843e4416f057, type: 3}
|
m_Script: {fileID: 11500000, guid: b2686e09ec7aef44bad2843e4416f057, type: 3}
|
||||||
m_Name: FoliageDiffusionProfile
|
m_Name: FoliageDiffusionProfile
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
m_Version: 1
|
|
||||||
profile:
|
profile:
|
||||||
scatteringDistance: {r: 0.7568628, g: 0.7019608, b: 0.24313727, a: 1}
|
scatteringDistance: {r: 0.7490196, g: 0.69468653, b: 0.24061768, a: 1}
|
||||||
|
scatteringDistanceMultiplier: 1.0104713
|
||||||
transmissionTint: {r: 1, g: 1, b: 1, a: 1}
|
transmissionTint: {r: 1, g: 1, b: 1, a: 1}
|
||||||
texturingMode: 0
|
texturingMode: 0
|
||||||
transmissionMode: 1
|
transmissionMode: 1
|
||||||
thicknessRemap: {x: 0, y: 0.2873168}
|
thicknessRemap: {x: 0, y: 0.2873168}
|
||||||
worldScale: 1
|
worldScale: 1
|
||||||
ior: 1.4
|
ior: 1.4
|
||||||
hash: 1081692787
|
hash: 1074823563
|
||||||
|
m_Version: 2
|
||||||
|
|
|
@ -69,9 +69,9 @@ NavMeshProjectSettings:
|
||||||
cost: 1
|
cost: 1
|
||||||
- name:
|
- name:
|
||||||
cost: 1
|
cost: 1
|
||||||
m_LastAgentTypeID: -887442657
|
m_LastAgentTypeID: -1372625422
|
||||||
m_Settings:
|
m_Settings:
|
||||||
- serializedVersion: 2
|
- serializedVersion: 3
|
||||||
agentTypeID: 0
|
agentTypeID: 0
|
||||||
agentRadius: 0.5
|
agentRadius: 0.5
|
||||||
agentHeight: 2
|
agentHeight: 2
|
||||||
|
@ -84,7 +84,9 @@ NavMeshProjectSettings:
|
||||||
cellSize: 0.16666667
|
cellSize: 0.16666667
|
||||||
manualTileSize: 0
|
manualTileSize: 0
|
||||||
tileSize: 256
|
tileSize: 256
|
||||||
accuratePlacement: 0
|
buildHeightMesh: 0
|
||||||
|
maxJobWorkers: 0
|
||||||
|
preserveTilesOutsideBounds: 0
|
||||||
debug:
|
debug:
|
||||||
m_Flags: 0
|
m_Flags: 0
|
||||||
m_SettingNames:
|
m_SettingNames:
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"m_Dictionary": {
|
||||||
|
"m_DictionaryValues": []
|
||||||
|
}
|
||||||
|
}
|
|
@ -3,7 +3,8 @@
|
||||||
--- !u!78 &1
|
--- !u!78 &1
|
||||||
TagManager:
|
TagManager:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
tags: []
|
tags:
|
||||||
|
- CinemachineTarget
|
||||||
layers:
|
layers:
|
||||||
- Default
|
- Default
|
||||||
- TransparentFX
|
- TransparentFX
|
||||||
|
@ -11,7 +12,7 @@ TagManager:
|
||||||
-
|
-
|
||||||
- Water
|
- Water
|
||||||
- UI
|
- UI
|
||||||
-
|
- Player
|
||||||
-
|
-
|
||||||
-
|
-
|
||||||
-
|
-
|
||||||
|
|
Reference in a new issue