引擎简单更新

This commit is contained in:
2025-01-17 21:05:06 +08:00
parent 74025f3d5b
commit a1fd6fca67
37 changed files with 944 additions and 1527 deletions
@@ -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
+10 -1
View File
@@ -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;
}
}
}