Skip to content

Commit a40212c

Browse files
authored
Merge pull request #7 from ARX-SKE12/hotfix/example-namespace
Example Namespace
2 parents 7b5bdf0 + bd74c32 commit a40212c

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
11
using UnityEngine;
22
using UnityEngine.UI;
33
using Facebook.Unity;
4-
using FBAuthKit;
4+
namespace FBAuthKit.Example
5+
{
56

6-
public class FacebookUIManager : MonoBehaviour {
7+
public class FacebookUIManager : MonoBehaviour
8+
{
79

8-
public GameObject facebookController, statusText;
10+
public GameObject facebookController, statusText;
911

10-
void Start()
11-
{
12-
facebookController.GetComponent<FacebookAuthController>().Register(gameObject);
13-
}
12+
void Start()
13+
{
14+
facebookController.GetComponent<FacebookAuthController>().Register(gameObject);
15+
}
1416

15-
void OnAuthSuccess(AccessToken token)
16-
{
17-
statusText.GetComponent<Text>().text = token.UserId;
18-
}
17+
void OnAuthSuccess(AccessToken token)
18+
{
19+
statusText.GetComponent<Text>().text = token.UserId;
20+
}
1921

20-
void OnInitializedFailure()
21-
{
22-
statusText.GetComponent<Text>().text = "App Initialization Failure";
23-
}
22+
void OnInitializedFailure()
23+
{
24+
statusText.GetComponent<Text>().text = "App Initialization Failure";
25+
}
2426

25-
void OnAuthRequest()
26-
{
27-
statusText.GetComponent<Text>().text = "Authenticating";
28-
}
27+
void OnAuthRequest()
28+
{
29+
statusText.GetComponent<Text>().text = "Authenticating";
30+
}
31+
32+
void OnAuthFailure()
33+
{
34+
statusText.GetComponent<Text>().text = "Authentication Failure";
35+
}
2936

30-
void OnAuthFailure()
31-
{
32-
statusText.GetComponent<Text>().text = "Authentication Failure";
3337
}
3438

3539
}

0 commit comments

Comments
 (0)