@@ -10,15 +10,15 @@ public class NativeDialogSample : MonoBehaviour
1010
1111 private void Start ( )
1212 {
13- DialogManager . Instance . SetLabel ( decideLabel , cancelLabel , closeLabel ) ;
13+ DialogManager . SetLabel ( decideLabel , cancelLabel , closeLabel ) ;
1414 }
1515
1616 #region Invoked from Unity GUI
1717
1818 public void ShowSelectDialog ( )
1919 {
2020 const string message = "A simple select dialog" ;
21- DialogManager . Instance . ShowSelectDialog ( message , ( bool result ) =>
21+ DialogManager . ShowSelect ( message , ( bool result ) =>
2222 {
2323 Debug . Log ( $ "{ result } : { message } ") ;
2424 } ) ;
@@ -28,7 +28,7 @@ public void ShowSelectDialogWithTitle()
2828 {
2929 const string title = "A title" ;
3030 const string message = "A message for select dialog" ;
31- DialogManager . Instance . ShowSelectDialog ( title , message , ( bool result ) =>
31+ DialogManager . ShowSelect ( title , message , ( bool result ) =>
3232 {
3333 Debug . Log ( $ "{ result } : { title } / { message } ") ;
3434 } ) ;
@@ -37,7 +37,7 @@ public void ShowSelectDialogWithTitle()
3737 public void ShowSubmitDialog ( )
3838 {
3939 const string message = "A simple submit dialog" ;
40- DialogManager . Instance . ShowSubmitDialog ( message , ( bool result ) =>
40+ DialogManager . ShowSubmit ( message , ( bool result ) =>
4141 {
4242 Debug . Log ( $ "{ result } : { message } ") ;
4343 } ) ;
@@ -47,7 +47,7 @@ public void ShowSubmitDialogWithTitle()
4747 {
4848 const string title = "A title" ;
4949 const string message = "A message for submit dialog" ;
50- DialogManager . Instance . ShowSubmitDialog ( title , message , ( bool result ) =>
50+ DialogManager . ShowSubmit ( title , message , ( bool result ) =>
5151 {
5252 Debug . Log ( $ "{ result } : { title } / { message } ") ;
5353 } ) ;
@@ -56,7 +56,7 @@ public void ShowSubmitDialogWithTitle()
5656 public void ShowDialogWithAutoDissmiss ( )
5757 {
5858 const string message = "A dialog with auto dismiss" ;
59- int id = DialogManager . Instance . ShowSelectDialog ( message , ( bool result ) =>
59+ int id = DialogManager . ShowSelect ( message , ( bool result ) =>
6060 {
6161 Debug . Log ( $ "{ result } : { message } ") ;
6262 } ) ;
@@ -68,6 +68,6 @@ public void ShowDialogWithAutoDissmiss()
6868 private IEnumerator Dissmiss ( int id , float time )
6969 {
7070 yield return new WaitForSeconds ( time ) ;
71- DialogManager . Instance . DissmissDialog ( id ) ;
71+ DialogManager . Dissmiss ( id ) ;
7272 }
7373}
0 commit comments