// Start is called before the first frame update void Start() { if (GameObject.Find("NetworkManager")) { netManager = GameObject.Find("NetworkManager").GetComponent <FPSNetworkCode.NetworkManager>(); netManager.ConnectToServer(); } }
public void TestMM() { if (!NwManager) { NwManager = GameObject.Find("NetworkManager").GetComponent <FPSNetworkCode.NetworkManager>(); } if (NwManager) { NwManager.SendMessage("QueueMatchMaking"); } }
// Start is called before the first frame update void Start() { invisibleTargeter = new GameObject().transform; if (GameObject.Find("NetworkManager")) { netManager = GameObject.Find("NetworkManager").GetComponent <FPSNetworkCode.NetworkManager>(); netManager.GameSceneStart(this); } if (GameObject.Find("ProfileManager")) { profileManager = GameObject.Find("ProfileManager").GetComponent <ProfileMgr>(); } if (!inputCtrlRef) { if (GameObject.Find("Local Input Manager")) { inputCtrlRef = GameObject.Find("Local Input Manager").GetComponent <FPSCharController.LocalClientInput>(); } } }
void Start() { NwManager = GameObject.Find("NetworkManager").GetComponent <FPSNetworkCode.NetworkManager>(); ProfileManager = GameObject.Find("ProfileMgr"); }