Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit cb70f21

Browse files
committed
Code cleanup
1 parent 30836cd commit cb70f21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Runtime/SingletonBehavior.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ public static T Instance
3737
GameObject singleton = new GameObject();
3838
singleton.name = typeof(T).Name;
3939
singleton.hideFlags = HideFlags.HideInHierarchy | HideFlags.HideInInspector;
40-
41-
_instance = singleton.AddComponent<T>();
40+
singleton.AddComponent<T>();
4241
DontDestroyOnLoad(singleton);
4342
}
4443
}

0 commit comments

Comments
 (0)