refactor(Facility): 使用继承让所有机关都拥有了独自的 可交互 可编辑 可连接设定。大面积重构
This commit is contained in:
15
Assets/Script/Gameplay/Interface/IConnectable.cs
Normal file
15
Assets/Script/Gameplay/Interface/IConnectable.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user