编辑器状态下return
This commit is contained in:
parent
587ec681ac
commit
dd15489b43
|
@ -973,6 +973,10 @@ public class RushSDKManager : D_MonoSingleton<RushSDKManager>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public bool IsWidgetAdded(EFSdk.WidgetType type)
|
public bool IsWidgetAdded(EFSdk.WidgetType type)
|
||||||
{
|
{
|
||||||
|
if (Application.isEditor)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return EFSdk.get().IsWidgetAdded(type);
|
return EFSdk.get().IsWidgetAdded(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -984,6 +988,10 @@ public class RushSDKManager : D_MonoSingleton<RushSDKManager>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public void RequestAddWidget(EFSdk.WidgetType type, Action<bool> action)
|
public void RequestAddWidget(EFSdk.WidgetType type, Action<bool> action)
|
||||||
{
|
{
|
||||||
|
if (Application.isEditor)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
EFSdk.get().RequestAddWidget(type, action);
|
EFSdk.get().RequestAddWidget(type, action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -997,6 +1005,10 @@ public class RushSDKManager : D_MonoSingleton<RushSDKManager>
|
||||||
/// <param name="action">小组件添加结果回调</param>
|
/// <param name="action">小组件添加结果回调</param>
|
||||||
public void RequestAddWidget3x2(string title1, string title2, string progressStr, string buttonStr, Action<bool> action)
|
public void RequestAddWidget3x2(string title1, string title2, string progressStr, string buttonStr, Action<bool> action)
|
||||||
{
|
{
|
||||||
|
if (Application.isEditor)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
EFSdk.get().RequestAddWidget3x2(title1, title2, progressStr, buttonStr, action);
|
EFSdk.get().RequestAddWidget3x2(title1, title2, progressStr, buttonStr, action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1008,6 +1020,10 @@ public class RushSDKManager : D_MonoSingleton<RushSDKManager>
|
||||||
/// <param name="contentTextColor">文案文字十六进制颜色值,如: #FFFFFF</param>
|
/// <param name="contentTextColor">文案文字十六进制颜色值,如: #FFFFFF</param>
|
||||||
public void RequestAddWidget5x1(string content, Action<bool> action, string contentTextColor = "#FFFFFF")
|
public void RequestAddWidget5x1(string content, Action<bool> action, string contentTextColor = "#FFFFFF")
|
||||||
{
|
{
|
||||||
|
if (Application.isEditor)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
EFSdk.get().RequestAddWidget5x1(content, action, contentTextColor);
|
EFSdk.get().RequestAddWidget5x1(content, action, contentTextColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue