抛竿运动轨迹修改
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user