Skip to content
Rewind actions in Unity.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Rewind Controller

Rewind actions in Unity.

The rewind ability in this project is made possible due to the Command Pattern. Which makes implementing a rewind ability surprisingly easy.

All actions in the scene (including player/enemy movement, deaths, projectile release/movement) are encapsulated as actionable command objects.

Each command has an execute and undo method.

When a command is generated it is added to a global group containing all commands executed.This group simply encapsulates a list and provides access to a Reverse method.

You can’t perform that action at this time.