Skip to content

Commit 60d880c

Browse files
author
Miguel Tomas
committed
Fixed Crash when showing Alert buttons on the editor
1 parent db57875 commit 60d880c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Runtime/NativeUiService.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,8 @@ public static void ShowToastMessage(string message, bool isLongDuration)
102102
#endif
103103
}
104104

105-
#if UNITY_EDITOR
106-
#elif UNITY_IOS
107-
public delegate void AlertButtonDelegate(string buttonText);
105+
#if UNITY_IOS
106+
internal delegate void AlertButtonDelegate(string buttonText);
108107

109108
[System.Runtime.InteropServices.DllImport("__Internal")]
110109
private static extern void AlertMessage(bool isSheet, string title, string message, string[] buttonsText,

0 commit comments

Comments
 (0)