void Awake() { DontDestroyOnLoad(this.gameObject); if (PK_NetMgr._instance == null) { PK_NetMgr._instance = GameObject.Find("/NetworkObject").GetComponent <PK_NetMgr>(); PK_NetMgr._instance.Init(); } }
public void Destroy() { _instance = null; }