private void UpdateMoveOptionsSelectors()
    {
        clearMoveOptions();

        foreach (Command c in Cube.GetOptions())
        {
            GameObject selectorGameObject = (GameObject)Instantiate(moveOptionSelector);

            // Add the component
            MoveOptionSelector selector = selectorGameObject.AddComponent <MoveOptionSelector>();
            selector.Cube           = Cube;
            selectorGameObject.name = "Selector" + gameObject.name;
            selector.Listener       = this;
            selectorGameObject.transform.position = c.EndPosition.ToVector3;
            moveOptions.Add(selector, c);
        }
    }
 public void NotifyOptionSelected(MoveOptionSelector selector)
 {
     AddCommand(moveOptions[selector]);
     clearMoveOptions();
 }
 public void NotifyOptionSelected(MoveOptionSelector selector)
 {
     AddCommand(moveOptions[selector]);
     clearMoveOptions();
 }