private void Awake() { if (isOpenLog) { Logger.GetInstance().logPath = Path.Combine(Application.persistentDataPath, string.Format(logName)); Logger.GetInstance().maxKb = logMaxKb; Logger.GetInstance().Open(); } if (isOpenBugUpload) { } }
private void OnDestroy() { Logger.GetInstance().Close(); }