Пример #1
0
 protected void Awake()
 {
     if (Instance != null && Instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         Instance = this;
     }
 }
Пример #2
0
 protected void Start()
 {
     IpAddress.text  = "127.0.0.1";
     PortNumber.text = "1337";
     _networkManager = NetworkingManager.Instance;
 }