/*--------------------------------------------------*/ /// <summary> /// . /// </summary> /*--------------------------------------------------*/ void Awake() { if(_instance == null) { _instance = this; logQueue = new Queue(); } else { Object.Destroy(this); } }
/*--------------------------------------------------*/ /// <summary> /// . /// </summary> /*--------------------------------------------------*/ void OnDestroy() { if (_instance == this) { _instance = null; } }