void SetCurrentCheckpoint(Transform checkpoint) { Debug.Log("Checkpoint type = " + checkpoint.GetType()); myCurrentCheckpoint = checkpoint; //Transform checkpointToSave = checkpoint; //ourCurrentCheckpoint.SetTransformToSave(checkpointToSave); ourCurrentCheckpoint.SetPosToSave(checkpoint); currentCheckpointPos = myCurrentCheckpoint.position; resetHealthEvent.Raise(); }