EscsUnityPluginplugin folder from
SDWebImageWebPCoder(https://github.com/SDWebImage/SDWebImageWebPCoder) which in turn uses
SDWebImage, so you need to manually link those libraries if you don't want to use pods and dependency resolver.
EscsUnityPlugin\iOS\EscsIosUnityPlugin\EscsIosPluginFramework.frameworkwith contents of
Release-iphonesimulatordirectory from our repo.
public_key- a key that you've obtained in the step 1 of the integration guide, like
onEscsInit- callback delegate when init is completed; you can omit it.
public delegate void InvokeDelegate (string status, string gameId, string tournamentId);
status- string "initialized" for fully initialized escs, or some error message, or empty string
gameId- gameId of configured game or empty string
tournamentId- tournamentId of current active tournament or empty string
onStartGame- callback delegate when startGame has obtained round info (you can omit it) with following signature:
public delegate void StartGameDelegate (string roundId, string tournamentId, string status, string playerId);
roundId- roundId of just started game round
tournamentId- tournamentId of active tournament for which the round was created for
status- round status. "active" for just created round
playerId- escs playerId
EndGame()with score parameter:
score- game score parameter of double type
onEndGame- callback delegate when startGame has obtained round info (you can omit it) with following signature:
public delegate void EndGameDelegate (string roundId, string tournamentId, string status, string playerId);
roundId- roundId of just ended game round
tournamentId- tournamentId of active tournament for which the round was ended
status- round status. "ended" for just ended round
playerId- escs playerId
SetButtonDefaultPositionAbsolute()will set button position in absolute coordinates from left upper corner of the app.
SetButtonDefaultPositionRelative()will set button position in relative coordinates from center horizontally and top vertically of the app. That is, if you set 0, 0 coordinates the button will be shown in the x: (device width)/2 y: 0.
xPart: where -0.5 means most left side of device and 0.5 - right side and 0 is dead center. For
yPartit is from 0 to 1 where 0 is top of the screen and 1 is the bottom.
onGetRewards- callback delegate when GetIngameRewards has rewards info, with following signature:
public delegate void EscsGetIngameRewardsDelegate (EscsIngameRewards rewards);
EscsIngameRewards is object with follwing fields: