Beispiel #1
0
 void ShareCallBack(FBResult result)
 {
     if (result.Error != null)           // If there is an Error because Error value did not return null, instead it returned an error
     {
         Debug.Log("Error sharing on FB.");
         //FB.API("/me?fields=id,fist_name",Facebook.HttpMethod.GET,NameCallBack);//playerName = Facebook name
         return;
     }
     else             // No Error, so give RP
     {
         if (displayFreeRPBubble == 1)
         {
             rpControllerScript.addRP(280);
             displayFreeRPBubble = 0;
             PlayerPrefs.SetInt("DisplayFreeRPBubble", displayFreeRPBubble);
         }
     }
 }
Beispiel #2
0
 public void addCurrentRP(int value)
 {
     //RPController addCurrentRP(int Value){}
     //currentRP += value;
     rpControllerScript.addRP(value);
 }