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