fix:1、修复bug:尾部移动到边界后才隐藏。2、添加删除道具

This commit is contained in:
2026-06-13 18:27:00 +08:00
parent 9b468b835f
commit 6f351139cf
9 changed files with 279 additions and 100 deletions
@@ -13,6 +13,7 @@ namespace FGUI.Arrow_game
UIObjectFactory.SetPackageItemExtension(LineTile.URL, typeof(LineTile));
UIObjectFactory.SetPackageItemExtension(ArrorPoint.URL, typeof(ArrorPoint));
UIObjectFactory.SetPackageItemExtension(HeartsPanel.URL, typeof(HeartsPanel));
UIObjectFactory.SetPackageItemExtension(com_finger.URL, typeof(com_finger));
}
}
}
@@ -14,6 +14,9 @@ namespace FGUI.Arrow_game
public ArrorPoint point;
public GButton btn_close;
public HeartsPanel HeartsPanel;
public GButton btn_clear;
public GButton btn_hint;
public com_finger com_finger;
public const string URL = "ui://sjl9teijrsd40";
public static com_arrow_game CreateInstance()
@@ -32,6 +35,9 @@ namespace FGUI.Arrow_game
point = (ArrorPoint)GetChildAt(4);
btn_close = (GButton)GetChildAt(6);
HeartsPanel = (HeartsPanel)GetChildAt(7);
btn_clear = (GButton)GetChildAt(9);
btn_hint = (GButton)GetChildAt(10);
com_finger = (com_finger)GetChildAt(11);
}
}
}
@@ -0,0 +1,27 @@
/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
using FairyGUI;
using FairyGUI.Utils;
namespace FGUI.Arrow_game
{
public partial class com_finger : GComponent
{
public GImage finger;
public Transition t0;
public const string URL = "ui://sjl9teijrsd4f";
public static com_finger CreateInstance()
{
return (com_finger)UIPackage.CreateObject("Arrow_game", "com_finger");
}
public override void ConstructFromXML(XML xml)
{
base.ConstructFromXML(xml);
finger = (GImage)GetChildAt(0);
t0 = GetTransitionAt(0);
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d110f1d5f9c887b4d9194e2f3ca1c58c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: