private void OnSaveResult(string sourcesData) { string[] sources = IOSNative.ParseArray(sourcesData); ReplayKitVideoShareResult result = new ReplayKitVideoShareResult(sources); ActionShareDialogFinished(result); }
private void OnSaveResult(string sourcesData) { _IsRecording = false; string[] sources = IOSNative.ParseArray(sourcesData); ReplayKitVideoStopResult result = new ReplayKitVideoStopResult(sources); ActionRecordStoped(result); }
public GK_RTM_Match(string matchData) { string[] MatchData = matchData.Split(new string[] { IOSNative.DATA_SPLITTER2 }, StringSplitOptions.None); _ExpectedPlayerCount = Convert.ToInt32(MatchData[0]); string[] playersIds = IOSNative.ParseArray(MatchData[1]); foreach (string playerId in playersIds) { GK_Player player = GameCenterManager.GetPlayerById(playerId); _Players.Add(player); } }
//-------------------------------------- // Internal Events //-------------------------------------- /* * Save */ private void OnSaveRecordSuccess(string data) { string[] values = IOSNative.ParseArray(data); int dbId = System.Convert.ToInt32(values[0]); int recordId = System.Convert.ToInt32(values[1]); CK_Database db = CK_Database.GetDatabaseByInternalId(dbId); CK_RecordResult result = new CK_RecordResult(recordId); db.FireSaveRecordResult(result); }
private void OnPlayerRequestedMatchWithRecipients_TBM(string data) { Debug.Log("OnPlayerRequestedMatchWithRecipients_TBM"); string[] playersIds = IOSNative.ParseArray(data); List <GK_Player> players = new List <GK_Player>(); foreach (string playerId in playersIds) { players.Add(GameCenterManager.GetPlayerById(playerId)); } ActionPlayerRequestedMatchWithRecipients(GK_MatchType.RealTime, playersIds, players.ToArray()); }