重构
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user