引擎简单更新
This commit is contained in:
@@ -32,6 +32,7 @@ namespace AibisDream.FixSystem
|
||||
|
||||
public bool inHotErr;
|
||||
private int _heatValue;
|
||||
public bool isAvailable;
|
||||
|
||||
private int HeatValue
|
||||
{
|
||||
@@ -287,6 +288,22 @@ namespace AibisDream.FixSystem
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 激活交互系统
|
||||
/// </summary>
|
||||
public void EnableSystem()
|
||||
{
|
||||
isAvailable = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 停止交互系统
|
||||
/// </summary>
|
||||
public void DisableSystem()
|
||||
{
|
||||
isAvailable = false;
|
||||
}
|
||||
}
|
||||
|
||||
public struct BodyModuleSystemData
|
||||
|
||||
@@ -7,7 +7,7 @@ using UnityEngine.EventSystems;
|
||||
namespace AibisDream.FixSystem
|
||||
{
|
||||
[RequireComponent(typeof(EventTriggerEx))]
|
||||
public class Plug : MonoBehaviour
|
||||
public class Plug : MonoBehaviour, IInteraction
|
||||
{
|
||||
#region 插头当前信息
|
||||
|
||||
@@ -161,5 +161,14 @@ namespace AibisDream.FixSystem
|
||||
Gizmos.color = Color.yellow;
|
||||
Gizmos.DrawWireSphere(transform.position, 0.5f);
|
||||
}
|
||||
|
||||
public bool IsActive => true;
|
||||
|
||||
public bool IsAvailable => _cableSystem.BodyModuleSystem.isAvailable;
|
||||
|
||||
public GameObject GetGameObject()
|
||||
{
|
||||
return gameObject;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user