07-08-2019, 12:54 PM
Hi,
I'm looking for a little guidance with an issue I'm having.
I've created a based spline and would like a debug message displayed when my GameObject moves over each CP.
I've put together the following script and applied it to a Game Object. Unfortunately, it doesn't seem to be working. Any ideas?
I'm looking for a little guidance with an issue I'm having.
I've created a based spline and would like a debug message displayed when my GameObject moves over each CP.
I've put together the following script and applied it to a Game Object. Unfortunately, it doesn't seem to be working. Any ideas?
Code:
using FluffyUnderware.Curvy;
using FluffyUnderware.Curvy.Controllers;
using UnityEngine;
public class CheckPoint : MonoBehaviour
{
public void OnCPReachedHandler(CurvySplineMoveEventArgs e)
{
// what CP have we moved over?
Debug.Log(e.ControlPoint);
}
}