适配C2划船机课程和menu
This commit is contained in:
1 parent
e0649f7ea1
commit
06aefb93c4
6 files changed
+162
-77
No files matched your search
@@ -176,7 +176,7 @@ namespace Assets.Scripts
|
||||
/// <param name="showSeconds"></param>
|
||||
/// <param name="endCallback"></param>
|
||||
/// <param name="_parent"></param>
|
||||
public static void showToast(GameObject p, string text, int duration = 2, int type = 0, Func<bool> stopFunc = null, bool isLowest = false,bool showSeconds = false,Action endCallback = null,PFUIPanel _parent = null)
|
||||
public static void showToast(GameObject p, string text, int duration = 2, int type = 0, Func<bool> stopFunc = null, bool isLowest = false,bool showSeconds = false,Action endCallback = null,PFUIPanel _parent = null,bool isOnly = false)
|
||||
{
|
||||
var parent = UIManager.Instance.ModalsPanel;
|
||||
if (parent == null)
|
||||
@@ -194,6 +194,7 @@ namespace Assets.Scripts
|
||||
var toast = parent.transform.Find("ToastContainer");
|
||||
if (toast != null)
|
||||
{
|
||||
if (isOnly) return;
|
||||
MonoBehaviour.DestroyImmediate(toast.gameObject);
|
||||
}
|
||||
#if UNITY_IOS || UNITY_ANDROID
|
||||
|
||||
Reference in new issue
Block a user