Exemplo n.º 1
0
 public void UpdateAnimationAndMove()
 {
     if (change.x != Vector3.zero.x || change.y != Vector3.zero.y)
     {
         if (changedRoom)
         {
             transform.position += change;
             ServerSend.PlayerPosition(this);
             changedRoom = false;
             return;
         }
         MoveCharacter();
         ServerSend.AnimatorWalk(id, change);
         ServerSend.AnimatorIsWalking(id, true);
     }
     else
     {
         ServerSend.AnimatorIsWalking(id, false);
     }
 }