animations not working on multi play mode?
Hi i create a multi play fighting game. There are two character. I applied some animations to the character. Movements are working properly of both multi player windows. but Animations not work properly. Help me to fixed it please
 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 using UnityEngine.Networking;
 public class Dreayer : NetworkBehaviour {
 
     // Use this for initialization
     static Animator _Anim;
     public float speed = 0.5f;
     public float rotationSpeed = 75.0f;
 
     
     void Start () {
         _Anim = GetComponent<Animator>();
         
     }
     
     // Update is called once per frame
    // [SyncEventAttribute]
     //[SyncEvent]
     void Update()
     {
         if (!isLocalPlayer)
         {
             return;
         }
         float translation = Input.GetAxis("Vertical") * speed;
         float rotation = Input.GetAxis("Horizontal") * rotationSpeed;
 
         transform.Translate(0, 0, translation * 2);
         transform.Rotate(0, rotation * Time.deltaTime, 0);
         
       //------------------------------------------------------------------------------------this is the animations
         if (Input.GetKeyDown(KeyCode.B))
         {
            
 
             _Anim.SetBool("IsKick", true);
             
             
         }
         if (Input.GetKeyDown(KeyCode.N))
         {
              _Anim.SetBool("IsKick", false);
         }
        
     }
 }
 
               Comment
              
 
               
              Your answer
 
 
             Follow this Question
Related Questions
I can't see my player 1 Answer
Delete object with key within Trigger 1 Answer
Make a 3D Object look like hes facing a point in an 2D space 0 Answers
Hiding part of mesh 0 Answers
How do i create sub meshes? 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                