This commit is contained in:
2024-11-29 17:51:19 +08:00
parent 2a2ab3bf5d
commit d95d117c08
23 changed files with 1555 additions and 384 deletions
@@ -1,7 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using AibisDream.Framework;
using UnityEngine;
using UnityEngine.Events;
@@ -39,6 +36,7 @@ namespace AibisDream.FixSystem
// 处理内部索引
BodyModules = transform.GetComponentsInChildren<BodyModule>();
CableSystem = transform.Find("Cable System").GetComponent<CableSystem>();
FixSystemCenter.SystemDic.Register(this);
}
/// <summary>
@@ -47,7 +45,7 @@ namespace AibisDream.FixSystem
/// <param name="sourcePos">源位置</param>
/// <param name="targetModule">最近的Module</param>
/// <returns>是否能找到目标范围内的Module</returns>
public bool TryFindClosestSocket(Vector3 sourcePos, out BodyModule targetModule)
public bool TryFindClosestModule(Vector3 sourcePos, out BodyModule targetModule)
{
var closestDistance = Mathf.Infinity;
BodyModule closestModule = null;