Add new meta files and interfaces for project structure

This commit is contained in:
2025-07-11 21:46:14 +02:00
commit 43c1730ed5
3230 changed files with 1428743 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
fileFormatVersion: 2
guid: 7abd07d72a20d46069e0d5d3c3e9bcca
folderAsset: yes
DefaultImporter:
userData:

View File

@@ -0,0 +1,96 @@
using UnityEngine;
namespace Pathfinding.Examples {
using Pathfinding.Drawing;
/// <summary>
/// Moves an object along a spline.
/// Helper script in the example scene called 'Moving'.
/// </summary>
[HelpURL("https://arongranberg.com/astar/documentation/stable/beziermover.html")]
public class BezierMover : VersionedMonoBehaviour {
public Transform[] points;
public float speed = 1;
public float tiltAmount = 1f;
public float tiltSmoothing = 1.0f;
float time = 0;
Vector3 averageCurvature;
Vector3 Evaluate (float t, out Vector3 derivative, out Vector3 secondDerivative, out Vector3 curvature) {
int c = points.Length;
int pt = (Mathf.FloorToInt(t) + c) % c;
var p0 = points[(pt-1+c)%c].position;
var p1 = points[pt].position;
var p2 = points[(pt+1)%c].position;
var p3 = points[(pt+2)%c].position;
var tprime = t - Mathf.FloorToInt(t);
CatmullRomToBezier(p0, p1, p2, p3, out var c0, out var c1, out var c2, out var c3);
derivative = AstarSplines.CubicBezierDerivative(c0, c1, c2, c3, tprime);
secondDerivative = AstarSplines.CubicBezierSecondDerivative(c0, c1, c2, c3, tprime);
curvature = Curvature(derivative, secondDerivative);
return AstarSplines.CubicBezier(c0, c1, c2, c3, tprime);
}
/// <summary>Converts a catmull-rom spline to bezier control points</summary>
static void CatmullRomToBezier (Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, out Vector3 c0, out Vector3 c1, out Vector3 c2, out Vector3 c3) {
c0 = p1;
c1 = (-p0 + 6*p1 + 1*p2)*(1/6.0f);
c2 = (p1 + 6*p2 - p3)*(1/6.0f);
c3 = p2;
}
static Vector3 Curvature (Vector3 derivate, Vector3 secondDerivative) {
var dx = derivate.magnitude;
if (dx < 0.000001f) return Vector3.zero;
return Vector3.Cross(derivate, secondDerivative) / (dx*dx*dx);
}
/// <summary>Update is called once per frame</summary>
void Update () {
// Move the agent a small distance along the path, according to its speed
float mn = time;
float mx = time+1;
while (mx - mn > 0.0001f) {
float mid = (mn+mx)/2;
Vector3 p = Evaluate(mid, out var dummy1, out var dummy2, out var dummy3);
if ((p-transform.position).sqrMagnitude > (speed*Time.deltaTime)*(speed*Time.deltaTime)) {
mx = mid;
} else {
mn = mid;
}
}
time = (mn+mx)/2;
transform.position = Evaluate(time, out var derivative, out var dummy, out var curvature);
averageCurvature = Vector3.Lerp(averageCurvature, curvature, Time.deltaTime);
// Estimate the acceleration at the current point and use it to tilt the object inwards on the curve
var centripetalAcceleration = -Vector3.Cross(derivative.normalized, averageCurvature);
var up = new Vector3(0, 1/(tiltAmount + 0.00001f), 0) + centripetalAcceleration;
transform.rotation = Quaternion.LookRotation(derivative, up);
}
public override void DrawGizmos () {
if (points != null && points.Length >= 3) {
for (int i = 0; i < points.Length; i++) if (points[i] == null) return;
Vector3 pp = Evaluate(0, out var derivative, out var secondDerivative, out var curvature);
for (int pt = 0; pt < points.Length; pt++) {
for (int i = 1; i <= 100; i++) {
var p = Evaluate(pt + (i / 100f), out derivative, out secondDerivative, out curvature);
Draw.Line(pp, p, Color.white);
pp = p;
}
}
}
}
}
}

View File

@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: 0763f4ebc1f4946a1a250c08ae8f1cb0
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example13_Moving/BezierMover.cs
uploadId: 764484

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4b00c6f950101422fa5468a704bece11
DefaultImporter:
userData:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example13_Moving/Moving.unity
uploadId: 764484

View File

@@ -0,0 +1,63 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!850595691 &4890085278179872738
LightingSettings:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: MovingSettings
serializedVersion: 2
m_GIWorkflowMode: 1
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
m_RealtimeEnvironmentLighting: 1
m_BounceScale: 1
m_AlbedoBoost: 1
m_IndirectOutputScale: 1
m_UsingShadowmask: 0
m_BakeBackend: 0
m_LightmapMaxSize: 1024
m_BakeResolution: 8
m_Padding: 2
m_TextureCompression: 0
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 0
m_CompAOExponentDirect: 0
m_ExtractAO: 0
m_MixedBakeMode: 1
m_LightmapsBakeMode: 1
m_FilterMode: 1
m_LightmapParameters: {fileID: 0}
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_RealtimeResolution: 1
m_ForceWhiteAlbedo: 0
m_ForceUpdates: 0
m_FinalGather: 0
m_FinalGatherRayCount: 1024
m_FinalGatherFiltering: 1
m_PVRCulling: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 500
m_PVREnvironmentSampleCount: 500
m_PVREnvironmentReferencePointCount: 2048
m_LightProbeSampleCountMultiplier: 4
m_PVRBounces: 2
m_PVRRussianRouletteStartBounce: 2
m_PVREnvironmentMIS: 0
m_PVRFilteringMode: 0
m_PVRDenoiserTypeDirect: 0
m_PVRDenoiserTypeIndirect: 0
m_PVRDenoiserTypeAO: 0
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1

View File

@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: a89d235d3ffca2fd18542d636ad53be7
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example13_Moving/MovingSettings.lighting
uploadId: 764484

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e11f893ed7c0f4cfeb3fafd4d75ce7e5
NativeFormatImporter:
userData:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example13_Moving/Ship.anim
uploadId: 764484

View File

@@ -0,0 +1,53 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!91 &9100000
AnimatorController:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Ship
serializedVersion: 2
m_AnimatorParameters: []
m_AnimatorLayers:
- serializedVersion: 3
m_Name: Base Layer
m_StateMachine: {fileID: 110700000}
m_Mask: {fileID: 0}
m_BlendingMode: 0
m_SyncedLayerIndex: -1
m_StateMachineMotionSetIndex: 0
m_DefaultWeight: 0
m_IKPass: 0
m_SyncedLayerAffectsTiming: 0
m_Controller: {fileID: 9100000}
--- !u!1102 &110200000
State:
m_ObjectHideFlags: 3
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Ship
m_Speed: 1
m_CycleOffset: 0
m_Motions:
- {fileID: 7400000, guid: e11f893ed7c0f4cfeb3fafd4d75ce7e5, type: 2}
m_ParentStateMachine: {fileID: 110700000}
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
m_Mirror: 0
m_Tag:
--- !u!1107 &110700000
StateMachine:
serializedVersion: 2
m_ObjectHideFlags: 3
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Base Layer
m_DefaultState: {fileID: 110200000}
m_States:
- {fileID: 110200000}
m_ChildStateMachine: []
m_ChildStateMachinePosition: []
m_OrderedTransitions: {}
m_MotionSetCount: 1
m_AnyStatePosition: {x: 50, y: 20, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a304d05fd893d4005ae3b59ef5ca8abb
NativeFormatImporter:
userData:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example13_Moving/Ship.controller
uploadId: 764484

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

View File

@@ -0,0 +1,53 @@
fileFormatVersion: 2
guid: e6f8288974c664a309d6c66de636978c
TextureImporter:
serializedVersion: 2
mipmaps:
mipMapMode: 0
enableMipMap: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapFadeDistanceStart: 2
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: .25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 0
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 512
textureSettings:
filterMode: 1
aniso: 1
mipBias: 0
wrapMode: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: .5, y: .5}
spritePixelsToUnits: 100
alphaIsTransparency: 0
textureType: 0
buildTargetSettings: []
spriteSheet:
sprites: []
spritePackingTag:
userData:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example13_Moving/Water
fallback.jpg
uploadId: 764484

View File

@@ -0,0 +1,27 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: WaterPlane
m_Shader: {fileID: 30, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: []
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 2800000, guid: e6f8288974c664a309d6c66de636978c, type: 3}
m_Scale: {x: 50, y: 50}
m_Offset: {x: 0, y: 0}
m_Floats: {}
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: .286274523}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 40e9cd3d557264fc49df68fe87fe6bdd
NativeFormatImporter:
userData:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example13_Moving/WaterPlane.mat
uploadId: 764484

View File

@@ -0,0 +1,216 @@
fileFormatVersion: 2
guid: 7c600eaf3f82d413b82711b6050e8cae
ModelImporter:
serializedVersion: 22200
internalIDToNameTable:
- first:
1: 100000
second: //RootNode
- first:
1: 100002
second: Camera
- first:
1: 100004
second: Cube
- first:
1: 100006
second: Cylinder
- first:
1: 100008
second: Cylinder_001
- first:
1: 100010
second: Cylinder_002
- first:
1: 100012
second: Lamp
- first:
4: 400000
second: //RootNode
- first:
4: 400002
second: Camera
- first:
4: 400004
second: Cube
- first:
4: 400006
second: Cylinder
- first:
4: 400008
second: Cylinder_001
- first:
4: 400010
second: Cylinder_002
- first:
4: 400012
second: Lamp
- first:
23: 2300000
second: //RootNode
- first:
23: 2300002
second: Cube
- first:
23: 2300004
second: Cylinder
- first:
23: 2300006
second: Cylinder_001
- first:
23: 2300008
second: Cylinder_002
- first:
33: 3300000
second: //RootNode
- first:
33: 3300002
second: Cube
- first:
33: 3300004
second: Cylinder
- first:
33: 3300006
second: Cylinder_001
- first:
33: 3300008
second: Cylinder_002
- first:
43: 4300000
second: Cylinder_002
- first:
43: 4300002
second: Cylinder_001
- first:
43: 4300004
second: Cylinder
- first:
43: 4300006
second: Cube
- first:
64: 6400000
second: Cube
- first:
64: 6400002
second: Cylinder
- first:
64: 6400004
second: Cylinder_001
- first:
64: 6400006
second: Cylinder_002
- first:
74: 7400000
second: Default Take
- first:
95: 9500000
second: //RootNode
externalObjects: {}
materials:
materialImportMode: 0
materialName: 0
materialSearch: 1
materialLocation: 0
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
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: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 1
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importPhysicalCameras: 0
importVisibility: 0
importBlendShapes: 1
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 0
fileIdsGeneration: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
meshOptimizationFlags: -1
indexFormat: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 0
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 0
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 1
tangentImportMode: 4
normalCalculationMode: 0
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 1
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: 0
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 0
importBlendShapeDeformPercent: 0
remapMaterialsIfMaterialImportModeIsNone: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example13_Moving/ship.fbx
uploadId: 764484

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 0f600fff38cef414bbeb67121da1b7c1
folderAsset: yes
timeCreated: 1454764982
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d48ef55be1566fa84b9a384550c1c72a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,14 @@
fileFormatVersion: 2
guid: 15c1a00768b91406da1023481bb6b04e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example15_2D/2D.unity
uploadId: 764484

View File

@@ -0,0 +1,35 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-8277694904904702511
MonoBehaviour:
m_ObjectHideFlags: 3
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: 81180773991d8724ab7f2d216912b564, type: 3}
m_Name: ChromaticAberration
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
intensity:
m_OverrideState: 1
m_Value: 0.359
min: 0
max: 1
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d7fd9488000d3734a9e00ee676215985, type: 3}
m_Name: Volume Profile
m_EditorClassIdentifier:
components:
- {fileID: -8277694904904702511}

View File

@@ -0,0 +1,16 @@
fileFormatVersion: 2
guid: aa7359d2d340388a59dbf89858724683
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example15_2D/2D/Volume
Profile.asset
uploadId: 764484

View File

@@ -0,0 +1,63 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!850595691 &4890085278179872738
LightingSettings:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: 2DSettings
serializedVersion: 2
m_GIWorkflowMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 1
m_RealtimeEnvironmentLighting: 1
m_BounceScale: 1
m_AlbedoBoost: 1
m_IndirectOutputScale: 1
m_UsingShadowmask: 0
m_BakeBackend: 0
m_LightmapMaxSize: 1024
m_BakeResolution: 40
m_Padding: 2
m_TextureCompression: 1
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 0
m_CompAOExponentDirect: 0
m_ExtractAO: 0
m_MixedBakeMode: 1
m_LightmapsBakeMode: 1
m_FilterMode: 1
m_LightmapParameters: {fileID: 0}
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_RealtimeResolution: 2
m_ForceWhiteAlbedo: 0
m_ForceUpdates: 0
m_FinalGather: 0
m_FinalGatherRayCount: 1024
m_FinalGatherFiltering: 1
m_PVRCulling: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 512
m_PVREnvironmentSampleCount: 512
m_PVREnvironmentReferencePointCount: 2048
m_LightProbeSampleCountMultiplier: 4
m_PVRBounces: 2
m_PVRRussianRouletteStartBounce: 2
m_PVREnvironmentMIS: 0
m_PVRFilteringMode: 0
m_PVRDenoiserTypeDirect: 0
m_PVRDenoiserTypeIndirect: 0
m_PVRDenoiserTypeAO: 0
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1

View File

@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: aa059efba77ed654fa92f3bf20ebf808
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example15_2D/2DSettings.lighting
uploadId: 764484

View File

@@ -0,0 +1,36 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 13312, guid: 0000000000000000e000000000000000, type: 0}
m_Name: grid_tile
m_EditorClassIdentifier:
m_Sprite: {fileID: 21300000, guid: fa35a77503f6a45eea6c469775ee446e, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Transform:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_InstancedGameObject: {fileID: 0}
m_Flags: 1
m_ColliderType: 2

View File

@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: d3adca9ac38db87408a27f6f0343f7b8
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example15_2D/grid_tile.asset
uploadId: 764484

View File

@@ -0,0 +1,151 @@
fileFormatVersion: 2
guid: fa35a77503f6a45eea6c469775ee446e
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 16
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 128
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: 0
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 1
swizzle: 50462976
cookieLightType: 1
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape:
- - {x: 64, y: 64}
- {x: -64, y: 64}
- {x: -64, y: -64}
- {x: 64, y: -64}
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 1537655665
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example15_2D/grid_tile.psd
uploadId: 764484

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 76813da87503f4cd0996981feccfe2af
folderAsset: yes
timeCreated: 1513357358
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 5a2cef7156d2543238f5333662d89581
folderAsset: yes
timeCreated: 1514492845
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,67 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!91 &9100000
AnimatorController:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Pillars
serializedVersion: 5
m_AnimatorParameters: []
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
m_StateMachine: {fileID: 110724354}
m_Mask: {fileID: 0}
m_Motions: []
m_Behaviours: []
m_BlendingMode: 0
m_SyncedLayerIndex: -1
m_DefaultWeight: 0
m_IKPass: 0
m_SyncedLayerAffectsTiming: 0
m_Controller: {fileID: 9100000}
--- !u!1102 &110256076
AnimatorState:
serializedVersion: 5
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: RTSBattery
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
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_Motion: {fileID: 7400000, guid: 96116ab9f19c645579d6598ac45be5e5, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
--- !u!1107 &110724354
AnimatorStateMachine:
serializedVersion: 5
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Base Layer
m_ChildStates:
- serializedVersion: 1
m_State: {fileID: 110256076}
m_Position: {x: 200, y: 0, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions: []
m_EntryTransitions: []
m_StateMachineTransitions: {}
m_StateMachineBehaviours: []
m_AnyStatePosition: {x: 50, y: 20, z: 0}
m_EntryPosition: {x: 50, y: 120, z: 0}
m_ExitPosition: {x: 800, y: 120, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
m_DefaultState: {fileID: 110256076}

View File

@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: 031a25b155c9d43b69c6023cf1931b06
timeCreated: 1514492920
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Animations/Pillars.controller
uploadId: 764484

View File

@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: 96116ab9f19c645579d6598ac45be5e5
timeCreated: 1514492880
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Animations/RTSBattery.anim
uploadId: 764484

View File

@@ -0,0 +1,151 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!74 &7400000
AnimationClip:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: RTSHarvesterHarvesting
serializedVersion: 6
m_Legacy: 0
m_Compressed: 0
m_UseHighQualityCurve: 1
m_RotationCurves: []
m_CompressedRotationCurves: []
m_PositionCurves: []
m_ScaleCurves: []
m_FloatCurves:
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 31
m_PreInfinity: 2
m_PostInfinity: 2
attribute: EmissionModule.enabled
path: HarvestingParticles1
classID: 198
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 31
m_PreInfinity: 2
m_PostInfinity: 2
attribute: EmissionModule.enabled
path: HarvestingParticles2
classID: 198
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: -1
inSlope: 0
outSlope: 0
tangentMode: 10
m_PreInfinity: 2
m_PostInfinity: 2
attribute: InitialModule.gravityModifier
path: HarvestingParticles1
classID: 198
script: {fileID: 0}
m_PPtrCurves: []
m_SampleRate: 60
m_WrapMode: 0
m_Bounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings:
- path: 497223926
attribute: 1087013301
script: {fileID: 0}
classID: 198
customType: 0
isPPtrCurve: 0
- path: 2225756492
attribute: 1087013301
script: {fileID: 0}
classID: 198
customType: 0
isPPtrCurve: 0
- path: 497223926
attribute: 1210821651
script: {fileID: 0}
classID: 198
customType: 0
isPPtrCurve: 0
pptrCurveMapping: []
m_AnimationClipSettings:
serializedVersion: 2
m_StartTime: 0
m_StopTime: 0
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
m_LoopTime: 1
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
m_LoopBlendPositionXZ: 0
m_KeepOriginalOrientation: 0
m_KeepOriginalPositionY: 1
m_KeepOriginalPositionXZ: 0
m_HeightFromFeet: 0
m_Mirror: 0
m_EditorCurves:
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 31
m_PreInfinity: 2
m_PostInfinity: 2
attribute: EmissionModule.enabled
path: HarvestingParticles1
classID: 198
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 1
inSlope: Infinity
outSlope: Infinity
tangentMode: 31
m_PreInfinity: 2
m_PostInfinity: 2
attribute: EmissionModule.enabled
path: HarvestingParticles2
classID: 198
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: -1
inSlope: 0
outSlope: 0
tangentMode: 10
m_PreInfinity: 2
m_PostInfinity: 2
attribute: InitialModule.gravityModifier
path: HarvestingParticles1
classID: 198
script: {fileID: 0}
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
m_GenerateMotionCurves: 0
m_Events: []

View File

@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: 3a74b841cf7654b87bfb014fa4f3ec0a
timeCreated: 1538131133
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Animations/RTSHarvesterHarvesting.anim
uploadId: 764484

View File

@@ -0,0 +1,151 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!74 &7400000
AnimationClip:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: RTSHarvesterHarvestingExit
serializedVersion: 6
m_Legacy: 0
m_Compressed: 0
m_UseHighQualityCurve: 1
m_RotationCurves: []
m_CompressedRotationCurves: []
m_PositionCurves: []
m_ScaleCurves: []
m_FloatCurves:
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 31
m_PreInfinity: 2
m_PostInfinity: 2
attribute: EmissionModule.enabled
path: HarvestingParticles1
classID: 198
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 31
m_PreInfinity: 2
m_PostInfinity: 2
attribute: EmissionModule.enabled
path: HarvestingParticles2
classID: 198
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: .100000001
inSlope: 0
outSlope: 0
tangentMode: 10
m_PreInfinity: 2
m_PostInfinity: 2
attribute: InitialModule.gravityModifier
path: HarvestingParticles1
classID: 198
script: {fileID: 0}
m_PPtrCurves: []
m_SampleRate: 60
m_WrapMode: 0
m_Bounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings:
- path: 497223926
attribute: 1087013301
script: {fileID: 0}
classID: 198
customType: 0
isPPtrCurve: 0
- path: 2225756492
attribute: 1087013301
script: {fileID: 0}
classID: 198
customType: 0
isPPtrCurve: 0
- path: 497223926
attribute: 1210821651
script: {fileID: 0}
classID: 198
customType: 0
isPPtrCurve: 0
pptrCurveMapping: []
m_AnimationClipSettings:
serializedVersion: 2
m_StartTime: 0
m_StopTime: 0
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
m_LoopTime: 1
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
m_LoopBlendPositionXZ: 0
m_KeepOriginalOrientation: 0
m_KeepOriginalPositionY: 1
m_KeepOriginalPositionXZ: 0
m_HeightFromFeet: 0
m_Mirror: 0
m_EditorCurves:
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 31
m_PreInfinity: 2
m_PostInfinity: 2
attribute: EmissionModule.enabled
path: HarvestingParticles1
classID: 198
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 31
m_PreInfinity: 2
m_PostInfinity: 2
attribute: EmissionModule.enabled
path: HarvestingParticles2
classID: 198
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: .100000001
inSlope: 0
outSlope: 0
tangentMode: 10
m_PreInfinity: 2
m_PostInfinity: 2
attribute: InitialModule.gravityModifier
path: HarvestingParticles1
classID: 198
script: {fileID: 0}
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
m_GenerateMotionCurves: 0
m_Events: []

View File

@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: d2c286cb327d244aca17099e45f195dd
timeCreated: 1538132418
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Animations/RTSHarvesterHarvestingExit.anim
uploadId: 764484

View File

@@ -0,0 +1,151 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!74 &7400000
AnimationClip:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: RTSHarvesterNormal
serializedVersion: 6
m_Legacy: 0
m_Compressed: 0
m_UseHighQualityCurve: 1
m_RotationCurves: []
m_CompressedRotationCurves: []
m_PositionCurves: []
m_ScaleCurves: []
m_FloatCurves:
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 31
m_PreInfinity: 2
m_PostInfinity: 2
attribute: EmissionModule.enabled
path: HarvestingParticles1
classID: 198
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 31
m_PreInfinity: 2
m_PostInfinity: 2
attribute: EmissionModule.enabled
path: HarvestingParticles2
classID: 198
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: -1
inSlope: 0
outSlope: 0
tangentMode: 10
m_PreInfinity: 2
m_PostInfinity: 2
attribute: InitialModule.gravityModifier
path: HarvestingParticles1
classID: 198
script: {fileID: 0}
m_PPtrCurves: []
m_SampleRate: 60
m_WrapMode: 0
m_Bounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings:
- path: 497223926
attribute: 1087013301
script: {fileID: 0}
classID: 198
customType: 0
isPPtrCurve: 0
- path: 2225756492
attribute: 1087013301
script: {fileID: 0}
classID: 198
customType: 0
isPPtrCurve: 0
- path: 497223926
attribute: 1210821651
script: {fileID: 0}
classID: 198
customType: 0
isPPtrCurve: 0
pptrCurveMapping: []
m_AnimationClipSettings:
serializedVersion: 2
m_StartTime: 0
m_StopTime: 0
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
m_LoopTime: 1
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
m_LoopBlendPositionXZ: 0
m_KeepOriginalOrientation: 0
m_KeepOriginalPositionY: 1
m_KeepOriginalPositionXZ: 0
m_HeightFromFeet: 0
m_Mirror: 0
m_EditorCurves:
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 31
m_PreInfinity: 2
m_PostInfinity: 2
attribute: EmissionModule.enabled
path: HarvestingParticles1
classID: 198
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 0
inSlope: Infinity
outSlope: Infinity
tangentMode: 31
m_PreInfinity: 2
m_PostInfinity: 2
attribute: EmissionModule.enabled
path: HarvestingParticles2
classID: 198
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: -1
inSlope: 0
outSlope: 0
tangentMode: 10
m_PreInfinity: 2
m_PostInfinity: 2
attribute: InitialModule.gravityModifier
path: HarvestingParticles1
classID: 198
script: {fileID: 0}
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
m_GenerateMotionCurves: 0
m_Events: []

View File

@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: f043fa64116764b97966e6aa206c6ded
timeCreated: 1538131677
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Animations/RTSHarvesterNormal.anim
uploadId: 764484

View File

@@ -0,0 +1,203 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!91 &9100000
AnimatorController:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: RTSUnitHarvester
serializedVersion: 5
m_AnimatorParameters:
- m_Name: harvesting
m_Type: 4
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
m_StateMachine: {fileID: 110782498}
m_Mask: {fileID: 0}
m_Motions: []
m_Behaviours: []
m_BlendingMode: 0
m_SyncedLayerIndex: -1
m_DefaultWeight: 0
m_IKPass: 0
m_SyncedLayerAffectsTiming: 0
m_Controller: {fileID: 9100000}
--- !u!1101 &110103492
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 1
m_ConditionEvent: harvesting
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 110288442}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.1
m_TransitionOffset: 0
m_ExitTime: 0.9
m_HasExitTime: 0
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1101 &110153980
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name:
m_Conditions: []
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 110287710}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.1
m_TransitionOffset: 0
m_ExitTime: 0.9
m_HasExitTime: 1
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1101 &110182832
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 2
m_ConditionEvent: harvesting
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 110267700}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.1
m_TransitionOffset: 0
m_ExitTime: 0.9
m_HasExitTime: 0
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1102 &110267700
AnimatorState:
serializedVersion: 5
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: RTSHarvesterHarvestingExit
m_Speed: 1
m_CycleOffset: 0
m_Transitions:
- {fileID: 110153980}
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: 7400000, guid: d2c286cb327d244aca17099e45f195dd, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!1102 &110287710
AnimatorState:
serializedVersion: 5
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: RTSHarvesterNormal
m_Speed: 1
m_CycleOffset: 0
m_Transitions:
- {fileID: 110103492}
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: 7400000, guid: f043fa64116764b97966e6aa206c6ded, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!1102 &110288442
AnimatorState:
serializedVersion: 5
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: RTSHarvesterHarvesting
m_Speed: 1
m_CycleOffset: 0
m_Transitions:
- {fileID: 110182832}
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: 7400000, guid: 3a74b841cf7654b87bfb014fa4f3ec0a, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!1107 &110782498
AnimatorStateMachine:
serializedVersion: 5
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Base Layer
m_ChildStates:
- serializedVersion: 1
m_State: {fileID: 110288442}
m_Position: {x: 156, y: -96, z: 0}
- serializedVersion: 1
m_State: {fileID: 110287710}
m_Position: {x: 276, y: 168, z: 0}
- serializedVersion: 1
m_State: {fileID: 110267700}
m_Position: {x: 480, y: -36, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions: []
m_EntryTransitions: []
m_StateMachineTransitions: {}
m_StateMachineBehaviours: []
m_AnyStatePosition: {x: 50, y: 20, z: 0}
m_EntryPosition: {x: 50, y: 120, z: 0}
m_ExitPosition: {x: 800, y: 120, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
m_DefaultState: {fileID: 110287710}

View File

@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: fbd910435595247579daf47dbc7c8172
timeCreated: 1538131133
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Animations/RTSUnitHarvester.controller
uploadId: 764484

View File

@@ -0,0 +1,157 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!74 &7400000
AnimationClip:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: WorkerLight
serializedVersion: 6
m_Legacy: 0
m_Compressed: 0
m_UseHighQualityCurve: 1
m_RotationCurves: []
m_CompressedRotationCurves: []
m_PositionCurves: []
m_ScaleCurves: []
m_FloatCurves:
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 2
inSlope: 0
outSlope: 0
tangentMode: 0
- time: 2
value: 3
inSlope: 0
outSlope: 0
tangentMode: 10
- time: 4
value: 2
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
attribute: m_Intensity
path:
classID: 108
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: .100000001
inSlope: 0
outSlope: 0
tangentMode: 0
- time: 2
value: .300000012
inSlope: 0
outSlope: 0
tangentMode: 10
- time: 4
value: .100000001
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
attribute: m_Range
path:
classID: 108
script: {fileID: 0}
m_PPtrCurves: []
m_SampleRate: 60
m_WrapMode: 0
m_Bounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings:
- path: 0
attribute: 898800009
script: {fileID: 0}
classID: 108
customType: 0
isPPtrCurve: 0
- path: 0
attribute: 514968105
script: {fileID: 0}
classID: 108
customType: 0
isPPtrCurve: 0
pptrCurveMapping: []
m_AnimationClipSettings:
serializedVersion: 2
m_StartTime: 0
m_StopTime: 4
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
m_LoopTime: 1
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
m_LoopBlendPositionXZ: 0
m_KeepOriginalOrientation: 0
m_KeepOriginalPositionY: 1
m_KeepOriginalPositionXZ: 0
m_HeightFromFeet: 0
m_Mirror: 0
m_EditorCurves:
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: 2
inSlope: 0
outSlope: 0
tangentMode: 0
- time: 2
value: 3
inSlope: 0
outSlope: 0
tangentMode: 10
- time: 4
value: 2
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
attribute: m_Intensity
path:
classID: 108
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- time: 0
value: .100000001
inSlope: 0
outSlope: 0
tangentMode: 0
- time: 2
value: .300000012
inSlope: 0
outSlope: 0
tangentMode: 10
- time: 4
value: .100000001
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
attribute: m_Range
path:
classID: 108
script: {fileID: 0}
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
m_GenerateMotionCurves: 0
m_Events: []

View File

@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: 363261d1eb4094713860d6582a112b82
timeCreated: 1538074257
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Animations/WorkerLight.anim
uploadId: 764484

View File

@@ -0,0 +1,67 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!91 &9100000
AnimatorController:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: WorkerLight
serializedVersion: 5
m_AnimatorParameters: []
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
m_StateMachine: {fileID: 110772278}
m_Mask: {fileID: 0}
m_Motions: []
m_Behaviours: []
m_BlendingMode: 0
m_SyncedLayerIndex: -1
m_DefaultWeight: 0
m_IKPass: 0
m_SyncedLayerAffectsTiming: 0
m_Controller: {fileID: 9100000}
--- !u!1102 &110251166
AnimatorState:
serializedVersion: 5
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: WorkerLight
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
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_Motion: {fileID: 7400000, guid: 363261d1eb4094713860d6582a112b82, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
--- !u!1107 &110772278
AnimatorStateMachine:
serializedVersion: 5
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Base Layer
m_ChildStates:
- serializedVersion: 1
m_State: {fileID: 110251166}
m_Position: {x: 200, y: 0, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions: []
m_EntryTransitions: []
m_StateMachineTransitions: {}
m_StateMachineBehaviours: []
m_AnyStatePosition: {x: 50, y: 20, z: 0}
m_EntryPosition: {x: 50, y: 120, z: 0}
m_ExitPosition: {x: 800, y: 120, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
m_DefaultState: {fileID: 110251166}

View File

@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: f6f9230ad7c5841cd8337dd93072f23a
timeCreated: 1538074257
licenseType: Store
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Animations/WorkerLight.controller
uploadId: 764484

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3f12a5347747843e8a4750946d92a8e4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f43cf7b8645244c57a42e7d1447f33d5
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,30 @@
fileFormatVersion: 2
guid: a8d6e057fd332a5c09c6c1ed4c5dfd84
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/music/Abnormal
Perfection (Ambient mix).ogg
uploadId: 764484

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: cc2a1c88c857048c39af41483cffe086
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8edf46d5bcd51449db4f963e4e539534
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,30 @@
fileFormatVersion: 2
guid: d00a88946596443479c284ca28cc0334
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 0.64
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/movement/Motor
19.ogg
uploadId: 764484

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 67f99d1a4ae0e4f548a9fece497f32e4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: 631d14ace6fe44d2e9642e6d1e844e3e
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 0.42
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/ui/PremiumBeat_0013_cursor_click_11.wav
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: 1d2bf7671984b4133912542be46464af
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/ui/PremiumBeat_0046_sci_fi_beep_electric.wav
uploadId: 764484

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 91bf40dd4548f45bc89444f1cef8e04d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: b6d3f0aac49764654879e55ed401c6f2
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/CK_Blaster_Shot-01.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: 3499b73250e39416384d528a00cdabaf
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Heavy_01_Shot-1.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: caa1bad5b26374e16ad950b6a3d1f1dc
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Heavy_01_Shot-2.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: a46cdb78bb95a43e883584dfddb99dbe
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Heavy_01_Shot-3.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: dfd2b9eea85bd45c28b8f42fcf9015e1
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Heavy_01_Shot-4.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: f329e9b1721c84881bbf7201c9cf50df
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Heavy_04_Shot-1.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: 12ff1683c68e14be098261f15135b8f7
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Heavy_04_Shot-2.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: a733e04d67ce3499aa5ebf9cf86db5e9
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Heavy_04_Shot-3.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: 13f79494ea7a6455ea486bb1e5488398
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Light_08_Shot-1.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: bd5c0b42a65644604a795f548fa527ac
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Light_08_Shot-2.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: 048669defbe104854a51f043d4dbb548
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Light_08_Shot-3.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: bcb891387ed904ad2890076972ded27d
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Light_08_Shot-4.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: 1cb655483e120469595288ac236be536
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Light_08_Shot-5.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: ee79bc1a25eda461e84e5c07c45f9879
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Light_08_Shot-6.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: bc6a2e8b444154b179cd1bbd397de6b0
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 0.65
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Light_13_Shot-1.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: 301f3bb39571e4c7dbb509e983756ae3
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 0.65
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Light_13_Shot-2.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: ddeae84bc3650493b8f313502c9e475d
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 0.65
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Light_13_Shot-3.ogg
uploadId: 764484

View File

@@ -0,0 +1,29 @@
fileFormatVersion: 2
guid: f397e705778544f01afc8ce3216f6df8
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 0.65
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/Audio/sfx/weapons/DS_Light_13_Shot-4.ogg
uploadId: 764484

View File

@@ -0,0 +1,420 @@
using System;
using UnityEngine;
using System.Linq;
using Pathfinding.RVO;
namespace Pathfinding.Examples.RTS {
public enum Status {
Invalid,
Failure,
Success,
Running
};
public class BTContext {
public RTSUnit unit;
public Transform transform;
public Animator animator;
}
/// <summary>Implements a simple behavior tree. This is the base class for all nodes in the tree.</summary>
public abstract class BTNode {
protected Status lastStatus;
public Status Tick (BTContext ctx) {
if (lastStatus == Status.Invalid) OnInit(ctx);
lastStatus = DoTick(ctx);
if (lastStatus == Status.Invalid) throw new System.Exception();
return lastStatus;
}
public void Terminate (BTContext ctx) {
OnTerminate(ctx);
lastStatus = Status.Invalid;
}
protected virtual void OnInit (BTContext ctx) {
}
protected virtual void OnTerminate (BTContext ctx) {
}
protected abstract Status DoTick(BTContext ctx);
}
public class BTTransparent : BTNode {
public BTNode child;
protected override void OnTerminate (BTContext ctx) {
child.Terminate(ctx);
}
protected override Status DoTick (BTContext ctx) {
return child.Tick(ctx);
}
}
public class Once : BTNode {
public BTNode child;
public Once (BTNode child) { this.child = child; }
protected override void OnTerminate (BTContext ctx) {
if (lastStatus == Status.Running) child.Terminate(ctx);
}
protected override Status DoTick (BTContext ctx) {
if (lastStatus == Status.Success) return Status.Success;
var s = child.Tick(ctx);
if (s == Status.Success) {
child.Terminate(ctx);
}
return s;
}
}
public class SimpleAction : BTNode {
public System.Action<BTContext> action;
public SimpleAction (System.Action<BTContext> action) { this.action = action; }
protected override Status DoTick (BTContext ctx) {
action(ctx);
return Status.Success;
}
}
public class Condition : BTNode {
public System.Func<BTContext, bool> predicate;
public Condition (System.Func<BTContext, bool> predicate) { this.predicate = predicate; }
protected override Status DoTick (BTContext ctx) {
return predicate(ctx) ? Status.Success : Status.Failure;
}
}
public class BTSequence : BTNode {
public BTNode[] children;
int childIndex = -1;
public BTSequence (BTNode[] children) {
this.children = children;
}
protected override void OnInit (BTContext ctx) {
childIndex = 0;
}
protected override void OnTerminate (BTContext ctx) {
for (int i = 0; i <= childIndex; i++) {
children[i].Terminate(ctx);
}
childIndex = -1;
}
protected override Status DoTick (BTContext ctx) {
int i;
for (i = 0; i < children.Length; i++) {
var s = children[i].Tick(ctx);
if (s != Status.Success) {
// Terminate all nodes that executed the last frame, but did not execute this frame
for (int j = i + 1; j <= childIndex; j++) children[j].Terminate(ctx);
childIndex = i;
return s;
}
}
childIndex = i - 1;
return Status.Success;
}
}
public class BTSelector : BTNode {
public BTNode[] children;
int childIndex = -1;
public BTSelector (BTNode[] children) {
this.children = children;
}
protected override void OnInit (BTContext ctx) {
}
protected override void OnTerminate (BTContext ctx) {
for (int i = 0; i <= childIndex; i++) {
children[i].Terminate(ctx);
}
childIndex = -1;
}
protected override Status DoTick (BTContext ctx) {
int i;
for (i = 0; i < children.Length; i++) {
var s = children[i].Tick(ctx);
if (s != Status.Failure) {
// Terminate all nodes that executed the last frame, but did not execute this frame
for (int j = i + 1; j <= childIndex; j++) children[j].Terminate(ctx);
childIndex = i;
return s;
}
}
childIndex = i - 1;
return Status.Failure;
}
}
class Binding<T> {
T val;
public System.Func<T> getter;
public System.Action<T> setter;
public T value {
get {
if (getter != null) return getter();
return val;
}
set {
if (setter != null) setter(value);
val = value;
}
}
}
public struct Value<T> {
T val;
Binding<T> binding;
public T value {
get {
if (binding != null) return binding.value;
return val;
}
set {
if (binding != null) binding.value = value;
val = value;
}
}
public void Bind (ref Value<T> other) {
if (other.binding != null && binding == null) binding = other.binding;
else if (binding == null && other.binding != null) other.binding = binding;
else if (binding == null) binding = other.binding = new Binding<T>();
else throw new System.Exception("Too complex binding");
}
public void Bind (System.Func<T> other) {
if (binding != null) throw new System.Exception("Already has a binding");
binding = new Binding<T>();
binding.getter = other;
binding.setter = _ => {
throw new System.InvalidOperationException("Trying to assign a value which has been bound as read-only (using a delegate)");
};
}
public Value<T> Bound {
get {
var r = this;
if (binding == null) Bind(ref r);
return r;
}
}
public Value (System.Func<T> getter) {
val = default(T);
binding = null;
Bind(getter);
}
public static implicit operator Value<T>(System.Func<T> getter) {
var val = new Value<T>();
val.Bind(getter);
return val;
}
}
public class BTMove : BTNode {
public Value<Vector3> destination;
public BTMove (Value<Vector3> destination) {
this.destination = destination;
}
protected override void OnInit (BTContext ctx) {
ctx.unit.SetDestination(destination.value, MovementMode.Move);
}
protected override Status DoTick (BTContext ctx) {
var dest = destination.value;
if ((Time.frameCount % 100) == 0) ctx.unit.SetDestination(dest, MovementMode.Move);
if (VectorMath.SqrDistanceXZ(ctx.transform.position, dest) < 0.5f * 0.5f) {
return Status.Success;
} else {
return Status.Running;
}
}
}
public class FindClosestUnit : BTNode {
public Value<RTSUnit> target;
public bool reserve;
RTSUnit.Type type;
public FindClosestUnit (RTSUnit.Type type) {
this.type = type;
}
protected override void OnTerminate (BTContext ctx) {
if (reserve && target.value != null) {
if (target.value.reservedBy != ctx.unit) throw new System.Exception();
target.value.reservedBy = null;
}
target.value = null;
}
RTSUnit FindClosest (Vector3 point) {
var units = RTSManager.instance.units.units;
RTSUnit closest = null;
var dist = float.PositiveInfinity;
for (int i = 0; i < units.Count; i++) {
var unit = units[i];
if (unit.type != type || (reserve && unit.reservedBy != null)) {
continue;
}
if (unit.resource != null && !unit.resource.harvestable) {
continue;
}
var d = (unit.transform.position - point).sqrMagnitude;
if (d < dist) {
dist = d;
closest = unit;
}
}
return closest;
}
protected override Status DoTick (BTContext ctx) {
if (target.value != null) {
return Status.Success;
}
target.value = FindClosest(ctx.transform.position);
if (target.value != null) {
if (reserve) target.value.reservedBy = ctx.unit;
return Status.Success;
}
return Status.Failure;
}
}
static class Behaviors {
public static BTNode HarvestBehavior () {
var reserve = new FindClosestUnit(RTSUnit.Type.ResourceCrystal) { reserve = true };
var dropoff = new FindClosestUnit(RTSUnit.Type.HarvesterDropoff) { reserve = true };
var dropoffQueue = new FindClosestUnit(RTSUnit.Type.HarvesterDropoffQueue);
return new BTSelector(new BTNode[] {
new HarvestMode() {
child = new BTSelector(new BTNode[] {
new BTSequence(new BTNode[] {
new Condition(ctx => ctx.unit.storedCrystals > 0),
new BTSequence(new BTNode[] {
dropoff,
new BTMove(new Value<Vector3>(() => dropoff.target.value.transform.position)),
new SimpleAction(ctx => {
ctx.unit.owner.resources.AddResource(RTSUnit.Type.ResourceCrystal, ctx.unit.storedCrystals);
ctx.unit.storedCrystals = 0;
}),
})
//new Deposit(move1),
}),
new BTSequence(new BTNode[] {
new Condition(ctx => ctx.unit.storedCrystals == 0),
new BTSequence(new BTNode[] {
reserve,
new BTMove(new Value<Vector3>(() => reserve.target.value.transform.position)),
new Harvest { resource = new Value<RTSHarvestableResource>(() => reserve.target.value.resource), duration = 5 },
}),
})
})
},
new BTSequence(new BTNode[] {
dropoffQueue,
new BTMove(new Value<Vector3>(() => dropoffQueue.target.value.transform.position)),
})
});
}
}
public class HarvestMode : BTTransparent {
protected override void OnTerminate (BTContext ctx) {
ctx.unit.GetComponent<RVOController>().layer = RVO.RVOLayer.Layer2;
base.OnTerminate(ctx);
}
protected override Status DoTick (BTContext ctx) {
var s = base.DoTick(ctx);
ctx.unit.GetComponent<RVOController>().layer = s == Status.Running ? RVO.RVOLayer.Layer3 : RVO.RVOLayer.Layer2;
return s;
}
}
public class Harvest : BTNode {
public Value<RTSHarvestableResource> resource;
public float duration = 5;
float time;
protected override void OnInit (BTContext ctx) {
ctx.animator.SetBool("harvesting", true);
//ctx.unit.locked = true;
}
protected override void OnTerminate (BTContext ctx) {
Debug.Log("Terminated harvesting");
ctx.animator.SetBool("harvesting", false);
}
protected override Status DoTick (BTContext ctx) {
time += Time.deltaTime;
if (time > duration) {
ctx.animator.SetBool("harvesting", false);
if (ctx.animator.GetCurrentAnimatorStateInfo(0).IsName("RTSHarvesterHarvesting") || ctx.animator.GetCurrentAnimatorStateInfo(0).IsName("RTSHarvesterHarvestingExit")) {
return Status.Running;
} else {
ctx.unit.storedCrystals += 50;
resource.value.value -= 50;
time = 0;
//ctx.unit.locked = false;
return Status.Success;
}
} else {
return Status.Running;
}
}
}
public class BTHarvest {
/*RTSCommandMove moveToDepositPoint;
RTSCommandMove moveToHarvestPoint;
void Deposit () {
}
public override void Tick () {
if (HasResources()) {
if (moveToDepositPoint.Tick() == Success) {
Deposit();
}
} else {
var target = ReserveTarget();
moveToHarvestPoint.target = target;
if (moveToHarvestPoint.Tick() == Success) {
Harvest(target);
}
}
}*/
}
}

View File

@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 8057fe44d8f5e414b808b891e72f5682
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 87744
packageName: A* Pathfinding Project Pro
packageVersion: 5.3.8
assetPath: Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/BTNode.cs
uploadId: 764484

View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: b6a2076aece164250a094f3540b79068
folderAsset: yes
timeCreated: 1514466036
licenseType: Store
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

Some files were not shown because too many files have changed in this diff Show More