Пример #1
0
 void DestroyPlatform()
 {
     if (registry.registryDelegate == m_platform)
     {
         registry.registryDelegate = null;
     }
     s_instance = null;
 }
Пример #2
0
 void InitInstance()
 {
     if (s_instance == null)
     {
         if (InitPlatform(m_capacity, m_trim))
         {
             s_instance = this;
             DontDestroyOnLoad(gameObject);
         }
         else
         {
             Destroy(gameObject);
         }
     }
     else if (s_instance != this)
     {
         Destroy(gameObject);
     }
 }
Пример #3
0
 void InitInstance()
 {
     if (s_instance == null)
     {
         if (InitPlatform(m_capacity, m_trim))
         {
             s_instance = this;
             DontDestroyOnLoad(gameObject);
         }
         else
         {
             Destroy(gameObject);
         }
     }
     else if (s_instance != this)
     {
         Destroy(gameObject);
     }
 }