Skip to content

Commit ca90192

Browse files
committed
update common
1 parent 7a17ab3 commit ca90192

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
### Add the lines below to `Packages/manifest.json`
66

7-
for version `1.1.0`
7+
for version `1.1.1`
88
```csharp
9-
"com.virtuesky.sunflower":"https://github.com/VirtueSky/sunflower.git#1.1.0",
9+
"com.virtuesky.sunflower":"https://github.com/VirtueSky/sunflower.git#1.1.1",
1010
```
1111

1212
- If you are missing some of the libraries used in the package, you can download them [here](https://drive.google.com/drive/folders/1OdT5EfMDfkQsEleMM6C2-HHav9o0neTS)

VirtueSky/Misc/Common.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace VirtueSky.Misc
88
{
9-
public static class Common
9+
public static partial class Common
1010
{
1111
public static bool IsInteger(float value)
1212
{
@@ -67,5 +67,13 @@ public static void SetTagForAllChildObject(GameObject obj, string tag)
6767
obj.tag = tag;
6868
obj.GetComponentsInChildren<Transform>().ToList().ForEach(x => { x.gameObject.tag = tag; });
6969
}
70+
71+
public static void CallActionAndClean(ref Action action)
72+
{
73+
if (action == null) return;
74+
var a = action;
75+
a();
76+
action = null;
77+
}
7078
}
7179
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "com.virtuesky.sunflower",
33
"displayName": "Sunflower",
44
"description": "Core ScriptableObject Architecture for building Unity games",
5-
"version": "1.1.0",
5+
"version": "1.1.1",
66
"unity": "2021.3",
77
"category": "virtuesky",
88
"keywords": [

0 commit comments

Comments
 (0)