// Use this for initialization void OnDestroy() { #if !UNITY_EDITOR try { #endif Instance = null; #if !UNITY_EDITOR } catch (Exception ex) { Logger.Error(ex.ToString()); } #endif }
void Awake() { #if !UNITY_EDITOR try { #endif Instance = this; IsWorking = false; #if !UNITY_EDITOR } catch (Exception ex) { Logger.Error(ex.ToString()); } #endif }