Hey guys, I’m implementing an in-app purchasing system, and I’m at the last stage. All the code is ready in xcode, all I have to do is run this function when you click on the buy button in my app:
-(IBAction) buyDeluxe:(id)sender
{
[[MKStoreManager sharedManager] buyMiracleDeluxe];
}
Unfortunately I have no clue how to do that. I’ve been working with the guy who developed this storekit code, and he said all I have to do is call this function.
There are instructions on calling functions at the following site: http://www.tinytimgames.com/2010/01/10/the-unityobjective-c-divide/
Since I am using Unity basic, I obviously need to go with the second solution:
PlayerPrefs.SetString("Commands",
String.Format("AwesomeCommand|{0}|{1}", awesome1, awesome2));
But I don’t quite understand this part:
Can anyone give me a hand on how to integrate this? I’m pretty lost when it comes to objC.