Ver.0.3.0.33
This commit is contained in:
@@ -8,7 +8,7 @@ namespace AibisDream.Kit
|
||||
|
||||
protected virtual void Awake()
|
||||
{
|
||||
if (Instance != null)
|
||||
if (Instance != null && Instance != this)
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
@@ -21,8 +21,6 @@ namespace AibisDream.Kit
|
||||
{
|
||||
}
|
||||
|
||||
public static bool IsInitialized => Instance != null;
|
||||
|
||||
protected virtual void OnDestroy()
|
||||
{
|
||||
OnSingletonDestroy();
|
||||
|
||||
Reference in New Issue
Block a user