抛竿运动轨迹修改
This commit is contained in:
@@ -43,96 +43,6 @@ MonoBehaviour:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_9wej123.png
|
||||
Address: UI/Common_atlas_9wej123
|
||||
Type: Texture2D
|
||||
Bundle: main/ui.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: UI
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_dhevef.png
|
||||
Address: UI/Common_atlas_dhevef
|
||||
Type: Texture2D
|
||||
Bundle: main/ui.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: UI
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_dheveg.png
|
||||
Address: UI/Common_atlas_dheveg
|
||||
Type: Texture2D
|
||||
Bundle: main/ui.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: UI
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_dheveh.png
|
||||
Address: UI/Common_atlas_dheveh
|
||||
Type: Texture2D
|
||||
Bundle: main/ui.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: UI
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_mbu9ye.png
|
||||
Address: UI/Common_atlas_mbu9ye
|
||||
Type: Texture2D
|
||||
Bundle: main/ui.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: UI
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_obry17g.png
|
||||
Address: UI/Common_atlas_obry17g
|
||||
Type: Texture2D
|
||||
Bundle: main/ui.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: UI
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_fui.bytes
|
||||
Address: UI/Common_fui
|
||||
Type: TextAsset
|
||||
@@ -22845,8 +22755,8 @@ MonoBehaviour:
|
||||
Filter: '*'
|
||||
Bundles:
|
||||
- Name: main/ui.bundle
|
||||
Hash: 87fb02b0e4a45289b5e84b52150afd3f
|
||||
Size: 15629341
|
||||
Hash: 40fee51e07cdc187f12eeddb4b2467b1
|
||||
Size: 3295167
|
||||
Assets:
|
||||
- Path: Assets/ResRaw/Fgui/Common/Background - Gray (Light).png
|
||||
Address: UI/Background - Gray (Light)
|
||||
@@ -22878,96 +22788,6 @@ MonoBehaviour:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_9wej123.png
|
||||
Address: UI/Common_atlas_9wej123
|
||||
Type: Texture2D
|
||||
Bundle: main/ui.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: UI
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_dhevef.png
|
||||
Address: UI/Common_atlas_dhevef
|
||||
Type: Texture2D
|
||||
Bundle: main/ui.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: UI
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_dheveg.png
|
||||
Address: UI/Common_atlas_dheveg
|
||||
Type: Texture2D
|
||||
Bundle: main/ui.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: UI
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_dheveh.png
|
||||
Address: UI/Common_atlas_dheveh
|
||||
Type: Texture2D
|
||||
Bundle: main/ui.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: UI
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_mbu9ye.png
|
||||
Address: UI/Common_atlas_mbu9ye
|
||||
Type: Texture2D
|
||||
Bundle: main/ui.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: UI
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_atlas_obry17g.png
|
||||
Address: UI/Common_atlas_obry17g
|
||||
Type: Texture2D
|
||||
Bundle: main/ui.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: UI
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: 064d656ec28baec4e984e51d3b9b7fc3, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Fgui/Common/Common_fui.bytes
|
||||
Address: UI/Common_fui
|
||||
Type: TextAsset
|
||||
@@ -41478,8 +41298,8 @@ MonoBehaviour:
|
||||
Dependencies: []
|
||||
Tags:
|
||||
- Name: main/plyaer.bundle
|
||||
Hash: bbba633188707d96572ed1a4c0d88e63
|
||||
Size: 378832435
|
||||
Hash: 1f70b60ba723e3f184071aaf0a696ab9
|
||||
Size: 379451803
|
||||
Assets:
|
||||
- Path: Assets/ResRaw/Prefabs/Line/fishing line float set.prefab
|
||||
Address: Plyaer/fishing line float set
|
||||
@@ -41511,53 +41331,8 @@ MonoBehaviour:
|
||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Prefabs/Line/FishingRopeLong.asset
|
||||
Address: Plyaer/FishingRopeLong
|
||||
Type: Missing
|
||||
Bundle: main/plyaer.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: Plyaer
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Prefabs/Line/FishingRopeLong2.asset
|
||||
Address: Plyaer/FishingRopeLong2
|
||||
Type: Missing
|
||||
Bundle: main/plyaer.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: Plyaer
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Prefabs/Line/FishingRopeShort.asset
|
||||
Address: Plyaer/FishingRopeShort
|
||||
Type: Missing
|
||||
Bundle: main/plyaer.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: Plyaer
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Prefabs/Line/Float (4).prefab
|
||||
Address: Plyaer/Float (4)
|
||||
- Path: Assets/ResRaw/Prefabs/Line/LineHand1.prefab
|
||||
Address: Plyaer/LineHand1
|
||||
Type: GameObject
|
||||
Bundle: main/plyaer.bundle
|
||||
Tags:
|
||||
@@ -41586,36 +41361,6 @@ MonoBehaviour:
|
||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Prefabs/Line/RopeSegment_4.asset
|
||||
Address: Plyaer/RopeSegment_4
|
||||
Type: Missing
|
||||
Bundle: main/plyaer.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: Plyaer
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Prefabs/Line/Spool.mat
|
||||
Address: Plyaer/Spool
|
||||
Type: Material
|
||||
Bundle: main/plyaer.bundle
|
||||
Tags:
|
||||
Group:
|
||||
Name: Plyaer
|
||||
Enable: 1
|
||||
BundleMode: 0
|
||||
AddressMode: 2
|
||||
Tags:
|
||||
Collectors:
|
||||
- {fileID: 102900000, guid: aa3f5467c0c153642ac320466aee0ec1, type: 3}
|
||||
FilterEnum: 0
|
||||
Filter: '*'
|
||||
- Path: Assets/ResRaw/Prefabs/Player/Anim/AnimationClip/CameraCrouch.anim
|
||||
Address: Plyaer/CameraCrouch
|
||||
Type: AnimationClip
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -1573,6 +1573,9 @@ PrefabInstance:
|
||||
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 284185ec1f1e5c6409bed7bc27c6c215, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 408230832252209712}
|
||||
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 284185ec1f1e5c6409bed7bc27c6c215, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: -8382053806685233489}
|
||||
- targetCorrespondingSourceObject: {fileID: -5151492872390713093, guid: 284185ec1f1e5c6409bed7bc27c6c215, type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 8753856777003469895}
|
||||
@@ -2320,7 +2323,6 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
animator: {fileID: 1327933454218635796}
|
||||
capsule: {fileID: 0}
|
||||
useGravity: 1
|
||||
ragdolling: 0
|
||||
customizing: 0
|
||||
@@ -2466,6 +2468,18 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::NBF.PlayerAnimator
|
||||
_Animator: {fileID: 0}
|
||||
--- !u!114 &-8382053806685233489
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1127680710956633387}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0fe64f6594c24eef9fbaf147754871f8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::NBF.PlayerDebug
|
||||
--- !u!4 &1133838163070727255 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: -8297027179297848275, guid: 284185ec1f1e5c6409bed7bc27c6c215, type: 3}
|
||||
@@ -6015,6 +6029,7 @@ MonoBehaviour:
|
||||
- label: collider_brow
|
||||
position: {x: -0.09, y: -0.12, z: 0}
|
||||
mirror: 0
|
||||
colliderObjects: []
|
||||
--- !u!1 &8441050652924648284 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 8521822769418824486, guid: 284185ec1f1e5c6409bed7bc27c6c215, type: 3}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using KINEMATION.MagicBlend.Runtime;
|
||||
using RootMotion.FinalIK;
|
||||
using UnityEngine;
|
||||
@@ -11,7 +11,7 @@ namespace NBF
|
||||
public PlayerIK IK { get; private set; }
|
||||
public PlayerAnimator PlayerAnimator { get; private set; }
|
||||
public MagicBlending MagicBlending { get; private set; }
|
||||
|
||||
public PlayerDebug PlayerDebug { get; private set; }
|
||||
public Transform NeckTransform;
|
||||
public LookAtIK LookIk;
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace NBF
|
||||
MagicBlending = GetComponent<MagicBlending>();
|
||||
IK = GetComponent<PlayerIK>();
|
||||
PlayerAnimator = GetComponent<PlayerAnimator>();
|
||||
PlayerDebug = GetComponent<PlayerDebug>();
|
||||
}
|
||||
|
||||
public void SetPlayer(Transform FppLook)
|
||||
|
||||
@@ -70,6 +70,8 @@ namespace NBF
|
||||
/// </summary>
|
||||
public PlayerItem HandItem => Items.GetValueOrDefault(HandItemId);
|
||||
|
||||
public List<Vector3> TrajectoryPoints = new List<Vector3>();
|
||||
|
||||
#region 初始化
|
||||
|
||||
public void InitPlayer(MapUnitInfo unitInfo)
|
||||
|
||||
26
Assets/Scripts/Fishing/New/View/Player/Mono/PlayerDebug.cs
Normal file
26
Assets/Scripts/Fishing/New/View/Player/Mono/PlayerDebug.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBF
|
||||
{
|
||||
public class PlayerDebug : PlayerMonoBehaviour
|
||||
{
|
||||
private void Update()
|
||||
{
|
||||
DrawLastTrajectory();
|
||||
}
|
||||
|
||||
private void DrawLastTrajectory()
|
||||
{
|
||||
if (Player == null) return;
|
||||
|
||||
|
||||
for (int i = 1; i < Player.TrajectoryPoints.Count; i++)
|
||||
{
|
||||
Debug.DrawLine(Player.TrajectoryPoints[i - 1], Player.TrajectoryPoints[i], Color.yellow);
|
||||
}
|
||||
|
||||
// Debug.DrawRay(Player.TrajectoryPoints[Player.TrajectoryPoints.Count], Vector3.up * 0.3f, Color.cyan);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0fe64f6594c24eef9fbaf147754871f8
|
||||
timeCreated: 1774445468
|
||||
@@ -4,6 +4,7 @@ namespace NBF
|
||||
{
|
||||
public interface IPlayerThrowAnimation
|
||||
{
|
||||
Player Player { get; set; }
|
||||
bool IsPlaying { get; }
|
||||
void Play(ThrowAnimationRequest request);
|
||||
void Tick(float deltaTime);
|
||||
@@ -13,6 +14,7 @@ namespace NBF
|
||||
public struct ThrowAnimationRequest
|
||||
{
|
||||
public LureController Lure;
|
||||
public Vector3 ThrowOriginPosition;
|
||||
public Vector3 StartPosition;
|
||||
public Vector3 Forward;
|
||||
public float ChargedProgress;
|
||||
|
||||
@@ -4,10 +4,13 @@ namespace NBF
|
||||
{
|
||||
public class ParabolaPlayerThrowAnimation : IPlayerThrowAnimation
|
||||
{
|
||||
public Player Player { get; set; }
|
||||
|
||||
private const int TrajectorySampleCount = 24;
|
||||
|
||||
private readonly float _minThrowDistance;
|
||||
private readonly float _maxThrowDistance;
|
||||
//
|
||||
// private readonly float _minThrowDistance;
|
||||
// private readonly float _maxThrowDistance;
|
||||
private readonly float _throwDuration;
|
||||
private readonly float _throwArcHeight;
|
||||
private readonly float _targetHeightOffset;
|
||||
@@ -24,15 +27,11 @@ namespace NBF
|
||||
public bool IsPlaying => _castingLure != null;
|
||||
|
||||
public ParabolaPlayerThrowAnimation(
|
||||
float minThrowDistance = 6f,
|
||||
float maxThrowDistance = 25f,
|
||||
float throwDuration = 0.65f,
|
||||
float throwDuration = 0.45f,
|
||||
float throwArcHeight = 4f,
|
||||
float targetHeightOffset = 0f,
|
||||
AnimationCurve throwHeightCurve = null)
|
||||
{
|
||||
_minThrowDistance = minThrowDistance;
|
||||
_maxThrowDistance = maxThrowDistance;
|
||||
_throwDuration = throwDuration;
|
||||
_throwArcHeight = throwArcHeight;
|
||||
_targetHeightOffset = targetHeightOffset;
|
||||
@@ -55,15 +54,10 @@ namespace NBF
|
||||
var lureBody = request.Lure.RBody;
|
||||
_castStartPos = request.StartPosition;
|
||||
|
||||
Vector3 forward = request.Forward;
|
||||
forward.y = 0f;
|
||||
if (forward.sqrMagnitude < 0.001f)
|
||||
{
|
||||
forward = Vector3.forward;
|
||||
}
|
||||
Vector3 forward = GetHorizontalForward(request.Forward);
|
||||
|
||||
float distance = Mathf.Lerp(_minThrowDistance, _maxThrowDistance, _chargedProgress);
|
||||
_castTargetPos = _castStartPos + forward.normalized * distance;
|
||||
float distance = Mathf.Lerp(1, 8, _chargedProgress);
|
||||
_castTargetPos = request.ThrowOriginPosition + forward * distance;
|
||||
_castTargetPos.y = _castStartPos.y + _targetHeightOffset;
|
||||
|
||||
CacheTrajectoryPoints();
|
||||
@@ -77,7 +71,6 @@ namespace NBF
|
||||
|
||||
public void Tick(float deltaTime)
|
||||
{
|
||||
DrawLastTrajectory();
|
||||
UpdateCastAnimation(deltaTime);
|
||||
}
|
||||
|
||||
@@ -131,6 +124,22 @@ namespace NBF
|
||||
}
|
||||
|
||||
_hasLastTrajectory = true;
|
||||
if (Player != null && Player.TrajectoryPoints != null)
|
||||
{
|
||||
Player.TrajectoryPoints.Clear();
|
||||
Player.TrajectoryPoints.AddRange(_lastTrajectoryPoints);
|
||||
}
|
||||
}
|
||||
|
||||
private Vector3 GetHorizontalForward(Vector3 forward)
|
||||
{
|
||||
forward.y = 0f;
|
||||
if (forward.sqrMagnitude < 0.001f)
|
||||
{
|
||||
return Vector3.forward;
|
||||
}
|
||||
|
||||
return forward.normalized;
|
||||
}
|
||||
|
||||
private Vector3 EvaluateTrajectoryPosition(float progress)
|
||||
@@ -140,20 +149,5 @@ namespace NBF
|
||||
position.y += arc;
|
||||
return position;
|
||||
}
|
||||
|
||||
private void DrawLastTrajectory()
|
||||
{
|
||||
if (!_hasLastTrajectory)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 1; i <= TrajectorySampleCount; i++)
|
||||
{
|
||||
Debug.DrawLine(_lastTrajectoryPoints[i - 1], _lastTrajectoryPoints[i], Color.yellow);
|
||||
}
|
||||
|
||||
Debug.DrawRay(_lastTrajectoryPoints[TrajectorySampleCount], Vector3.up * 0.3f, Color.cyan);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,9 +67,11 @@ namespace NBF
|
||||
}
|
||||
|
||||
_throwAnimation = CreateThrowAnimation(rod);
|
||||
_throwAnimation.Player = Player;
|
||||
_throwAnimation?.Play(new ThrowAnimationRequest
|
||||
{
|
||||
Lure = rod.Line.Lure,
|
||||
ThrowOriginPosition = PlayerView.Unity.transform.position,
|
||||
StartPosition = rod.Line.Lure.RBody.position,
|
||||
Forward = PlayerView.Unity.transform.forward,
|
||||
ChargedProgress = ChargedProgress
|
||||
|
||||
@@ -60,8 +60,8 @@ namespace NBF
|
||||
{
|
||||
// await Task.Delay(100);
|
||||
CommonTopPanel.Show();
|
||||
SettingPanel.Show();
|
||||
// LoginPanel.Show();
|
||||
// SettingPanel.Show();
|
||||
LoginPanel.Show();
|
||||
|
||||
// TestPanel.Show();
|
||||
|
||||
|
||||
6
FGUIProject/assets/Common/Com/Back/UIBlurBackground2.xml
Normal file
6
FGUIProject/assets/Common/Com/Back/UIBlurBackground2.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<component size="1920,1080" overflow="hidden" extention="Label">
|
||||
<displayList>
|
||||
<image id="n39_ay5q" name="n39" src="vbojnh" fileName="ImagesNew/Square/square128_fill.png" xy="0,0" size="1920,1080" color="#1d1d1d"/>
|
||||
</displayList>
|
||||
</component>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<component size="92,5">
|
||||
<displayList>
|
||||
<image id="n21_jd2r" name="n21" src="r03uiu" fileName="Images/Panels/Gradient.png" xy="0,2" size="92,1">
|
||||
<image id="n21_jd2r" name="n21" src="vbojnh" fileName="ImagesNew/Square/square128_fill.png" xy="0,2" size="92,1" alpha="0.7">
|
||||
<relation target="" sidePair="width-width,center-center,bottom-bottom"/>
|
||||
</image>
|
||||
<image id="n22_jd2r" name="n22" src="jd2r17v" fileName="ImagesNew/花纹/副标题花纹.png" xy="43,0">
|
||||
|
||||
@@ -423,6 +423,7 @@
|
||||
<component id="r7eg18p" name="ButtonCommonTab.xml" path="/ComNew/Button/" exported="true"/>
|
||||
<image id="r7eg18q" name="square128_stroke_half_1px.png" path="/ImagesNew/Square/" exported="true" scale="9grid" scale9grid="4,6,120,56"/>
|
||||
<image id="r7eg18r" name="item_select.png" path="/ImagesNew/item/" exported="true" scale="9grid" scale9grid="13,0,22,48"/>
|
||||
<component id="gbv418s" name="UIBlurBackground2.xml" path="/Com/Back/" exported="true"/>
|
||||
</resources>
|
||||
<publish name="" path="../Assets/ResRaw/Fgui/Common" packageCount="2" genCode="true"/>
|
||||
</packageDescription>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<component size="1920,1080" extention="Label" designImage="ui://hxr7rc7pjd2r3c" designImageAlpha="100">
|
||||
<displayList>
|
||||
<component id="n14_gii7" name="n14" src="8hy8la" fileName="Com/Back/UIBlurBackground.xml" pkg="6hgkvlau" xy="0,0">
|
||||
<component id="n14_gii7" name="n14" src="gbv418s" fileName="Com/Back/UIBlurBackground2.xml" pkg="6hgkvlau" xy="0,0">
|
||||
<relation target="" sidePair="width-width,height-height"/>
|
||||
</component>
|
||||
<component id="n16_d3lv" name="MenuList" src="fcfggr" fileName="Com/Menu/CommonMenu.xml" pkg="6hgkvlau" xy="0,0" size="1920,170" controller="showTitleCtrl,1">
|
||||
@@ -11,7 +11,7 @@
|
||||
<component id="n3_e9z8" name="Introduce" src="e9z89" fileName="Com/IntroduceTag.xml" xy="1179,179" size="735,828">
|
||||
<relation target="" sidePair="right-right,top-top,bottomext-bottom"/>
|
||||
</component>
|
||||
<list id="n10_e9z8" name="List" xy="80,179" size="1090,783" overflow="scroll" scrollBarFlags="4" clipSoftness="10,10" lineGap="4" defaultItem="ui://hxr7rc7pmnqh2w" autoItemSize="false" autoClearItems="true">
|
||||
<list id="n10_e9z8" name="List" xy="80,179" size="1090,783" overflow="scroll" scrollBarFlags="4" clipSoftness="10,10" lineGap="6" defaultItem="ui://hxr7rc7pmnqh2w" autoItemSize="false" autoClearItems="true">
|
||||
<relation target="" sidePair="left-left,top-top,rightext-right,bottomext-bottom"/>
|
||||
<item url="ui://hxr7rc7pj6rn17"/>
|
||||
<item/>
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ALoadSceneMode_002Ecs_002Fl_003AC_0021_003FUsers_003F60527_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Ff27f375161264267910e5cbe7a0862ec1f7600_003F0e_003F70ec6b27_003FLoadSceneMode_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AMathf_002Ecs_002Fl_003AC_0021_003FUsers_003F60527_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F021f30a9a92b48ce98ae6b39956dd76a1df600_003Fdd_003F448b7101_003FMathf_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AMethodBase_002Ecs_002Fl_003AC_0021_003FUsers_003F60527_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F3272951baa974b2ab5e8de68d60bfc1e46ae00_003F35_003F5dbb2059_003FMethodBase_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AMonoBehaviour_002Ecs_002Fl_003AC_0021_003FUsers_003F60527_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Ff27f375161264267910e5cbe7a0862ec1f7600_003F9b_003F39454f88_003FMonoBehaviour_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AMonoBehaviour_002Ecs_002Fl_003AC_0021_003FUsers_003FFIREBAT_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E3_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fb4c8c45fec274213bfac03ee0e9a3d621f5a00_003F57_003Fe1f1d73b_003FMonoBehaviour_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AObject_002Ecs_002Fl_003AC_0021_003FUsers_003F60527_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F3789ee403a53437cbb6b5d9ab6311f51573620_003F28_003Fb85198b6_003FObject_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AObject_002Ecs_002Fl_003AC_0021_003FUsers_003F60527_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fb4c8c45fec274213bfac03ee0e9a3d621f5a00_003F87_003F6890e286_003FObject_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
|
||||
|
||||
Reference in New Issue
Block a user