public void CommandAction(Data.Movement command) { var user = Arena.GetUserByID(Context.ConnectionId); if (user != null && command != Data.Movement.None) { //movimenta o peao user.LastForce = command; //me parece nao funcionar } }
public async void CommandAction(Data.Movement command) { var user = Arena.GetUserByID(Context.ConnectionId); if (user != null) { //movimenta o peao Arena.Move(Context.ConnectionId, command); await Rotine(); } }