Example #1
0
        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);
        }
Example #2
0
        private void Move(Racing3DCarControl car, Racing3DGameModel.MoveDirections direction)
        {
            if (!car.Controllable)
            {
                return;
            }

            car.Move(direction);
        }
 private void Move(Racing3DCarControl car, Racing3DGameModel.MoveDirections direction)
 {
 }
Example #4
0
 private IEnumerator LoadUserInfosCoroutine(Racing3DCarControl car, Participant participant)
 {
     return(null);
 }