com.wallstop-studios.unity-helpers 1.0.1-rc13 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -260,7 +260,6 @@
260
260
  if (GUILayout.Button("Save"))
261
261
  {
262
262
  SaveAnimation();
263
- AssetDatabase.SaveAssets();
264
263
  }
265
264
 
266
265
  GUI.color = oldColor;
@@ -739,6 +738,7 @@
739
738
  {
740
739
  AnimationUtility.SetAnimationEvents(_currentClip, _state.Select(item => item.animationEvent).ToArray());
741
740
  EditorUtility.SetDirty(_currentClip);
741
+ AssetDatabase.SaveAssetIfDirty(_currentClip);
742
742
  _baseClipEvents.Clear();
743
743
  foreach (AnimationEventItem item in _state)
744
744
  {
@@ -6,8 +6,10 @@
6
6
  [DisallowMultipleComponent]
7
7
  public abstract class RuntimeSingleton<T> : MonoBehaviour where T : RuntimeSingleton<T>
8
8
  {
9
+ public static bool HasInstance => _instance != null;
10
+
9
11
  protected static T _instance;
10
-
12
+
11
13
  protected virtual bool Preserve => true;
12
14
 
13
15
  public static T Instance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.wallstop-studios.unity-helpers",
3
- "version": "1.0.1-rc13",
3
+ "version": "1.0.2",
4
4
  "displayName": "Unity Helpers",
5
5
  "description": "Various Unity Helper Library",
6
6
  "dependencies": {