Attributes
Namespace: SynicSugar.P2P
Description
Attributes to Synchronize.
Attributes
API | description |
---|---|
NetworkPlayer | For class for each player to have UserID |
NetworkCommons | For class |
SyncVar | Synchronize variable with other users |
Rpc | Synchronize invoked function with other users |
TargetRpc | Synchronize invoked function with other user |
Synic | Synchronize all Synic variables with other user |
using SynicSugar.P2P;
[NetworkPlayer]
public partial class NetworkSample {
[SyncVar]
int syncIntVar;
[Rpc]
void RPCFuction(){
}
}