private void Awake() { #region Singleton if (instance == null) { instance = this; } else { print("Reworked Network Viewer already exist on " + gameObject.name); print("Destroying version on " + gameObject.name); Destroy(this); } #endregion }
private void Awake() { instance = this; }