コード例 #1
0
        void Start()
        {
            //_nodeInfos.Callback = OnNodesChanged;

            if (_netManager == null)
            {
                _netManager = MPNetworkManager.singleton.gameObject.GetComponent <MPNetworkManager>();
            }
        }
コード例 #2
0
        public override void OnStartClient()
        {
            DontDestroyOnLoad(this);

            if (_netManager == null)
            {
                _netManager = MPNetworkManager.singleton.gameObject.GetComponent <MPNetworkManager>();
            }

            base.OnStartClient();
            Debug.Log("Client Network Player start");

            _netManager.RegisterMPNetworkPlayer(this);
        }