Skip to content

Commit 084692b

Browse files
committed
refresh asset
1 parent a1f8289 commit 084692b

File tree

5 files changed

+29
-116
lines changed

5 files changed

+29
-116
lines changed

Assets/LocalizeService/Plugins/Core/ActionExtentions.cs

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using System;
2+
3+
public static class SafetyAction
4+
{
5+
public static void SafeInvoke(this Action action)
6+
{
7+
if (action != null)
8+
{
9+
action.Invoke();
10+
}
11+
}
12+
13+
public static void SafeInvoke<T>(this Action<T> action, T arg1)
14+
{
15+
if (action != null)
16+
{
17+
action.Invoke(arg1);
18+
}
19+
}
20+
21+
public static void SafeInvoke<T1, T2>(this Action<T1, T2> action, T1 arg1, T2 arg2)
22+
{
23+
if (action != null)
24+
{
25+
action.Invoke(arg1, arg2);
26+
}
27+
}
28+
29+
}

Assets/LocalizeService/Scripts/Editor/LocalizationServiceEditor.cs

Lines changed: 0 additions & 60 deletions
This file was deleted.

Assets/LocalizeService/Scripts/Editor/LocalizationServiceEditor.cs.meta

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)