コード例 #1
0
 void Awake()
 {
     if (m_Instance == null)
     {
         m_Instance = this;
         GameObject.DontDestroyOnLoad(gameObject);
         myInfo.Init();
         InitLogFile();
         if (s_Inited)
         {
             Application.logMessageReceived += HandleLog;
         }
     }
     else
     {
         Destroy(gameObject);
     }
 }