NetworkPlayer
Namespace: SynicSugar.P2P
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public sealed class NetworkPlayerAttribute : Attribute
Description
Each instance has a unique UserID of EOS. The process of the owner of this instance has is synchronized with other peers.
If pass true, ConnectHub has GetUserInstance
Constructor
API | description |
---|---|
NetworkPlayer() | useGetInstance's default value is false |
NetworkPlayer(bool useGetInstance) | To use ConnectHub.Instance.GetUserInstance |
using SynicSugar.P2P;
[NetworkPlayer(true)]
public partial class NetworkSample {
}