void OnRecieveAgentVelocity(Vector3 velocity, Transform transform) { character2D.UpdateAnimation(velocity); character2D.transform.localPosition = new Vector3(transform.localPosition.x, transform.localPosition.y, character2D.transform.localPosition.z); }