26 lines
626 B
C#
26 lines
626 B
C#
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);
|
|
}
|
|
}
|
|
} |