private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } }
void Awake() { _instance = this; }
public mainControl() { _main = new mainUI(); _main._mainPanelEvent += JudgeNull; }