public void Start()
        {
#pragma warning disable 618
            m_NetworkManager = UIController.GetComponent <NetworkManager>();
#pragma warning restore 618


            gameObject.name = "CloudAnchorsExampleController";
            ARCoreRoot.SetActive(false);
            ARKitRoot.SetActive(false);
            _ResetStatus();
        }
Beispiel #2
0
        /// <summary>
        /// The Unity Start() method.
        /// </summary>
        public void Start()
        {
#pragma warning disable 618
            m_NetworkManager = UIController.GetComponent <NetworkManager>();
#pragma warning restore 618

            // A Name is provided to the Game Object so it can be found by other Scripts
            // instantiated as prefabs in the scene.
            gameObject.name = "CloudAnchorsExampleController";
            ARCoreRoot.SetActive(false);
            ARKitRoot.SetActive(false);
            _ResetStatus();
        }
Beispiel #3
0
        public void Start()
        {
            m_NetworkManager = UIController.GetComponent <CloudAnchorsNetworkManager>();
            m_NetworkManager.OnClientConnected    += _OnConnectedToServer;
            m_NetworkManager.OnClientDisconnected += _OnDisconnectedFromServer;

            // A Name is provided to the Game Object so it can be found by other Scripts
            // instantiated as prefabs in the scene.
            gameObject.name = "CloudAnchorsExampleController";
            ARCoreRoot.SetActive(false);

            _ResetStatus();
        }
        /// <summary>
        /// The Unity Start() method.
        /// </summary>
        public void Start()
        {
#pragma warning disable 618
            _networkManager = NetworkUIController.GetComponent <CloudAnchorsNetworkManager>();
#pragma warning restore 618
            _networkManager.OnClientConnected    += OnConnectedToServer;
            _networkManager.OnClientDisconnected += OnDisconnectedFromServer;

            // A Name is provided to the Game Object so it can be found by other Scripts
            // instantiated as prefabs in the scene.
            gameObject.name = "CloudAnchorsExampleController";
            ARCoreRoot.SetActive(false);
            ARKitRoot.SetActive(false);
            ResetStatus();
        }