feat(Console MovePlateform): 实现控制台和移动平台

This commit is contained in:
2025-10-22 11:32:53 +08:00
parent 93b83b3af3
commit acd8282ff0
27 changed files with 936 additions and 46 deletions

View File

@@ -60,11 +60,11 @@ namespace Script.Gameplay.Connect
{
if (sender == _pointA.GetGameObject())
{
_pointB.SignalActive(active, sender);
_pointB.OnSignalReceived(active, sender);
}
else if (sender == _pointB.GetGameObject())
{
_pointA.SignalActive(active, sender);
_pointA.OnSignalReceived(active, sender);
}
}
}

View File

@@ -3,14 +3,14 @@ using System.Collections.Generic;
namespace Script.Gameplay.Connect
{
public interface IConnectable
public interface IConnectable : ISignalReceiver
{
public bool IsEnablePlayerConnect { get; set; }
void OnGazeEnter(); // 玩家开始注视时触发
void OnGazeExit(); // 玩家停止注视时触发
Vector3 GetPosition(); // 获取连接点位置
GameObject GetGameObject(); // 获取连接点物体
string GetConnectableName(); // 获取连接点名称
public List<ConnectionLine> ConnectionLines { get; set; }
void SignalActive(bool active, GameObject sender); // 被激活
}
}

View File

@@ -0,0 +1,8 @@
using UnityEngine;
namespace Script.Gameplay.Connect
{
public interface ISignalReceiver
{
public void OnSignalReceived(bool active, GameObject sender);
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 83ece445f7f45404a9691aad6196f2cb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: