Example #1
0
 public SimpleStatePrompt(PromptStateCallback <T> callback, bool callbackHandlesCancel, T state)
 {
     m_Callback       = callback;
     m_State          = state;
     m_CancelCallback = callbackHandlesCancel ? callback : null;
 }
Example #2
0
 public SimpleStatePrompt(PromptStateCallback <T> callback, T state) : this(callback, false, state)
 {
 }
Example #3
0
 public SimpleStatePrompt(PromptStateCallback <T> callback, PromptStateCallback <T> cancelCallback, T state)
 {
     m_Callback       = callback;
     m_CancelCallback = cancelCallback;
     m_State          = state;
 }