I seperated codes in my Unity Project as 'ServerScripts' and 'ClientScripts'.
ServerScripts will be deploy on Dedicated server and ClientScripts will stay in local so client can't access the ServerScripts.
I wonder that how can i communicate each other? How can i call serverscripts from clients.
SetUserData.cs in a ServerScript folder. So it will not be visible to clients. How clients will call it?
void SetUserData() { PlayFabClientAPI.UpdateUserData(new UpdateUserDataRequest() { Data = new Dictionary<string, string>() { {"level", "1"}, {"experience", "0"} } }, result => Debug.Log("Successfully updated user data"), error => { Debug.Log(error.GenerateErrorReport()); }); }