void SetAttributeCallback(string message, bool hasError) { if (hasError) { print("Error adding attribute: " + message); } else { print("currently attribute color is null?" + (CloudLoginUser.CurrentUser.GetAttributeValue("Color") == null).ToString()); print("currently attribute color " + CloudLoginUser.CurrentUser.GetAttributeValue("Color")); var item = CloudLogin.GetStoreItems().First(); print("Purchase Store Item: " + item.GetName() + ": " + item.GetCost()); CloudLoginUser.CurrentUser.PurchaseStoreItem(CloudLogin.GetStoreItems().First(), PurchasedItem); } }
void ApplicationSetUp(string message, bool hasError) { if (hasError) { print("error setting aplication"); print(message); } else { print("<color=yellow>GAME CONNECTED!!" + CloudLogin.GetGameId() + "</color>"); print("Store Items:"); foreach (CloudLoginStoreItem storeItem in CloudLogin.GetStoreItems()) { print(" " + storeItem.GetName() + ": " + storeItem.GetCost()); } print("*****************************************"); print("*****************************************"); print("Signing Up"); CloudLogin.SignUp(userEmail, "password", "password", username, SignedUp); } }