This commit is contained in:
YangHua 2024-07-29 21:29:50 +08:00
commit 4539e63bb3
1 changed files with 7 additions and 2 deletions

View File

@ -47,10 +47,15 @@ namespace ToolsPack
if (MotionEngine.GetModule<ToolsPackManager>().GetToolsPackScene() == ToolsPackScene.)
{
bool b = MotionEngine.GetModule<AnimationProcessManager>().HandleClick(this.gameObject.name);
if (IsClick)
MotionEngine.GetModule<ToolsPackManager>().AddToolsPack(this.name, this.gameObject);
if (b)
{
if (IsClick)
MotionEngine.GetModule<ToolsPackManager>().AddToolsPack(this.name, this.gameObject);
this.gameObject.SetActive(false);
}
}
}