You could look into the replay functionality built into the engine - if you are using the game framework it almost ‘just works’
You could look into the replay functionality built into the engine - if you are using the game framework it almost ‘just works’