A simple implementation of the command design pattern in Unity 3D