Exemplo n.º 1
0
 //[SerializeField] public Camera PlayerCam;
 void Update()
 {
     if(networkMatch == null)
     {
         var nm = GetComponent<NetworkMatch>();
         if (nm != null) {
             networkMatch = nm as NetworkMatch;
             UnityEngine.Networking.Types.AppID appid = (UnityEngine.Networking.Types.AppID)339051;
             networkMatch.SetProgramAppID(appid);
         }
     }
 }
 // Use this for initialization
 void Start()
 {
     NetworkManager.singleton.StartMatchMaker();
     networkMatch = NetworkManager.singleton.matchMaker;
     networkMatch.SetProgramAppID((AppID)379051);
     gameCode = "";
 }
Exemplo n.º 3
0
    void Update()
    {
        if (string.Equals (Application.loadedLevelName.ToString (), "Main")) {
            HideMenu ();
        } else {
            CG.alpha = 1;
        }

        if(networkMatch == null)
        {
            var nm = GetComponent<NetworkMatch>();
            if (nm != null) {
                networkMatch = nm as NetworkMatch;
                UnityEngine.Networking.Types.AppID appid = (UnityEngine.Networking.Types.AppID)339051;
                networkMatch.SetProgramAppID(appid);
            }
        }
    }
Exemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        netMatch = gameObject.AddComponent<NetworkMatch>();
        netMgr = GetComponent<NetworkManager>();
        netMgr.matchMaker = netMatch;

        netMatch.SetProgramAppID((AppID)520001);
    }