基础内容

必要插件安装
缓动曲线和动画基础
ElementFolder,Track与其次级模块,PathNode重构
This commit is contained in:
SoulliesOfficial
2025-01-26 21:10:16 -05:00
parent 40f63dd2bd
commit 8d0abec75f
9320 changed files with 2950357 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using UnityEngine;
namespace Lean.Pool
{
/// <summary>This component allows you to reset a Rigidbody's velocity via Messages or via Poolable.</summary>
[RequireComponent(typeof(Rigidbody))]
[HelpURL(LeanPool.HelpUrlPrefix + "LeanPooledRigidbody")]
[AddComponentMenu(LeanPool.ComponentPathPrefix + "Pooled Rigidbody")]
public class LeanPooledRigidbody : MonoBehaviour, IPoolable
{
public void OnSpawn()
{
}
public void OnDespawn()
{
var rigidbody = GetComponent<Rigidbody>();
rigidbody.velocity = Vector3.zero;
rigidbody.angularVelocity = Vector3.zero;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: a47bac80a21a18b4b91b990df1cb4e7a
timeCreated: 1430149108
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,23 @@
using UnityEngine;
namespace Lean.Pool
{
/// <summary>This component will automatically reset a Rigidbody2D when it gets spawned/despawned.</summary>
[RequireComponent(typeof(Rigidbody2D))]
[HelpURL(LeanPool.HelpUrlPrefix + "LeanPooledRigidbody2D")]
[AddComponentMenu(LeanPool.ComponentPathPrefix + "Pooled Rigidbody2D")]
public class LeanPooledRigidbody2D : MonoBehaviour, IPoolable
{
public void OnSpawn()
{
}
public void OnDespawn()
{
var rigidbody2D = GetComponent<Rigidbody2D>();
rigidbody2D.velocity = Vector2.zero;
rigidbody2D.angularVelocity = 0.0f;
}
}
}

View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 3be0ffe700121dc4fb048e0d7b200524
timeCreated: 1430149667
licenseType: Store
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: