예제 #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);
        }
예제 #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)
 {
 }
예제 #4
0
 private IEnumerator LoadUserInfosCoroutine(Racing3DCarControl car, Participant participant)
 {
     return(null);
 }