(client) chore:Clean code

This commit is contained in:
2025-08-28 16:20:24 +08:00
parent 909e995e15
commit c3bff1cf88
76 changed files with 5689 additions and 445 deletions

View File

@ -1,16 +1,15 @@
using Base;
using TMPro;
using UnityEngine;
using UnityEngine.Events;
namespace UI
{
public delegate void NonReturnCallback();
public class EntityPlacementUI:UIBase,ITickUI
public class EntityPlacementUI : UIBase, ITickUI
{
public TMP_Text promptText;
public NonReturnCallback currentAction;
public GameObject focusBox;
@ -29,7 +28,7 @@ namespace UI
{
Base.UIInputControl.Instance.Hide(this);
}
if (currentAction!=null&&Input.GetMouseButtonDown(0))
if (currentAction != null && Input.GetMouseButtonDown(0))
{
currentAction();
}