refactor(Facility): 使用继承让所有机关都拥有了独自的 可交互 可编辑 可连接设定。大面积重构

This commit is contained in:
2025-10-22 17:34:58 +08:00
parent acd8282ff0
commit 5198a80318
61 changed files with 1516 additions and 889 deletions

View File

@@ -0,0 +1,15 @@
using UnityEngine;
using System.Collections.Generic;
using Script.Gameplay.Connect;
namespace Script.Gameplay.Interface
{
public interface IConnectable
{
public bool IsEnableConnect { get; set; }
Vector3 GetPosition(); // 获取连接点位置
GameObject GetGameObject(); // 获取连接点物体
string GetConnectableName(); // 获取连接点名称
public List<ConnectionLine> ConnectionLines { get; set; }
}
}