重构
This commit is contained in:
@@ -8,19 +8,25 @@ namespace AibisDream.FixSystem
|
||||
{
|
||||
#region 组件引用
|
||||
|
||||
private const string ModulePicObjName = "Module Pic";
|
||||
private const string SocketObjName = "Socket";
|
||||
|
||||
private GameObject _modulePic;
|
||||
public Socket Socket { get; private set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
public Vector3 SocketPos => Socket.transform.position;
|
||||
|
||||
// 模块基本数据
|
||||
[SerializeField]
|
||||
public BodyModuleData moduleData;
|
||||
[SerializeField] public BodyModuleData moduleData;
|
||||
|
||||
public ISocketCommand curPlugInCommand;
|
||||
|
||||
#region Module状态
|
||||
|
||||
public bool isPlugIn;
|
||||
public bool isFirstPlugIn;
|
||||
public string curCommandType;
|
||||
|
||||
#endregion
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
@@ -30,26 +36,24 @@ namespace AibisDream.FixSystem
|
||||
|
||||
private void InitReference()
|
||||
{
|
||||
_modulePic = transform.Find(ModulePicObjName).gameObject;
|
||||
Socket = transform.Find(SocketObjName).GetComponent<Socket>();
|
||||
}
|
||||
|
||||
public void PlugIn()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Serializable]
|
||||
public struct BodyModuleData
|
||||
{
|
||||
public WaveformType waveformType;
|
||||
public EyeTransitionManager.ViewState viewState;
|
||||
|
||||
public int cameraSize;
|
||||
public Vector2 cameraPos;
|
||||
|
||||
public string audioName;
|
||||
public string soundName;
|
||||
|
||||
|
||||
public List<string> modulePicList;
|
||||
|
||||
public Vector3 modulePos;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user