-
Notifications
You must be signed in to change notification settings - Fork 5
Client Side
Alexander edited this page Apr 8, 2018
·
5 revisions
Params
- int - id
- string - key
- object - value
Client.Sync.Data.Set(GetPlayerServerId(PlayerId()), "name", "Test Name");Params
- int - id
- string - key
Client.Sync.Data.Reset(GetPlayerServerId(PlayerId()), "name");Params
- int - id
- string - key
- int - waitMs (Optional), how long client wait callback on the server
var name = await Client.Sync.Data.Get(GetPlayerServerId(PlayerId()), "name");Params
- int - id
- string - key
- int - waitMs (Optional), how long client wait callback on the server
bool hasName = await Client.Sync.Data.Has(GetPlayerServerId(PlayerId()), "name");Params
- int - id
- string - key
- object - value
Client.Sync.Data.SetLocally(GetPlayerServerId(PlayerId()), "name", "Test Name");Params
- int - id
- string - key
Client.Sync.Data.ResetLocally(GetPlayerServerId(PlayerId()), "name");Params
- int - id
- string - key
- int - waitMs (Optional), how long client wait callback on the server
var name = Client.Sync.Data.GetLocally(GetPlayerServerId(PlayerId()), "name");Params
- int - id
- string - key
- int - waitMs (Optional), how long client wait callback on the server
bool hasName = Client.Sync.Data.HasLocally(GetPlayerServerId(PlayerId()), "name");