增加收获属性逻辑,优化掉落物表现效果

This commit is contained in:
2026-10-05 17:02:29 +08:00
parent d55b1013ca
commit 7590d78e74
53 changed files with 1633 additions and 241 deletions
@@ -0,0 +1,31 @@
using GameFramework;
using GameFramework.Event;
namespace SepCore.Event
{
public class ShopGoodsLockEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(ShopGoodsLockEventArgs).GetHashCode();
public override int Id => EventId;
public int GoodsIndex { get; private set; }
public ShopGoodsLockEventArgs()
{
GoodsIndex = -1;
}
public static ShopGoodsLockEventArgs Create(int index)
{
var args = ReferencePool.Acquire<ShopGoodsLockEventArgs>();
args.GoodsIndex = index;
return args;
}
public override void Clear()
{
GoodsIndex = -1;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 57dd9523362d470fa6e823b2478c18ef
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: