tcp逻辑微调
This commit is contained in:
parent
570bd1554f
commit
a9530096e4
@ -284,8 +284,8 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
//比赛中的人只能看到当前比赛的人
|
||||
public static List<OnlineUser> GetCompetitionOnlineUsers(int competitionId)
|
||||
{
|
||||
//var result = onlineUserHelper.OnlineUsers.Where(u => u.CompetitionId == competitionId && !u.IsWatcher).ToList();
|
||||
var result = onlineUserHelper.OnlineUsers.Where(u =>!u.IsWatcher).ToList();
|
||||
var result = onlineUserHelper.OnlineUsers.Where(u => u.CompetitionId == competitionId && !u.IsWatcher).ToList();
|
||||
//var result = onlineUserHelper.OnlineUsers.Where(u =>!u.IsWatcher).ToList();
|
||||
return result;
|
||||
}
|
||||
//当前比赛观察者
|
||||
|
||||
@ -216,7 +216,10 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
if (distance >= 0)
|
||||
{
|
||||
//transform.localPosition = nextPos;
|
||||
StartCoroutine(LookAtNextPos());//转向
|
||||
if (distance > 0)
|
||||
{
|
||||
StartCoroutine(LookAtNextPos());//转向
|
||||
}
|
||||
StartCoroutine(MoveTo());//移动
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user