Skip to content

Commit 1ef6f69

Browse files
author
盧彥辰
committed
feat: 調整測試畫面
issue #3
1 parent 919851b commit 1ef6f69

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

Assets/Scenes/AppleSignInDemo.unity

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,18 @@ MonoBehaviour:
354354
m_TargetGraphic: {fileID: 1018955960}
355355
m_OnClick:
356356
m_PersistentCalls:
357-
m_Calls: []
357+
m_Calls:
358+
- m_Target: {fileID: 1854191486}
359+
m_MethodName: SignInWithAppleButtonPressed
360+
m_Mode: 1
361+
m_Arguments:
362+
m_ObjectArgument: {fileID: 0}
363+
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
364+
m_IntArgument: 0
365+
m_FloatArgument: 0
366+
m_StringArgument:
367+
m_BoolArgument: 0
368+
m_CallState: 2
358369
--- !u!114 &1018955960
359370
MonoBehaviour:
360371
m_ObjectHideFlags: 0
@@ -576,7 +587,7 @@ RectTransform:
576587
m_AnchorMin: {x: 0, y: 0.5}
577588
m_AnchorMax: {x: 1, y: 0.5}
578589
m_AnchoredPosition: {x: 0, y: 70}
579-
m_SizeDelta: {x: 0, y: 80}
590+
m_SizeDelta: {x: -60, y: 120}
580591
m_Pivot: {x: 0.5, y: 0.5}
581592
--- !u!114 &1523071396
582593
MonoBehaviour:
@@ -734,3 +745,4 @@ MonoBehaviour:
734745
m_Name:
735746
m_EditorClassIdentifier:
736747
DebugLogText: {fileID: 1523071396}
748+
LoginButton: {fileID: 1018955959}

Assets/Script/Model/AppleSignIn/AppleSignIn.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
using System.Collections;
2-
using System.Collections.Generic;
3-
using AppleAuth;
1+
using AppleAuth;
42
using AppleAuth.Enums;
53
using AppleAuth.Extensions;
64
using AppleAuth.Interfaces;
75
using AppleAuth.Native;
8-
using Newtonsoft.Json;
9-
using Newtonsoft.Json.Utilities;
106
using UnityEngine;
117
using UnityEngine.UI;
128

@@ -21,6 +17,8 @@ public class AppleSignIn : MonoBehaviour
2117

2218
public Text DebugLogText;
2319

20+
public Button LoginButton;
21+
2422
// Start is called before the first frame update
2523
void Start()
2624
{
@@ -38,8 +36,8 @@ void Start()
3836
{
3937
Debug.Log("不是iOS裝置");
4038
DebugLogText.text = "不是iOS裝置";
41-
GetComponent<Button>().enabled = false;
42-
GetComponent<Button>().interactable = false;
39+
LoginButton.enabled = false;
40+
LoginButton.interactable = false;
4341
}
4442

4543
InitializeAppleSignIn();

0 commit comments

Comments
 (0)