void Start() { //_nodeInfos.Callback = OnNodesChanged; if (_netManager == null) { _netManager = MPNetworkManager.singleton.gameObject.GetComponent <MPNetworkManager>(); } }
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); }