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