Advertisement
kadyr

Untitled

Aug 28th, 2021
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using Photon.Pun;
  4. using UnityEngine.UI;
  5. using UnityEngine;
  6.  
  7. public class LobbyManager : MonoBehaviourPunCallbacks
  8. {
  9. [SerializeField]
  10. private Text logText;
  11.  
  12. void Start()
  13. {
  14. PhotonNetwork.NickName = "Кадыр";
  15. PhotonNetwork.AutomaticallySyncScene = true;
  16. PhotonNetwork.GameVersion = "1";
  17. PhotonNetwork.ConnectUsingSettings();
  18. }
  19.  
  20. void Log(string message)
  21. {
  22. Debug.Log(message);
  23. logText.text += "\n";
  24. logText.text += message;
  25. }
  26.  
  27. void Update()
  28. {
  29.  
  30. }
  31. }
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement