private void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     instance = this;
 }
Esempio n. 2
0
 public void rpcCall(int funcIndex, params object[] values)
 {
     NetworkControl.SendPackets(new P2PPackage(new NetworkControl.RPCInfo(funcIndex, values), P2PPackageType.RPC, identity), EP2PSend.k_EP2PSendReliable);
 }