feat(Console MovePlateform): 实现控制台和移动平台
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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); // 被激活
|
||||
}
|
||||
}
|
||||
8
Assets/Script/Gameplay/Connect/ISignalReceiver.cs
Normal file
8
Assets/Script/Gameplay/Connect/ISignalReceiver.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using UnityEngine;
|
||||
namespace Script.Gameplay.Connect
|
||||
{
|
||||
public interface ISignalReceiver
|
||||
{
|
||||
public void OnSignalReceived(bool active, GameObject sender);
|
||||
}
|
||||
}
|
||||
11
Assets/Script/Gameplay/Connect/ISignalReceiver.cs.meta
Normal file
11
Assets/Script/Gameplay/Connect/ISignalReceiver.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 83ece445f7f45404a9691aad6196f2cb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user