void TeleportToCheckpoint(CheckpointDetails checkpoint) { transform.position = checkpoint.checkpointGameObject.CheckpointCenter(); _lastCheckpoint = checkpoint; _rewindsLeft = checkpoint.RewindsForThisSection; UpdateRewindsCountBanner(_rewindsLeft); }
// ICheckpointHit public void CheckpointHit(CheckpointDetails details) { _lastCheckpoint = details; _rewindsLeft = details.RewindsForThisSection; UpdateRewindsCountBanner(_rewindsLeft); }