RootOf3dButtons
How do I use Root Of3d Buttons
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
48 | RootOf3dButtons.SetActive(false); | 1 |
54 | RootOf3dButtons.SetActive(false); | 2 |
60 | RootOf3dButtons.SetActive(true); | 3 |
66 | RootOf3dButtons.SetActive(false); | 4 |
72 | RootOf3dButtons.SetActive(false); | 5 |
File name: GUICustomAuth.cs
Copy
46 public void SetStateAuthInput()
47 {
48 RootOf3dButtons.SetActive(false);
49 guiState = GuiState.AuthInput;
50 }
File name: GUICustomAuth.cs
Copy
52 public void SetStateAuthHelp()
53 {
54 RootOf3dButtons.SetActive(false);
55 guiState = GuiState.AuthHelp;
56 }
File name: GUICustomAuth.cs
Copy
58 public void SetStateAuthOrNot()
59 {
60 RootOf3dButtons.SetActive(true);
61 guiState = GuiState.AuthOrNot;
62 }
File name: GUICustomAuth.cs
Copy
64 public void SetStateAuthFailed()
65 {
66 RootOf3dButtons.SetActive(false);
67 guiState = GuiState.AuthFailed;
68 }
File name: GUICustomAuth.cs
Copy
70 public void ConnectWithNickname()
71 {
72 RootOf3dButtons.SetActive(false);
73
74 PhotonNetwork.AuthValues = null; // null by default but maybe set in a previous session.
75 PhotonNetwork.ConnectUsingSettings("1.0");
76
77 // PhotonNetwork.playerName gets set in GUIFriendFinding
78 // a UserID is not used in this case (no AuthValues set)
79 }
RootOf3dButtons 117 lượt xem
Gõ tìm kiếm nhanh...