예제 #1
0
 public void OnRecordingButtonClick()
 {
     if (Mode == RecordingButtonMode.Start)
     {
         Debug.Log("Button start pressed");
         Mode = RecordingButtonMode.Stop;
         OnStart?.Invoke();
     }
     else if (Mode == RecordingButtonMode.Stop)
     {
         Debug.Log("Button stop pressed");
         Mode = RecordingButtonMode.Restart;
         OnStop?.Invoke();
     }
     else
     {
         Debug.Log("Button restart pressed");
         Mode = RecordingButtonMode.Start;
         OnRestart?.Invoke();
     }
 }