![]() The IdleClicker_PlaceWell.js Cloud Code script checks that the requested tileisn't occupied.Cloud Code calculates the amount of Water generated since the last update, then calls the Economy service to grant that amount to the player’s currency balance (see section on real-time resource updates, below).When you click a tile, the following occurs: ![]() Cloud Code validates whether you’re attempting to place a Well in an empty tile. You can click any open tile in the play field to place a Well in exchange for 500 Water. Note: If the game is already in progress, this step grants Water based on the quantity produced by all Wells since the last time the game state was updated.Įnables button-click functionality for the available tiles in the play field. Retrieves or creates the current game state. Retrieves and updates the player's currency balances from the Economy service. If you’ve previously initialized any of the other sample scenes, Authentication will use your cached Player ID instead of creating a new one. Signs in the player anonymously using the Authentication service. The IdleClickerSceneManager.cs script performs the following initialization tasks in its Start function:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |