Main.cs 1015 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using UnityEngine;
  2. using System.Collections;
  3. public class KeyChainIos : MonoBehaviour {
  4. string currentUUID = "";
  5. string saveUUID = "";
  6. void Update () {}
  7. void OnGUI () {
  8. GUILayoutOption[] ops = new GUILayoutOption[]{};
  9. GUI.skin.label.fontSize = 30;
  10. GUI.skin.textArea.fontSize = 30;
  11. GUI.skin.button.fontSize = 30;
  12. if (GUILayout.Button ("UUID", ops)) {
  13. currentUUID = SystemInfo.deviceUniqueIdentifier;
  14. Debug.Log ("CurrentUUID: [" + currentUUID + "]");
  15. }
  16. GUILayout.TextArea (currentUUID, ops);
  17. /*if (GUILayout.Button ("Load UUID", ops)) {
  18. saveUUID = KeyChain.BindGetKeyChainUser ();
  19. Debug.Log ("LoadUUID: [" + saveUUID + "]");
  20. }
  21. GUILayout.TextArea (saveUUID, ops);
  22. if (GUILayout.Button ("Save UUID", ops)) {
  23. currentUUID = SystemInfo.deviceUniqueIdentifier;
  24. KeyChain.BindSetKeyChainUser ("0", currentUUID);
  25. Debug.Log ("SaveUUID: [" + currentUUID + "]");
  26. }
  27. if (GUILayout.Button ("Delete UUID", ops)) {
  28. KeyChain.BindDeleteKeyChainUser ();
  29. }*/
  30. }
  31. }