private void HandleTriggerCollision(object sender, Transform checkpointTransform)
 {
     if (checkpointTransform.tag.Equals("TrackPoint"))
     {
         checkpointsPath.GetNextCheckPointAndCheckIn(shipModelView.transform, checkpointTransform);
         directionArrow.CheckpointDirection = checkpointsPath.GetNextGatePoint(shipModelView.transform);
     }
 }
Exemplo n.º 2
0
    private void HandleTriggerCollision(object sender, Transform checkpointTransform)
    {
        if (checkpointTransform.tag.Equals("TrackPoint"))
        {
            currentAim = checkpointsPath.GetNextCheckPointAndCheckIn(shipModelView.transform, checkpointTransform); //?????

            SetAimAndOffset();
        }
    }
Exemplo n.º 3
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("TrackPoint"))
        {
            currentAim = trackPath.GetNextCheckPointAndCheckIn(transform, other.transform);
            //currentAim = trackPath.GetNextCheckPointPosition(transform);

            Debug.Log(trackPath.GetNextGatePoint(transform).ToString());
        }
    }