refactor(Connect): 重构连接体系,实现一个物体拥有多个连接线
This commit is contained in:
@@ -8,12 +8,9 @@ namespace Script.Gameplay.Connect
|
||||
void OnGazeEnter(); // 玩家开始注视时触发
|
||||
void OnGazeExit(); // 玩家停止注视时触发
|
||||
Vector3 GetPosition(); // 获取连接点位置
|
||||
GameObject GetGameObject(); // 获取连接点物体
|
||||
string GetConnectableName(); // 获取连接点名称
|
||||
public ConnectionLine OutputConnectionLine { get; set; }
|
||||
public ConnectionLine InputConnectionLine { get; set; }
|
||||
bool IsConnectedOutput { get; set; } // 是否作为输出端连接
|
||||
bool IsConnectedInput { get; set; } // 是否作为输入端连接
|
||||
void ReceiveSignal(bool active, GameObject sender); // 接收信号
|
||||
void SendSignal(bool active, GameObject sender); // 发出信号
|
||||
public List<ConnectionLine> ConnectionLines { get; set; }
|
||||
void SignalActive(bool active, GameObject sender); // 被激活
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user