- 添加 MainForm
- 添加 ResolutionAdapterComponent 进行屏幕分辨率适配
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace GeometryTD.CustomEvent
|
||||
{
|
||||
public class NodeCompleteEventArgs : GameEventArgs
|
||||
{
|
||||
public static int EventId = typeof(NodeCompleteEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public NodeCompleteEventArgs()
|
||||
{
|
||||
}
|
||||
|
||||
public static NodeCompleteEventArgs Create()
|
||||
{
|
||||
var args = ReferencePool.Acquire<NodeCompleteEventArgs>();
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3c8d1335edfb4fcd8b08279d3c254eff
|
||||
timeCreated: 1772269787
|
||||
@@ -0,0 +1,27 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace GeometryTD.CustomEvent
|
||||
{
|
||||
public class NodeEnterEventArgs : GameEventArgs
|
||||
{
|
||||
public static int EventId = typeof(NodeEnterEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public NodeEnterEventArgs()
|
||||
{
|
||||
}
|
||||
|
||||
public static NodeEnterEventArgs Create()
|
||||
{
|
||||
var args = ReferencePool.Acquire<NodeEnterEventArgs>();
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a42a26567434ac194a89aa5c9ae6c5d
|
||||
timeCreated: 1772270138
|
||||
@@ -0,0 +1,33 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace GeometryTD.CustomEvent
|
||||
{
|
||||
public enum TestMenuNodeType : byte
|
||||
{
|
||||
Combat = 1,
|
||||
Event = 2,
|
||||
Shop = 3
|
||||
}
|
||||
|
||||
public class TestMenuNodeClickEventArgs : GameEventArgs
|
||||
{
|
||||
public static int EventId => typeof(TestMenuNodeClickEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public TestMenuNodeType NodeType { get; private set; }
|
||||
|
||||
public static TestMenuNodeClickEventArgs Create(TestMenuNodeType nodeType)
|
||||
{
|
||||
TestMenuNodeClickEventArgs args = ReferencePool.Acquire<TestMenuNodeClickEventArgs>();
|
||||
args.NodeType = nodeType;
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
NodeType = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 411999db6fd14f9485be9606a83c97ac
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user