public void Play() //start/stop playing { Debug.Log("play command is pressed"); _recorderState = _recorderState.Play(); Debug.Log("In:" + _recorderState.GetType()); EnterState(); }
public void Record() //starts/stops playback { Debug.Log("record command is pressed"); _recorderState = _recorderState.Record(); Debug.Log("In:" + _recorderState.GetType()); EnterState(); }
void Init() { _instance = this; _inputHandler = InputHandler.Instance; _recorderState = _recorderIdleState;//by default _timeStamp = 0; }