How to sync mecanim animations?

ive been trying super hard to get this working but whatever i do i cant fix it. i have this script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class playerblend : Photon.MonoBehaviour {

    private Animator anim;

	// Use this for initialization
	void Start ()
        anim = GetComponent<Animator>();
	// Update is called once per frame
	void Update ()
		if (anim == null)
			Debug.LogError("Animator not present in" +;

		float x = Input.GetAxis("Horizontal");
		float y = Input.GetAxis("Vertical");


    private void Move(float x, float y)
        anim.SetFloat("VelX", x);
        anim.SetFloat("VelY", y);
to change my players blend tree in game, thus making him walk and all that good stuff. the problem is, i cant sync this over the network. can someone help me on this?

Best Answer


Sign In or Register to comment.