• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ISN_Result类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ISN_Result的典型用法代码示例。如果您正苦于以下问题:C# ISN_Result类的具体用法?C# ISN_Result怎么用?C# ISN_Result使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ISN_Result类属于命名空间,在下文中一共展示了ISN_Result类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: UM_Result

	//--------------------------------------
	// Initialize
	//--------------------------------------

	public UM_Result(ISN_Result result) {
		_IsSucceeded = result.IsSucceeded;

		if(!_IsSucceeded) {
			_Error =  new UM_Error(result.Error.Code, result.Error.Description);
		}
	}
开发者ID:sonxoans2,项目名称:TapJump,代码行数:11,代码来源:UM_Result.cs


示例2: OnAuthFinished

 void OnAuthFinished(ISN_Result res)
 {
     if (res.IsSucceeded) {
         GlobalData.GameCenterActive = true;
     } else {
         GlobalData.GameCenterActive = false;
     }
 }
开发者ID:jivanecky,项目名称:PartyGodsApple,代码行数:8,代码来源:Bunnies.cs


示例3: GameCenterManager_OnAuthFinished

 private void GameCenterManager_OnAuthFinished(ISN_Result obj)
 {
     if (obj.IsSucceeded)
     {
         //IOSNativePopUpManager.showMessage("Player Authored ", "ID: " + GameCenterManager.Id + "\n" + "Alias: " + GameCenterManager.Player.Alias);
     }
     else {
         IOSNativePopUpManager.showMessage("Game Center ", "Player auth failed");
     }
 }
开发者ID:zinGa1407,项目名称:Hellendoorn-Game,代码行数:10,代码来源:GameCenter.cs


示例4: HandleActionRecordStoped

	void HandleActionRecordStoped (ISN_Result res) {
		if(res.IsSucceeded) {
			//the record is stopped, we can now show the sharing dialog.
			//you do not hae to show sharing dialog right after video was stopped
			//you can do this when user press "Share Replay" button in your game UI.
			ISN_ReplayKit.Instance.ShowVideoShareDialog();
		} else {
			IOSNativePopUpManager.showMessage ("Fail", "Error: " + res.Error.Description);
		}

	}
开发者ID:sonxoans2,项目名称:Tap-Rotate,代码行数:11,代码来源:ReplayKitUseExample.cs


示例5: OnAuthFinished

	void OnAuthFinished (ISN_Result res) {
		_IsUILocked = true;

		IOSMessage msg = null;
		if (res.IsSucceeded) {
			
			msg = IOSMessage.Create("Player Authed ", "ID: " + GameCenterManager.Player.Id + "\n" + "Alias: " + GameCenterManager.Player.Alias);
			GameCenterManager.LoadLeaderboardInfo(TEST_LEADERBOARD_1);
		} else {
			msg = IOSMessage.Create("Game Center ", "Player authentication failed");
		}

		msg.OnComplete += delegate {
			_IsUILocked = false;
		};
	}
开发者ID:zinGa1407,项目名称:Hellendoorn-Game,代码行数:16,代码来源:GameCenterTvOSExample.cs


示例6: ISN_OnLBSetsLoaded

	private void ISN_OnLBSetsLoaded(string array) {

		string[] data = array.Split(IOSNative.DATA_SPLITTER);

		for(int i = 0; i+2  < data.Length; i+=3) {
			GK_LeaderboardSet lbSet =  new GK_LeaderboardSet();
			lbSet.Title = data[i];
			lbSet.Identifier = data[i + 1];
			lbSet.GroupIdentifier = data[i + 2];
			LeaderboardSets.Add(lbSet);
		}


		ISN_Result res =  new ISN_Result(true);
		OnLeaderboardSetsInfoLoaded(res);
	}
开发者ID:sonxoans2,项目名称:TapJump,代码行数:16,代码来源:GameCenterManager.cs


示例7: OnFriendListLoadedEvent

	private void OnFriendListLoadedEvent(string data) {


		string[] fl;
		fl = data.Split(IOSNative.DATA_SPLITTER);

		for(int i = 0; i < fl.Length; i++) {
			_friendsList.Add(fl[i]);
		}

		if(!IOSNativeSettings.Instance.DisablePluginLogs) 
			Debug.Log("Friends list loaded, total friends: " + _friendsList.Count);


		ISN_Result result = new ISN_Result (true);
		OnFriendsListLoaded (result);

	}
开发者ID:sonxoans2,项目名称:TapJump,代码行数:18,代码来源:GameCenterManager.cs


示例8: onAuthenticateLocalPlayer

	private void onAuthenticateLocalPlayer(string  array) {
		string[] data = array.Split(IOSNative.DATA_SPLITTER);

		_player = new GK_Player (data[0], data [1], data [2]);


		ISN_CacheManager.SendAchievementCachedRequest();

		_IsPlayerAuthenticated = true;


		ISN_Result result = new ISN_Result (_IsPlayerAuthenticated);
		OnAuthFinished (result);
	}
开发者ID:sonxoans2,项目名称:TapJump,代码行数:14,代码来源:GameCenterManager.cs


示例9: onAchievementsLoaded

	private void onAchievementsLoaded(string array) {

		ISN_Result result = new ISN_Result (true);
		if(array.Equals(string.Empty)) {
			OnAchievementsLoaded (result);
			return;
		}

		string[] data = array.Split(IOSNative.DATA_SPLITTER);


		for(int i = 0; i < data.Length; i+=3) {
			GK_AchievementTemplate tpl =  GetAchievement(data[i]);
			tpl.Description 	= data[i + 1];
			tpl.Progress 		= System.Convert.ToSingle(data[i + 2]);
			SaveLocalProgress (tpl);
		}

		_IsAchievementsInfoLoaded = true;
		OnAchievementsLoaded (result);
	}
开发者ID:sonxoans2,项目名称:TapJump,代码行数:21,代码来源:GameCenterManager.cs


示例10: HandleOnAchievementsLoaded

	//--------------------------------------
	//  GET/SET
	//--------------------------------------
	
	//--------------------------------------
	//  EVENTS
	//--------------------------------------
	
	void HandleOnAchievementsLoaded (ISN_Result res) {
		ISN_Logger.Log ("Achievements loaded from iOS Game Center");
		
		foreach(GK_AchievementTemplate tpl in GameCenterManager.Achievements) {
			ISN_Logger.Log (tpl.Id + ":  " + tpl.Progress);
		}
	}
开发者ID:zinGa1407,项目名称:Hellendoorn-Game,代码行数:15,代码来源:JSHelper.cs


示例11: HandleOnAchievementsReset

	void HandleOnAchievementsReset (ISN_Result res) {
		ISN_Logger.Log ("All Achievements were reset");
	}
开发者ID:zinGa1407,项目名称:Hellendoorn-Game,代码行数:3,代码来源:JSHelper.cs


示例12: onFriendListFailedToLoad

	private void onFriendListFailedToLoad(string data) {
		ISN_Result result = new ISN_Result (false);
		OnFriendsListLoaded (result);
		Dispatcher.dispatch (GAME_CENTER_FRIEND_LIST_LOADED, result);
	}
开发者ID:cupsster,项目名称:gtmanager,代码行数:5,代码来源:GameCenterManager.cs


示例13: onFriendListLoaded

	private void onFriendListLoaded(string data) {


		string[] fl;
		fl = data.Split("|" [0]);

		for(int i = 0; i < fl.Length; i++) {
			_friendsList.Add(fl[i]);
		}

		if(!IOSNativeSettings.Instance.DisablePluginLogs) 
			Debug.Log("Friends list loaded, total friends: " + _friendsList.Count);


		ISN_Result result = new ISN_Result (true);
		OnFriendsListLoaded (result);
		Dispatcher.dispatch (GAME_CENTER_FRIEND_LIST_LOADED, result);

	}
开发者ID:cupsster,项目名称:gtmanager,代码行数:19,代码来源:GameCenterManager.cs


示例14: onAuthenticationFailed

	private void onAuthenticationFailed(string  array) {
		_IsPlayerAuthenticated = false;


		ISN_Result result = new ISN_Result (_IsPlayerAuthenticated);
		OnAuthFinished (result);
		Dispatcher.dispatch (GAME_CENTER_PLAYER_AUTHENTICATED, result);
	}
开发者ID:cupsster,项目名称:gtmanager,代码行数:8,代码来源:GameCenterManager.cs


示例15: onAuthenticateLocalPlayer

	private void onAuthenticateLocalPlayer(string  array) {
		string[] data;
		data = array.Split("," [0]);

		_player = new GameCenterPlayerTemplate (data[0], data [1], data [2]);


		ISN_CacheManager.SendAchievementCachedRequest();

		_IsPlayerAuthenticated = true;


		ISN_Result result = new ISN_Result (_IsPlayerAuthenticated);
		OnAuthFinished (result);
		Dispatcher.dispatch (GAME_CENTER_PLAYER_AUTHENTICATED, result);



	}
开发者ID:cupsster,项目名称:gtmanager,代码行数:19,代码来源:GameCenterManager.cs


示例16: OnFriendsListLoaded

	private void OnFriendsListLoaded (ISN_Result result) {
		GameCenterManager.OnFriendsListLoaded -= OnFriendsListLoaded;
		if(result.IsSucceeded) {
			renderFriendsList = true;
		}
				
	}
开发者ID:asklyking,项目名称:Clone-360-Degrees,代码行数:7,代码来源:GameCenterFriendLoadExample.cs


示例17: OnStoreKitInitComplete

	private static void OnStoreKitInitComplete(ISN_Result result) {

		if(result.IsSucceeded) {

			int avaliableProductsCount = 0;
			foreach(IOSProductTemplate tpl in IOSInAppPurchaseManager.instance.Products) {
				if(tpl.IsAvaliable) {
					avaliableProductsCount++;
				}
			}

			IOSNativePopUpManager.showMessage("StoreKit Init Succeeded", "Available products count: " + avaliableProductsCount);
			Debug.Log("StoreKit Init Succeeded Available products count: " + avaliableProductsCount);
		} else {
			IOSNativePopUpManager.showMessage("StoreKit Init Failed",  "Error code: " + result.Error.Code + "\n" + "Error description:" + result.Error.Description);
		}
	}
开发者ID:sonxoans2,项目名称:Tap-Rotate,代码行数:17,代码来源:PaymentManagerExample.cs


示例18: OnTwitterPostFailed

	//--------------------------------------
	//  EVENTS
	//--------------------------------------

	private void OnTwitterPostFailed() {
		dispatch(TWITTER_POST_FAILED);

		if(OnTwitterPostResult != null) {
			ISN_Result result = new ISN_Result(false);
			OnTwitterPostResult(result);
		}
	}
开发者ID:cupsster,项目名称:gtmanager,代码行数:12,代码来源:IOSSocialManager.cs


示例19: HandleOnAuthFinished

	void HandleOnAuthFinished (ISN_Result r) {
		if (r.IsSucceeded) {
			IOSNativePopUpManager.showMessage("Player Authenticated", "ID: " + GameCenterManager.Player.Id + "\n" + "Name: " + GameCenterManager.Player.DisplayName);
		}
	}
开发者ID:zinGa1407,项目名称:Hellendoorn-Game,代码行数:5,代码来源:JSHelper.cs


示例20: OnTwitterPostSuccess

	private void OnTwitterPostSuccess() {
		dispatch(TWITTER_POST_SUCCESS);

		if(OnTwitterPostResult != null) {
			ISN_Result result = new ISN_Result(true);
			OnTwitterPostResult(result);
		}

	}
开发者ID:cupsster,项目名称:gtmanager,代码行数:9,代码来源:IOSSocialManager.cs



注:本文中的ISN_Result类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ISSHChannelEventReceiver类代码示例发布时间:2022-05-24
下一篇:
C# CyPhyML.Interfaces类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap