+ CombatPlayer 기능별 분리 + Combat, CombatUi 전용 input action map 추가 + 스킬 시스템 로직 수정 + 전투플레이어 스킬(검의 왈츠) 로직 변경
38 lines
1.3 KiB
C#
38 lines
1.3 KiB
C#
// using System;
|
|
// using UnityEngine;
|
|
//
|
|
// // ReSharper disable once CheckNamespace
|
|
// namespace BlueWaterProject
|
|
// {
|
|
// public class ReadyToTheWaltzOfTheSwordBehavior : StateMachineBehaviour
|
|
// {
|
|
// private CombatPlayerController combatPlayerController;
|
|
// private TheWaltzOfTheSword theWaltzOfTheSword;
|
|
//
|
|
// public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
|
// {
|
|
// if (combatPlayerController == null)
|
|
// {
|
|
// combatPlayerController = animator.GetComponentInParent<CombatPlayerController>();
|
|
// }
|
|
//
|
|
// if (theWaltzOfTheSword == null)
|
|
// {
|
|
// theWaltzOfTheSword = combatPlayerController.MainSkillObject.GetComponent<TheWaltzOfTheSword>();
|
|
// }
|
|
//
|
|
// var animationLength = stateInfo.length;
|
|
// animator.speed = animationLength / theWaltzOfTheSword.CastingTime;
|
|
// }
|
|
//
|
|
// public override void OnStateUpdate(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
|
// {
|
|
//
|
|
// }
|
|
//
|
|
// public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
|
|
// {
|
|
// animator.speed = 1f;
|
|
// }
|
|
// }
|
|
// } |