void Start() { networkOverlord = GameObject.Find("NetworkGM").GetComponent <NetworkOverlord>(); networkOverlord.StartMatchMaker(); StopAllCoroutines(); StartCoroutine(AutoRefresh()); }
/// <summary> /// Triggered when script is loaded /// </summary> void Awake() { networkOverlord = GameObject.Find("NetworkGM").GetComponent <NetworkOverlord>(); }
private NetworkOverlord networkOverlord; //Used to send server creation in the network /// <summary> /// Triggered when script is loaded /// </summary> void Awake() { //Initialize components networkOverlord = GameObject.Find("NetworkGM").GetComponent <NetworkOverlord>(); }