public static void OnUse(string item, int itemNumber) { if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor) { TDGAItem.GetAgent().CallStatic("onUse", new object[] { item, itemNumber }); } }
public static void OnPurchase(string item, int itemNumber, double priceInVirtualCurrency) { if (Application.platform != RuntimePlatform.OSXEditor && Application.platform != RuntimePlatform.WindowsEditor) { TDGAItem.GetAgent().CallStatic("onPurchase", new object[] { item, itemNumber, priceInVirtualCurrency }); } }