59 lines
1.2 KiB
C#
59 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace AibisDream.FixSystem
|
|
{
|
|
public class BodyModule : MonoBehaviour
|
|
{
|
|
#region 组件引用
|
|
|
|
private const string SocketObjName = "Socket";
|
|
public Socket Socket { get; private set; }
|
|
|
|
#endregion
|
|
|
|
public Vector3 SocketPos => Socket.transform.position;
|
|
|
|
// 模块基本数据
|
|
[SerializeField] public BodyModuleData moduleData;
|
|
|
|
public ISocketCommand curPlugInCommand;
|
|
|
|
#region Module状态
|
|
|
|
public bool isPlugIn;
|
|
public bool isFirstPlugIn;
|
|
public string curCommandType;
|
|
|
|
#endregion
|
|
|
|
private void Awake()
|
|
{
|
|
// 获取组件索引
|
|
InitReference();
|
|
}
|
|
|
|
private void InitReference()
|
|
{
|
|
Socket = transform.Find(SocketObjName).GetComponent<Socket>();
|
|
}
|
|
|
|
public void PlugIn()
|
|
{
|
|
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public struct BodyModuleData
|
|
{
|
|
public WaveformType waveformType;
|
|
|
|
|
|
|
|
public List<string> modulePicList;
|
|
|
|
public Vector3 modulePos;
|
|
}
|
|
} |