コード例 #1
0
        protected override void OnDestroy()
        {
            base.OnDestroy();

            //only if the original singleton is destroyed
            if (GetInstanceID().Equals(UID))
            {
                _instance        = null;
                IsSpawnedAlready = false;
            }
        }
コード例 #2
0
 protected virtual void OnApplicationQuit()
 {
     _instance = null;
 }