// Start is called before the first frame update public void Start() { base.Start(); //Bind keys with commands buttonB = new CommandNothing(); buttonW = new MoveForward(); buttonS = new MoveReverse(); buttonA = new MoveLeft(); buttonD = new MoveRight(); buttonZ = new CommandUndo(); buttonR = new CommandReplay(); }
void InitializeProperties() { SelectedTrim.Subscribe((v) => { SetTrimSettingsWith(v); }); Prologue.Subscribe((v) => { UpdateButtonStatus(); }); Epilogue.Subscribe((v) => { UpdateButtonStatus(); }); PrologueEnabled.Subscribe((v) => { UpdateButtonStatus(); }); EpilogueEnabled.Subscribe((v) => { UpdateButtonStatus(); }); TrimmingName.Subscribe((v) => { UpdateButtonStatus(); }); Started.Subscribe((V) => { UpdatePlayingState(); }); Pausing.Subscribe((v) => { UpdatePlayingState(); }); Duration.Subscribe((v) => { }); CommandRegister.Subscribe(ExecRegister); CommandApply.Subscribe(ExecApply); CommandUpdate.Subscribe(ExecUpdate); CommandUndo.Subscribe(ExecUndo); CommandCancel.Subscribe(ExecCancel); CommandSelect.Subscribe(ExecSelect); Rating.Subscribe(ChangeRating); }
public UndoLeftCommand(CommandUndo command) : base(command) { }
public UndoRightCommand(CommandUndo command) : base(command) { }
public UndoCommand(CommandUndo command) { this.CommandName = "Undo " + command.CommandName; }