升级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.Examples
{
@@ -11,13 +12,8 @@ namespace WaveHarmonic.Crest.Examples
#if !CREST_DEBUG
[AddComponentMenu("")]
#endif
sealed class TimedDestroy : MonoBehaviour
sealed class TimedDestroy : CustomBehaviour
{
[SerializeField, HideInInspector]
#pragma warning disable 414
int _Version = 0;
#pragma warning restore 414
[SerializeField]
float _LifeTime = 2.0f;
@@ -31,8 +27,10 @@ namespace WaveHarmonic.Crest.Examples
Vector3 _Scale;
float _BirthTime;
void Start()
private protected override void OnStart()
{
base.OnStart();
_BirthTime = Time.time;
_Scale = transform.localScale;
}