public void sendDataToPlayers(byte[] buffer, GameCenterDataSendType dataType, params object[] players) { #if (UNITY_IPHONE && !UNITY_EDITOR) || SA_DEBUG_MODE int sendType = (int)dataType; string ids = ""; int len = players.Length; for (int i = 0; i < len; i++) { if (i != 0) { ids += ","; } ids += players[i]; } string b = ""; len = buffer.Length; for (int i = 0; i < len; i++) { if (i != 0) { b += ","; } b += buffer[i].ToString(); } _sendDataToPlayers(b, ids, sendType); #endif }
public void SendDataToAll(byte[] buffer, GameCenterDataSendType dataType) { #if (UNITY_IPHONE && !UNITY_EDITOR) || SA_DEBUG_MODE int sendType = (int)dataType; string b = ""; int len = buffer.Length; for (int i = 0; i < len; i++) { if (i != 0) { b += ","; } b += buffer[i].ToString(); } _sendDataToAll(b, sendType); #endif }
public void SendDataToAll(byte[] buffer, GameCenterDataSendType dataType) { #if (UNITY_IPHONE && !UNITY_EDITOR) || SA_DEBUG_MODE int sendType = (int) dataType; string b = ""; int len = buffer.Length; for(int i = 0; i < len; i++) { if(i != 0) { b += ","; } b += buffer[i].ToString(); } _sendDataToAll (b, sendType); #endif }
public void sendDataToPlayers(byte[] buffer, GameCenterDataSendType dataType, params object[] players) { #if (UNITY_IPHONE && !UNITY_EDITOR) || SA_DEBUG_MODE int sendType = (int) dataType; string ids = ""; int len = players.Length; for(int i = 0; i < len; i++) { if(i != 0) { ids += ","; } ids += players[i]; } string b = ""; len = buffer.Length; for(int i = 0; i < len; i++) { if(i != 0) { b += ","; } b += buffer[i].ToString(); } _sendDataToPlayers (b, ids, sendType); #endif }