升级6.4.升级水,升级天气

This commit is contained in:
2026-04-05 00:26:54 +08:00
parent 63bc9b5536
commit 5f7cbfb713
635 changed files with 34718 additions and 22567 deletions

View File

@@ -2,6 +2,7 @@
// Copyright © 2024 Wave Harmonic. All rights reserved.
using UnityEngine;
using WaveHarmonic.Crest.Internal;
namespace WaveHarmonic.Crest.Watercraft
{
@@ -9,7 +10,7 @@ namespace WaveHarmonic.Crest.Watercraft
/// Controls provide input whether from the player or otherwise. Extend to
/// implement a control. See derived classes for examples.
/// </summary>
public abstract class Control : MonoBehaviour
public abstract class Control : CustomBehaviour
{
/// <summary>
/// Provides input for controllers. XYZ is steer, float and drive respectively.

View File

@@ -11,11 +11,6 @@ namespace WaveHarmonic.Crest.Watercraft
[AddComponentMenu(Constants.k_MenuPrefixPhysics + "Watercraft Control (Constant)")]
public sealed partial class FixedControl : Control
{
[SerializeField, HideInInspector]
#pragma warning disable 414
int _Version = 0;
#pragma warning restore 414
[@GenerateAPI]
[Tooltip("Constantly move."), SerializeField]
float _Move = 0;
@@ -24,11 +19,6 @@ namespace WaveHarmonic.Crest.Watercraft
[Tooltip("Constantly turn."), SerializeField]
float _Turn = 0;
#pragma warning disable UNT0001
// Here to force the checkbox to show.
void Start() { }
#pragma warning restore UNT0001
/// <inheritdoc/>
public override Vector3 Input => isActiveAndEnabled ? new(_Turn, 0f, _Move) : Vector3.zero;
}