No, that won’t be necessary. You can use the client API Client/ExecuteCloudScript to call CloudScript in your code, which is PlayFabClientAPI.ExecuteCloudScript(...) in Unity SDK.
Hi, thanks for the your answer. I just forgot to ask if the Client API is Safer then Server API (I may understand the whole concept wrong , correct me please) If the client API is not that safe. how can i improve my security for my game that is like endless runner game(in this case what can i do?). Tanks again. I just want to make everything sure and secure and good before i lunch my game. @Citrus Yan
The fact is that you may not prevent players from calling the Client API ExecuteCloudScript but you can make sure that they are not abusing your game by adding some checking/validation logic in your CloudScript code. The key idea is that the Client API ExecuteCloudScript offers players an interface to CloudScript function, however, it's up to you whether to execute that logic for the player or not.
2 People are following this question.