Exemple #1
0
 private void AuthenticateSdkAsAdmin()
 {
     /*
      * Authenticate the SDK as an admin.
      *
      * Note: You should not do this in an actual game. Developers need to have a manged server responsible
      * for player authentication and any other operations requiring admin authentication. Exposing the app
      * secret to player clients is a security risk.
      */
     Enjin.StartPlatform(platformUrl, projectId, projectSecret);
     _adminAccessToken = Enjin.AccessToken;
 }
Exemple #2
0
 private void Awake()
 {
     Enjin.StartPlatform(PLATFORM_URL, APP_ID, APP_SECRET);
     StartCoroutine(LoginEnjin(PLAYER_EMAIL));
 }