Merge branch 'main' of https://git.personalnas.com/Misaki/Unity20GameJam
This commit is contained in:
@@ -6,6 +6,7 @@ namespace A2W
|
|||||||
{
|
{
|
||||||
public class SceneSingleton<T> : MonoBehaviour where T : MonoBehaviour
|
public class SceneSingleton<T> : MonoBehaviour where T : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
[System.Obsolete]
|
||||||
public static T instance
|
public static T instance
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ namespace A2W
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (applicationIsQuitting)
|
//if (applicationIsQuitting)
|
||||||
{
|
//{
|
||||||
return null;
|
// return null;
|
||||||
}
|
//}
|
||||||
|
|
||||||
if (_instance == null)
|
if (_instance == null)
|
||||||
{
|
{
|
||||||
@@ -52,12 +52,12 @@ namespace A2W
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static bool applicationIsQuitting = false;
|
//private static bool applicationIsQuitting = false;
|
||||||
|
|
||||||
public void OnDestroy()
|
//public void OnDestroy()
|
||||||
{
|
//{
|
||||||
applicationIsQuitting = true;
|
// applicationIsQuitting = true;
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,6 @@ MonoBehaviour:
|
|||||||
deAudioEnabled: 0
|
deAudioEnabled: 0
|
||||||
deUnityExtendedEnabled: 0
|
deUnityExtendedEnabled: 0
|
||||||
epoOutlineEnabled: 0
|
epoOutlineEnabled: 0
|
||||||
createASMDEF: 0
|
createASMDEF: 1
|
||||||
showPlayingTweens: 0
|
showPlayingTweens: 0
|
||||||
showPausedTweens: 0
|
showPausedTweens: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user