private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Debug.Log("存在Client实例,删除多余单例"); Destroy(this); } }
private void Awake() { is_starting = false; instance = this; }