//using UnityEngine;
//using System.Collections;
//using System;
//
//public static class ApplicationHelper
//{
//	public static void AskForRatingAndFeedback (Action<RateAndFeedbackResult> callback)
//	{
//		MenuHelper.ShowDialog (
//			LocalizedResources.TitleRateGame,
//			LocalizedResources.MessageRateGame,
//			LocalizedResources.CommandNoThanks,
//			LocalizedResources.CommandRate,
//			delegate (int cmdRate) {
//				if (cmdRate == 0) {
//					callback (RateAndFeedbackResult.Cancelled);
//				} else if (cmdRate == 2) {
//					ApplicationHelper.RateApp ();
//					callback (RateAndFeedbackResult.Rate);
//				} else {
//					MenuHelper.ShowDialog (
//						LocalizedResources.TitleFeedback,
//						LocalizedResources.MessageFeedback,
//						LocalizedResources.CommandNoThanks,
//						LocalizedResources.CommandFeedback,
//						delegate (int cmdFeedback) {
//							if (cmdFeedback == 0) {
//								callback (RateAndFeedbackResult.Cancelled);
//							} else if (cmdFeedback == 2) {
//								ApplicationHelper.GiveFeedback ();
//								callback (RateAndFeedbackResult.Feedback);
//							} else {
//								callback (RateAndFeedbackResult.None);
//							}
//						}
//					);
//				}
//			}
//		);
//	}
//
//	public static void AskForRating (Action<RateAndFeedbackResult> callback)
//	{
//		MenuHelper.ShowDialog (
//			LocalizedResources.TitleRateGame,
//			LocalizedResources.MessageRateGame,
//			LocalizedResources.CommandNoThanks,
//			LocalizedResources.CommandRate,
//			delegate (int cmdRate) {
//				if (cmdRate == 0) {
//					callback (RateAndFeedbackResult.Cancelled);
//				} else if (cmdRate == 2) {
//					ApplicationHelper.RateApp ();
//					callback (RateAndFeedbackResult.Rate);
//				} else {
//					callback (RateAndFeedbackResult.None);
//				}
//			}
//		);
//	}
//
//	public static void RateApp ()
//	{
//		#if UNITY_WINRT_8_1 && !UNITY_EDITOR
//		var uri = string.Format("ms-windows-store:reviewapp?appid={0}", Windows.ApplicationModel.Store.CurrentApp.AppId);
//		Application.OpenURL (uri);
//		#elif UNITY_ANDROID
//		var uri = string.Format ("market://details?id={0}", Application.bundleIdentifier); //ApplicationHelper.androidId);
//		Application.OpenURL (uri);
//		#elif UNITY_IOS
//		var uri = string.Format ("itms-apps://itunes.apple.com/app/{0}", Application.bundleIdentifier); //ApplicationHelper.androidId);
//		Application.OpenURL (uri);
//		#endif
//	}
//
//	public static void GiveFeedback ()
//	{
//		ApplicationHelper.SendMail ("wp7@enless-soft.com", "[Contact] " + Application.productName);
//	}
//
//	public static void SendMail (string email, string subject, string body = "")
//	{
//		var mailto = string.Format ("mailto:{0}?subject={1}&body={2}", email, subject, body);
//		Application.OpenURL (mailto);
//	}
//}
//
//public enum RateAndFeedbackResult
//{
//	Rate,
//	Feedback,
//	None,
//	Cancelled
//}
