TaggedPlayer
How do I use Tagged Player
Below are practical examples compiled from projects for learning and reference purposes
Featured Snippets
Line | Code | Ex.. |
---|---|---|
43 | ScenePhotonView.RPC("TaggedPlayer", PhotonTargets.All, playerID); | 1 |
47 | public void TaggedPlayer(int playerID) | 2 |
File name: GameLogic.cs
Copy
40 public static void TagPlayer(int playerID)
41 {
42 Debug.Log("TagPlayer: " + playerID);
43 ScenePhotonView.RPC("TaggedPlayer", PhotonTargets.All, playerID);
44 }
File name: GameLogic.cs
Copy
47 public void TaggedPlayer(int playerID)
48 {
49 playerWhoIsIt = playerID;
50 Debug.Log("TaggedPlayer: " + playerID);
51 }
TaggedPlayer 117 lượt xem
Gõ tìm kiếm nhanh...