#pragma warning restore 0649 #endregion #region Variable - Property #endregion #endregion #region Base - Mono #endregion #region Main public void Destroy() { m_hDestroyEvent?.Invoke(); Global_SoundManager.PlayOneShot(m_hDestroySound); Destroy(gameObject); }
private void Awake() { if (m_hInstance == null) { m_hInstance = this; } else if (m_hInstance != this) { Destroy(this); return; } Application.quitting += OnAppQuit; }