Skip to content

Commit 97dd725

Browse files
committed
Change deprecated UNITY_IPHONE define
1 parent ba4093a commit 97dd725

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

unity/NativeDialogPlugin/Assets/Plugins/DialogManager.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void OnGUI ()
7676
{
7777
EditorDialog.Draw ();
7878
}
79-
#elif UNITY_IPHONE
79+
#elif UNITY_IOS
8080
[DllImport("__Internal")]
8181
private static extern int _showSelectDialog (string msg);
8282
[DllImport("__Internal")]
@@ -103,7 +103,7 @@ public int ShowSelectDialog (string msg, Action<bool> del)
103103
id = cls.CallStatic<int>("ShowSelectDialog", msg);
104104
_delegates.Add(id, del);
105105
}
106-
#elif UNITY_IPHONE
106+
#elif UNITY_IOS
107107
id = _showSelectDialog(msg);
108108
_delegates.Add(id, del);
109109
#endif
@@ -120,7 +120,7 @@ public int ShowSelectDialog (string title, string msg, Action<bool> del)
120120
id = cls.CallStatic<int>("ShowSelectTitleDialog", title, msg);
121121
_delegates.Add(id, del);
122122
}
123-
#elif UNITY_IPHONE
123+
#elif UNITY_IOS
124124
id = _showSelectTitleDialog(title, msg);
125125
_delegates.Add(id, del);
126126
#endif
@@ -137,7 +137,7 @@ public int ShowSubmitDialog (string msg, Action<bool> del)
137137
id = cls.CallStatic<int>("ShowSubmitDialog", msg);
138138
_delegates.Add(id, del);
139139
}
140-
#elif UNITY_IPHONE
140+
#elif UNITY_IOS
141141
id = _showSubmitDialog(msg);
142142
_delegates.Add(id, del);
143143
#endif
@@ -154,7 +154,7 @@ public int ShowSubmitDialog (string title, string msg, Action<bool> del)
154154
id = cls.CallStatic<int>("ShowSubmitTitleDialog", title, msg);
155155
_delegates.Add(id, del);
156156
}
157-
#elif UNITY_IPHONE
157+
#elif UNITY_IOS
158158
id = _showSubmitTitleDialog(title, msg);
159159
_delegates.Add(id, del);
160160
#endif
@@ -168,7 +168,7 @@ public void DissmissDialog(int id) {
168168
using (AndroidJavaClass cls = new AndroidJavaClass("unity.plugins.dialog.DialogManager")) {
169169
cls.CallStatic("DissmissDialog", id);
170170
}
171-
#elif UNITY_IPHONE
171+
#elif UNITY_IOS
172172
_dissmissDialog(id);
173173
#endif
174174

@@ -188,7 +188,7 @@ public void SetLabel(string decide, string cancel, string close) {
188188
using (AndroidJavaClass cls = new AndroidJavaClass("unity.plugins.dialog.DialogManager")) {
189189
cls.CallStatic("SetLabel", decide, cancel, close);
190190
}
191-
#elif UNITY_IPHONE
191+
#elif UNITY_IOS
192192
_setLabel(decide, cancel, close);
193193
#endif
194194

0 commit comments

Comments
 (0)