Where do I put this read only data script in Unity-so that only I can set up the send and recieve data and when the game is build, players are not able to unwrap my script and use it?...I tried opening the already made "PlayFabDataAPI" script in playfab sdk but that didn't work. Also knowing that there is an "insert playfab id" variable in the script I am a bit sure it has to be run with in Unity as the player login.
Can anyone help me by telling me where to put the read only code within unity, without getting error (red squiggly lines) under the PlayFabServerAPI?
THIS SCRIPT IS FROM (https://api.playfab.com/docs/tutorials/landing-players/using-player-data): publicvoidUpdateUserReadOnlyData(){ PlayFabServerAPI.UpdateUserReadOnlyData(newUpdateUserDataRequest(){ PlayFabId ="user PlayFabId here - obtained from any successful LoginResult", Data =newDictionary<string,string>(){ {"Father","Fred"},{"Mother","Alice"},{"Sister","Lucy"},{"Brother","Doug"}}, Permission = UserDataPermission.Public }, result => Debug.Log("Set read-only user data successful"), error =>{ Debug.Log("Got error updating read-only user data:"); Debug.Log(error.GenerateErrorReport());});}