コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     if (GameObject.Find("NetworkManager"))
     {
         netManager = GameObject.Find("NetworkManager").GetComponent <FPSNetworkCode.NetworkManager>();
         netManager.ConnectToServer();
     }
 }
コード例 #2
0
    public void TestMM()
    {
        if (!NwManager)
        {
            NwManager = GameObject.Find("NetworkManager").GetComponent <FPSNetworkCode.NetworkManager>();
        }

        if (NwManager)
        {
            NwManager.SendMessage("QueueMatchMaking");
        }
    }
コード例 #3
0
    // 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>();
            }
        }
    }
コード例 #4
0
 void Start()
 {
     NwManager      = GameObject.Find("NetworkManager").GetComponent <FPSNetworkCode.NetworkManager>();
     ProfileManager = GameObject.Find("ProfileMgr");
 }