功能:添加启动器场景并更新项目设置
- 调整了启动器场景名(Assets/Launcher.unity)及对应的元数据文件。 - 添加了README.md项目文档,包含安装说明、项目结构、编码规范、测试指南及依赖项。
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class LevelUpPropSelectedEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(LevelUpPropSelectedEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int SelectedId { get; private set; }
|
||||
|
||||
public LevelUpPropSelectedEventArgs()
|
||||
{
|
||||
SelectedId = -1;
|
||||
}
|
||||
|
||||
public static LevelUpPropSelectedEventArgs Create(int propId)
|
||||
{
|
||||
var args = ReferencePool.Acquire<LevelUpPropSelectedEventArgs>();
|
||||
args.SelectedId = propId;
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
SelectedId = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3183e53376fbf95438a0a938510ce7f1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2540b6786a5c4f3aadd4f57c79b714b9
|
||||
timeCreated: 1770985387
|
||||
@@ -0,0 +1,27 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class PlayerLevelUpEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(PlayerLevelUpEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public PlayerLevelUpEventArgs()
|
||||
{
|
||||
}
|
||||
|
||||
public static PlayerLevelUpEventArgs Create()
|
||||
{
|
||||
var args = ReferencePool.Acquire<PlayerLevelUpEventArgs>();
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 59e602f086ce428396eab715b1277a23
|
||||
timeCreated: 1770989625
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0ce83a125a974b49ad8a9251a8d73359
|
||||
timeCreated: 1770985411
|
||||
@@ -0,0 +1,27 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class ShopContinueEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(ShopContinueEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public ShopContinueEventArgs()
|
||||
{
|
||||
}
|
||||
|
||||
public static ShopContinueEventArgs Create()
|
||||
{
|
||||
var args = ReferencePool.Acquire<ShopContinueEventArgs>();
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b09ad1baac8a41338c0e42baf398beb8
|
||||
timeCreated: 1770986449
|
||||
@@ -0,0 +1,34 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class ShopPurchaseEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(ShopPurchaseEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int GoodsIndex { get; private set; }
|
||||
|
||||
public ShopPurchaseEventArgs()
|
||||
{
|
||||
GoodsIndex = -1;
|
||||
}
|
||||
|
||||
public static ShopPurchaseEventArgs Create(int index)
|
||||
{
|
||||
var args = ReferencePool.Acquire<ShopPurchaseEventArgs>();
|
||||
|
||||
args.GoodsIndex = index;
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
GoodsIndex = -1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 11c82e4a45804087b1aaf337e38a8836
|
||||
timeCreated: 1770986490
|
||||
@@ -0,0 +1,34 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace CustomEvent
|
||||
{
|
||||
public class ShopRefreshEventArgs : GameEventArgs
|
||||
{
|
||||
public static readonly int EventId = typeof(ShopRefreshEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public int Cost { get; private set; }
|
||||
|
||||
public ShopRefreshEventArgs()
|
||||
{
|
||||
Cost = 0;
|
||||
}
|
||||
|
||||
public static ShopRefreshEventArgs Create(int cost)
|
||||
{
|
||||
var args = ReferencePool.Acquire<ShopRefreshEventArgs>();
|
||||
|
||||
args.Cost = cost;
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
Cost = 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f463ec631b54d9e9feda00be716ae68
|
||||
timeCreated: 1770985436
|
||||
Reference in New Issue
Block a user