File tree 2 files changed +19
-9
lines changed
2 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -354,7 +354,18 @@ MonoBehaviour:
354
354
m_TargetGraphic : {fileID: 1018955960}
355
355
m_OnClick :
356
356
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
358
369
--- !u!114 &1018955960
359
370
MonoBehaviour :
360
371
m_ObjectHideFlags : 0
@@ -576,7 +587,7 @@ RectTransform:
576
587
m_AnchorMin : {x: 0, y: 0.5}
577
588
m_AnchorMax : {x: 1, y: 0.5}
578
589
m_AnchoredPosition : {x: 0, y: 70}
579
- m_SizeDelta : {x: 0 , y: 80 }
590
+ m_SizeDelta : {x: -60 , y: 120 }
580
591
m_Pivot : {x: 0.5, y: 0.5}
581
592
--- !u!114 &1523071396
582
593
MonoBehaviour :
@@ -734,3 +745,4 @@ MonoBehaviour:
734
745
m_Name :
735
746
m_EditorClassIdentifier :
736
747
DebugLogText : {fileID: 1523071396}
748
+ LoginButton : {fileID: 1018955959}
Original file line number Diff line number Diff line change 1
- using System . Collections ;
2
- using System . Collections . Generic ;
3
- using AppleAuth ;
1
+ using AppleAuth ;
4
2
using AppleAuth . Enums ;
5
3
using AppleAuth . Extensions ;
6
4
using AppleAuth . Interfaces ;
7
5
using AppleAuth . Native ;
8
- using Newtonsoft . Json ;
9
- using Newtonsoft . Json . Utilities ;
10
6
using UnityEngine ;
11
7
using UnityEngine . UI ;
12
8
@@ -21,6 +17,8 @@ public class AppleSignIn : MonoBehaviour
21
17
22
18
public Text DebugLogText ;
23
19
20
+ public Button LoginButton ;
21
+
24
22
// Start is called before the first frame update
25
23
void Start ( )
26
24
{
@@ -38,8 +36,8 @@ void Start()
38
36
{
39
37
Debug . Log ( "不是iOS裝置" ) ;
40
38
DebugLogText . text = "不是iOS裝置" ;
41
- GetComponent < Button > ( ) . enabled = false ;
42
- GetComponent < Button > ( ) . interactable = false ;
39
+ LoginButton . enabled = false ;
40
+ LoginButton . interactable = false ;
43
41
}
44
42
45
43
InitializeAppleSignIn ( ) ;
You can’t perform that action at this time.
0 commit comments