浮漂脚本修改

This commit is contained in:
2026-03-22 21:22:27 +08:00
parent 90dd86f399
commit 72ba740c29
158 changed files with 1002 additions and 282 deletions

View File

@@ -0,0 +1,16 @@
using UnityEngine;
public class SimpleWaterSurfaceProvider : MonoBehaviour, IWaterSurfaceProvider
{
public float waterLevel = 0f;
public float GetWaterHeight(Vector3 worldPos)
{
return waterLevel;
}
public Vector3 GetWaterNormal(Vector3 worldPos)
{
return Vector3.up;
}
}