G2A Many GEOs
SHARE
TWEET

Unity for noobs MatchmakingManager

a guest Aug 18th, 2015 1,745 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma strict
  2. import UnityEngine.Networking;
  3. import UnityEngine.Networking.Match;
  4.  
  5.  
  6.  
  7. public class MatchmakingManager extends NetworkManager{
  8.  
  9. private var networkMatch:NetworkMatch;
  10.  
  11.  function Update(){
  12.   if(networkMatch == null){
  13.   var nm = GetComponent(NetworkMatch);
  14.   if(nm != null){
  15.   networkMatch = nm as NetworkMatch;
  16.   var appid:UnityEngine.Networking.Types.AppID;
  17.   appid= 94451;
  18.   networkMatch.SetProgramAppID(appid);
  19.   }
  20.   }
  21.  }
  22.  }
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top