private IEnumerator LoadUserInfosCoroutine(Racing3DCarControl car, Participant participant) { if (participant == null) { yield break; } car.UpdateName(participant.DisplayName); if (participant.Player == null) { car.UpdateAvatar(anonymousAvatar); yield break; } if (participant.Player.image != null) { car.UpdateAvatar(participant.Player.image); yield break; } yield return(new WaitUntil(() => participant.Player.image != null)); car.UpdateAvatar(participant.Player.image); }
private void Move(Racing3DCarControl car, Racing3DGameModel.MoveDirections direction) { if (!car.Controllable) { return; } car.Move(direction); }
private void Move(Racing3DCarControl car, Racing3DGameModel.MoveDirections direction) { }
private IEnumerator LoadUserInfosCoroutine(Racing3DCarControl car, Participant participant) { return(null); }