예제 #1
0
 public void UpdateAnimation(AnimChangeType type, AnimChangeState state)
 {
     switch (type)
     {
     case AnimChangeType.UNDERWATER:
         AnimationController["is_underwater"] = state != AnimChangeState.OFF;
         break;
     }
 }
예제 #2
0
 public void UpdateAnimation(AnimChangeType type, AnimChangeState state)
 {
     switch (type)
     {
     case AnimChangeType.Underwater:
         animationController.SetBool("is_underwater", state != AnimChangeState.Off);
         break;
     }
 }
예제 #3
0
        public void UpdateAnimation(AnimChangeType type, AnimChangeState state)
        {
            switch (type)
            {
            case AnimChangeType.UNDERWATER:
                AnimationController["is_underwater"] = state != AnimChangeState.OFF;
                break;

            case AnimChangeType.BENCH:
                AnimationController["cinematics_enabled"] = state != AnimChangeState.UNSET;
                AnimationController["bench_sit"]          = state == AnimChangeState.ON;
                AnimationController["bench_stand_up"]     = state == AnimChangeState.OFF;
                break;
            }
        }
예제 #4
0
        public void UpdateAnimation(string playerId, AnimChangeType type, AnimChangeState state)
        {
            GameObject          player     = GetPlayerGameObject(playerId);
            GameObject          playerView = player.transform.Find("player_view").gameObject;
            AnimationController controller = playerView.GetComponent <AnimationController>();

            bool animationValue;

            switch (type)
            {
            case AnimChangeType.Underwater:
                animationValue = (state != AnimChangeState.Off);
                controller.SetBool("is_underwater", animationValue);
                break;
            }
        }
예제 #5
0
        public void AnimationChange(AnimChangeType type, AnimChangeState state)
        {
            AnimationChangeEvent animEvent = new AnimationChangeEvent(packetSender.PlayerId, (int)type, (int)state);

            packetSender.Send(animEvent);
        }
예제 #6
0
        public void AnimationChange(AnimChangeType type, AnimChangeState state)
        {
            AnimationChangeEvent animEvent = new AnimationChangeEvent(multiplayerSession.Reservation.PlayerId, (int)type, (int)state);

            packetSender.Send(animEvent);
        }