暂时修复单例第二次运行时出现的bug
This commit is contained in:
@@ -10,10 +10,10 @@ namespace A2W
|
||||
{
|
||||
get
|
||||
{
|
||||
if (applicationIsQuitting)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
//if (applicationIsQuitting)
|
||||
//{
|
||||
// return null;
|
||||
//}
|
||||
|
||||
if (_instance == null)
|
||||
{
|
||||
@@ -51,12 +51,12 @@ namespace A2W
|
||||
}
|
||||
}
|
||||
|
||||
private static bool applicationIsQuitting = false;
|
||||
//private static bool applicationIsQuitting = false;
|
||||
|
||||
public void OnDestroy()
|
||||
{
|
||||
applicationIsQuitting = true;
|
||||
}
|
||||
//public void OnDestroy()
|
||||
//{
|
||||
// applicationIsQuitting = true;
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user