private void Awake() { #if !UNITY_EDITOR try { #endif Instance = this; initVersion(); #if !UNITY_EDITOR } catch (Exception ex) { Logger.Error(ex.ToString()); } #endif }
private void OnDestroy() { #if !UNITY_EDITOR try { #endif Instance = null; GameObject.Destroy(StartupView.gameObject); #if !UNITY_EDITOR } catch (Exception ex) { Logger.Error(ex.ToString()); } #endif }
private void OnDestroy() { #if !UNITY_EDITOR try { #endif Instance = null; #if !UNITY_EDITOR } catch (Exception ex) { Logger.Error(ex.ToString()); } #endif }