void Awake() { if (m_Instance == null) { m_Instance = this; GameObject.DontDestroyOnLoad(gameObject); myInfo.Init(); InitLogFile(); if (s_Inited) { Application.logMessageReceived += HandleLog; } } else { Destroy(gameObject); } }