コード例 #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);
        }
コード例 #3
0
 private void Move(Racing3DCarControl car, Racing3DGameModel.MoveDirections direction)
 {
 }
コード例 #4
0
 private IEnumerator LoadUserInfosCoroutine(Racing3DCarControl car, Participant participant)
 {
     return(null);
 }