2025-10-19 19:38:52 +08:00
|
|
|
using UnityEngine;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace Script.Gameplay.Connect
|
|
|
|
{
|
|
|
|
public interface IConnectable
|
|
|
|
{
|
|
|
|
void OnGazeEnter(); // 玩家开始注视时触发
|
|
|
|
void OnGazeExit(); // 玩家停止注视时触发
|
|
|
|
Vector3 GetPosition(); // 获取连接点位置
|
2025-10-20 19:40:55 +08:00
|
|
|
GameObject GetGameObject(); // 获取连接点物体
|
2025-10-19 19:38:52 +08:00
|
|
|
string GetConnectableName(); // 获取连接点名称
|
2025-10-20 19:40:55 +08:00
|
|
|
public List<ConnectionLine> ConnectionLines { get; set; }
|
|
|
|
void SignalActive(bool active, GameObject sender); // 被激活
|
2025-10-19 19:38:52 +08:00
|
|
|
}
|
|
|
|
}
|