update 1.2.0

This commit is contained in:
2025-07-20 10:05:55 +08:00
parent 2afbbf9be4
commit 5396d3e4b8
102 changed files with 93826 additions and 357 deletions
@@ -112,7 +112,7 @@ namespace EmeraldAI
if (hit.collider != null)
{
//Get the tag of detected raycast collider.
var StepData = FootstepSurfaces.Find(step => step.SurfaceType == FootstepSurfaceObject.SurfaceTypes.Tag && step.SurfaceTag == hit.collider.tag);
var StepData = FootstepSurfaces.Find(step => step.SurfaceType == FootstepSurfaceObject.SurfaceTypes.Tag && hit.collider.CompareTag(step.SurfaceTag));
//If the StepData is null, check for a terrain. If a terrain is found, get the most dominant texture for the footstep's position.
//Use this texture to determine the Surface Data that should be used for this footstep.