private void HandleTriggerCollision(object sender, Transform checkpointTransform) { if (checkpointTransform.tag.Equals("TrackPoint")) { checkpointsPath.GetNextCheckPointAndCheckIn(shipModelView.transform, checkpointTransform); directionArrow.CheckpointDirection = checkpointsPath.GetNextGatePoint(shipModelView.transform); } }
private void HandleTriggerCollision(object sender, Transform checkpointTransform) { if (checkpointTransform.tag.Equals("TrackPoint")) { currentAim = checkpointsPath.GetNextCheckPointAndCheckIn(shipModelView.transform, checkpointTransform); //????? SetAimAndOffset(); } }
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()); } }