Replace NetworkView with NetworkIndentity? URGENT!
I feel like I'm going insane.
This script from an old tutorial isn't working because it needs networkview to work, which is deprecated. Also ignore the formatting errors in this post, I've been trying to fix this for hours and can't be bothered. Somebody please, I'm begging, just help. If there is a way to replace this all so it doesn't use networkview or better yet any network stuff at all that would be great.
private void Start () { //Ensure that a networkView component exists. (spoiler, it doesn't) NetworkView networkView = GetComponent(); if (networkView != null) { //Ensure that initialization only excecutes if this is a valid instance. if (networkView.ismine || networkView.peerType == NetworkPeerType.Disconnected) { // Load in the animator controller at runtime. _animatorcontroller = Resources.Load(Resources.AnimatorController) as RuntimeAnimatorController; _animator.runtimeAnimatorController = _animatorController; _controller.center = new Vector3(of, 1f, 0f); _controller.height = 1.8f; } else { enabled = false; } } else { Debug.Log("Somehow you have managed to start the game without a NetworkView component."); }