调整目录结构
This commit is contained in:
12
Assets/Scripts/Model/Assets/BaitAsset.cs
Normal file
12
Assets/Scripts/Model/Assets/BaitAsset.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
/// <summary>
|
||||
/// 鱼饵
|
||||
/// </summary>
|
||||
public class BaitAsset : PreviewableAsset
|
||||
{
|
||||
public Transform hook;
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Model/Assets/BaitAsset.cs.meta
Normal file
3
Assets/Scripts/Model/Assets/BaitAsset.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 524c26f472e74fa1ad167db68e562324
|
||||
timeCreated: 1743824319
|
||||
80
Assets/Scripts/Model/Assets/BobberAsset.cs
Normal file
80
Assets/Scripts/Model/Assets/BobberAsset.cs
Normal file
@@ -0,0 +1,80 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
/// <summary>
|
||||
/// 浮漂资产
|
||||
/// </summary>
|
||||
public class BobberAsset : PreviewableAsset
|
||||
{
|
||||
public Transform body;
|
||||
public Transform stick;
|
||||
|
||||
/// <summary>
|
||||
/// 顶部连接点
|
||||
/// </summary>
|
||||
public Transform topConnector;
|
||||
|
||||
/// <summary>
|
||||
/// 底部连接点
|
||||
/// </summary>
|
||||
public Transform bottomConnector;
|
||||
|
||||
/// <summary>
|
||||
/// 水线
|
||||
/// </summary>
|
||||
public Transform waterline;
|
||||
|
||||
|
||||
// "previewRotationEnabled": 0,
|
||||
// "previewRotation": {
|
||||
// "x": 0.0,
|
||||
// "y": 0.0,
|
||||
// "z": 0.0
|
||||
// },
|
||||
//
|
||||
// "idleAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 2768973905596830902
|
||||
// },
|
||||
// "swimAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 7205922588037503814
|
||||
// },
|
||||
// "accelerateAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 5473833867069321029
|
||||
// },
|
||||
// "turnLeftAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 0
|
||||
// },
|
||||
// "turnRightAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 0
|
||||
// },
|
||||
// "shake1Animation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 748440419864685152
|
||||
// },
|
||||
// "shake2Animation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 748440419864685152
|
||||
// },
|
||||
// "shake3Animation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 748440419864685152
|
||||
// },
|
||||
// "StuffedAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 0
|
||||
// },
|
||||
// "useRendererBounds": 0,
|
||||
// "overrideLengthAxis": 0,
|
||||
// "lengthAxis": 0,
|
||||
// "applyLengthFactor": 0,
|
||||
// "lengthFactor": 0.0,
|
||||
// "useStuffedAnim": 0,
|
||||
// "stuffedFrameTime": 0.0
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Model/Assets/BobberAsset.cs.meta
Normal file
3
Assets/Scripts/Model/Assets/BobberAsset.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3e885da772834bb289c2368be2f6eb5b
|
||||
timeCreated: 1743824616
|
||||
14
Assets/Scripts/Model/Assets/FishAsset.cs
Normal file
14
Assets/Scripts/Model/Assets/FishAsset.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class FishAsset : PreviewableAsset
|
||||
{
|
||||
public Transform root;
|
||||
|
||||
/// <summary>
|
||||
/// 弯曲节点
|
||||
/// </summary>
|
||||
public Transform[] spines;
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Model/Assets/FishAsset.cs.meta
Normal file
3
Assets/Scripts/Model/Assets/FishAsset.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c12ba26d0bd74238ab26aee49ef6fd5d
|
||||
timeCreated: 1743824172
|
||||
18
Assets/Scripts/Model/Assets/FishGroupAsset.cs
Normal file
18
Assets/Scripts/Model/Assets/FishGroupAsset.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class FishGroupAsset : MonoBehaviour
|
||||
{
|
||||
// "previewRotationEnabled": 0,
|
||||
// "previewRotation": {
|
||||
// "x": 0.0,
|
||||
// "y": 0.0,
|
||||
// "z": 0.0
|
||||
// },
|
||||
// "previewFitVertical": 1,
|
||||
// "smallFishName": "ostrea_ed_o",
|
||||
// "mediumFishName": "ostrea_ed_o",
|
||||
// "largeFishName": "ostrea_ed_o"
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Model/Assets/FishGroupAsset.cs.meta
Normal file
3
Assets/Scripts/Model/Assets/FishGroupAsset.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2e9e67584f094dcbba9e61f37a55a5b4
|
||||
timeCreated: 1743824179
|
||||
12
Assets/Scripts/Model/Assets/HookAsset.cs
Normal file
12
Assets/Scripts/Model/Assets/HookAsset.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class HookAsset : PreviewableAsset
|
||||
{
|
||||
/// <summary>
|
||||
/// 鱼饵挂点
|
||||
/// </summary>
|
||||
public Transform baitConnector;
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Model/Assets/HookAsset.cs.meta
Normal file
3
Assets/Scripts/Model/Assets/HookAsset.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b6eea50c041f42d5bd95d9e56c3a9c6f
|
||||
timeCreated: 1743824134
|
||||
8
Assets/Scripts/Model/Assets/LineAsset.cs
Normal file
8
Assets/Scripts/Model/Assets/LineAsset.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class LineAsset : PreviewableAsset
|
||||
{
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Model/Assets/LineAsset.cs.meta
Normal file
3
Assets/Scripts/Model/Assets/LineAsset.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8059c6be171e47edb0390fa091285100
|
||||
timeCreated: 1743824214
|
||||
20
Assets/Scripts/Model/Assets/LureAsset.cs
Normal file
20
Assets/Scripts/Model/Assets/LureAsset.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class LureAsset : PreviewableAsset
|
||||
{
|
||||
/// <summary>
|
||||
/// 鱼钩挂点
|
||||
/// </summary>
|
||||
public Transform[] hookPoints;
|
||||
|
||||
[Tooltip("maksymalny kąt odchylenia przynetu przy sciaganiu, rotacja w osi Y")]
|
||||
public float rotateVeloMaxAngle = 10f;
|
||||
|
||||
[Tooltip("predkosc odchylenia przynetu przy sciaganiu, rotacja w osi Y")]
|
||||
public float rotateVeloMaxSpeed = 3f;
|
||||
|
||||
public Vector3 rotationInFishJaw = Vector3.zero;
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Model/Assets/LureAsset.cs.meta
Normal file
3
Assets/Scripts/Model/Assets/LureAsset.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 897c0165284148879a9d158ea8010a15
|
||||
timeCreated: 1743824269
|
||||
19
Assets/Scripts/Model/Assets/PreviewableAsset.cs
Normal file
19
Assets/Scripts/Model/Assets/PreviewableAsset.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
/// <summary>
|
||||
/// 可以3D预览的资产
|
||||
/// </summary>
|
||||
public class PreviewableAsset : MonoBehaviour
|
||||
{
|
||||
[Tooltip("默认位置")] public Vector3 position;
|
||||
[Tooltip("默认旋转")] public Vector3 rotation;
|
||||
[Tooltip("默认形变")] public Vector3 scale;
|
||||
[Tooltip("是否可以放大缩小")] public bool canZoom;
|
||||
[Tooltip("放大缩小配置")] public Vector3 zoom;
|
||||
[Tooltip("是否可以平移")] public bool canPan;
|
||||
[Tooltip("平移配置")] public Rect pan;
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Model/Assets/PreviewableAsset.cs.meta
Normal file
3
Assets/Scripts/Model/Assets/PreviewableAsset.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a000ba87cd97499eb23feecf39521ecb
|
||||
timeCreated: 1750736840
|
||||
8
Assets/Scripts/Model/Assets/PropAsset.cs
Normal file
8
Assets/Scripts/Model/Assets/PropAsset.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class PropAsset : PreviewableAsset
|
||||
{
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Model/Assets/PropAsset.cs.meta
Normal file
3
Assets/Scripts/Model/Assets/PropAsset.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ea4d172189e248949431bb24b98369cb
|
||||
timeCreated: 1743824159
|
||||
113
Assets/Scripts/Model/Assets/ReelAsset.cs
Normal file
113
Assets/Scripts/Model/Assets/ReelAsset.cs
Normal file
@@ -0,0 +1,113 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
/// <summary>
|
||||
/// 线轴资产配置
|
||||
/// </summary>
|
||||
public class ReelAsset : PreviewableAsset
|
||||
{
|
||||
// "previewRotationEnabled": 1,
|
||||
// "previewRotation": {
|
||||
// "x": 20.0,
|
||||
// "y": -130.0,
|
||||
// "z": 190.0
|
||||
// },
|
||||
// "reelType": 3,
|
||||
// "reelSize": 11,
|
||||
// "minLineMeshScale": 0.93,
|
||||
// "maxLineMeshScale": 2.0,
|
||||
// "scaleX": 0,
|
||||
// "scaleY": 1,
|
||||
// "scaleZ": 1,
|
||||
// "rollHandleAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 5949981527590265242
|
||||
// },
|
||||
// "rollUkladchikAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 8960665928823962917
|
||||
// },
|
||||
// "rollShpulyaAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": -8671758223453786131
|
||||
// },
|
||||
// "frictionAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 0
|
||||
// },
|
||||
// "openAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": -2998254598457423134
|
||||
// },
|
||||
// "closeAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": -56605426968450186
|
||||
// },
|
||||
// "startEngineAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 0
|
||||
// },
|
||||
// "stopEngineAnimation": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 0
|
||||
// },
|
||||
// "handleAnimationLoopCycles": 6,
|
||||
// "ikLocatorFixEnabled": 0,
|
||||
// "ikLocatorFixRotation": {
|
||||
// "x": 0.0,
|
||||
// "y": 0.0,
|
||||
// "z": 0.0
|
||||
// },
|
||||
// "shiftRod": 0.0,
|
||||
// "materialWithSerial": {
|
||||
// "m_FileID": 0,
|
||||
// "m_PathID": 0
|
||||
// }
|
||||
|
||||
public enum Type
|
||||
{
|
||||
Normal = 0,
|
||||
Casting = 1
|
||||
}
|
||||
|
||||
public Type type;
|
||||
|
||||
/// <summary>
|
||||
/// 动画组件
|
||||
/// </summary>
|
||||
public Animator animator;
|
||||
|
||||
/// <summary>
|
||||
/// 根连接处
|
||||
/// </summary>
|
||||
public Transform rootConnector;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public Transform rootCompensator;
|
||||
|
||||
/// <summary>
|
||||
/// 线连接处
|
||||
/// </summary>
|
||||
public Transform lineConnector;
|
||||
|
||||
/// <summary>
|
||||
/// 线相交处
|
||||
/// </summary>
|
||||
public Transform lineIntersect;
|
||||
|
||||
public Transform lineIntersectHelper;
|
||||
|
||||
/// <summary>
|
||||
/// ik抓握挂点
|
||||
/// </summary>
|
||||
public Transform handle;
|
||||
|
||||
/// <summary>
|
||||
/// 手柄真实结束点
|
||||
/// </summary>
|
||||
public Transform handleEnd;
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Model/Assets/ReelAsset.cs.meta
Normal file
3
Assets/Scripts/Model/Assets/ReelAsset.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8898b66b55404fd3be13b7dcdcfda463
|
||||
timeCreated: 1743785540
|
||||
61
Assets/Scripts/Model/Assets/RodAsset.cs
Normal file
61
Assets/Scripts/Model/Assets/RodAsset.cs
Normal file
@@ -0,0 +1,61 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
/// <summary>
|
||||
/// 鱼竿资产配置
|
||||
/// </summary>
|
||||
public class RodAsset : PreviewableAsset
|
||||
{
|
||||
/// <summary>
|
||||
/// 根节点
|
||||
/// </summary>
|
||||
public Transform root;
|
||||
|
||||
public Transform gripEnd;
|
||||
|
||||
/// <summary>
|
||||
/// 左手连接点
|
||||
/// </summary>
|
||||
public Transform LeftHandConnector;
|
||||
|
||||
/// <summary>
|
||||
/// 右手连接点
|
||||
/// </summary>
|
||||
public Transform RightHandConnector;
|
||||
|
||||
/// <summary>
|
||||
/// 线轴连接点
|
||||
/// </summary>
|
||||
public Transform ReelConnector;
|
||||
|
||||
/// <summary>
|
||||
/// 弯曲节点
|
||||
/// </summary>
|
||||
public Transform[] joints;
|
||||
|
||||
/// <summary>
|
||||
/// 圈挂点
|
||||
/// </summary>
|
||||
public Transform[] rings;
|
||||
|
||||
/// <summary>
|
||||
/// rings 画线
|
||||
/// </summary>
|
||||
public LineRenderer lineRenderer;
|
||||
|
||||
/// <summary>
|
||||
/// 鱼线连接点
|
||||
/// </summary>
|
||||
public Transform lineConnector;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
if (!lineConnector && joints.Length > 0)
|
||||
{
|
||||
lineConnector = joints[^1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Model/Assets/RodAsset.cs.meta
Normal file
3
Assets/Scripts/Model/Assets/RodAsset.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 45b047324a3349b9aea42f50cbd1ba71
|
||||
timeCreated: 1743783252
|
||||
29
Assets/Scripts/Model/Assets/RodRingAsset.cs
Normal file
29
Assets/Scripts/Model/Assets/RodRingAsset.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
/// <summary>
|
||||
/// 鱼竿导环资产配置
|
||||
/// </summary>
|
||||
public class RodRingAsset : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// 导环节点
|
||||
/// </summary>
|
||||
public RodRingNode[] rings;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class RodRingNode
|
||||
{
|
||||
/// <summary>
|
||||
/// 导环点位
|
||||
/// </summary>
|
||||
public Transform ring;
|
||||
|
||||
/// <summary>
|
||||
/// 线挂点
|
||||
/// </summary>
|
||||
public Transform point;
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Model/Assets/RodRingAsset.cs.meta
Normal file
3
Assets/Scripts/Model/Assets/RodRingAsset.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cdfd33eb69534a1e87cd523df4bfb430
|
||||
timeCreated: 1743781816
|
||||
8
Assets/Scripts/Model/Assets/SpinnerLureAsset.cs
Normal file
8
Assets/Scripts/Model/Assets/SpinnerLureAsset.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class SpinnerLureAsset : PreviewableAsset
|
||||
{
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Model/Assets/SpinnerLureAsset.cs.meta
Normal file
3
Assets/Scripts/Model/Assets/SpinnerLureAsset.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ed88dcaac7774ce79b04d90a3fa50533
|
||||
timeCreated: 1745487261
|
||||
Reference in New Issue
Block a user