Skip to content

Commit 9184522

Browse files
authored
Merge pull request #22 from nnra6864/DeletingExistingInstanceFix
Fixed the existing instance being deleted in Awake
2 parents b70b666 + 27282b4 commit 9184522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/Scripts/MonoSingleton.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected virtual void Awake()
7373
// Initialize existing instance
7474
InitializeSingleton();
7575
}
76-
else
76+
else if (instance != this)
7777
{
7878

7979
// Destory duplicates

0 commit comments

Comments
 (0)