플레이어 스킬 2번째 사용부터 파티클 오류 수정
This commit is contained in:
parent
1e3ede6b9a
commit
467935b95d
@ -61,7 +61,6 @@ namespace BlueWater.Players.Combat.Skills
|
|||||||
_iPhysicMovable = _combatPlayer.GetComponent<IPhysicMovable>();
|
_iPhysicMovable = _combatPlayer.GetComponent<IPhysicMovable>();
|
||||||
}
|
}
|
||||||
_theWaltzOfTheSwordData = (TheWaltzOfTheSwordData)SkillData;
|
_theWaltzOfTheSwordData = (TheWaltzOfTheSwordData)SkillData;
|
||||||
_readyParticleInstance = Instantiate(_theWaltzOfTheSwordData.ReadyParticle, SkillUser.transform);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool CanSkill()
|
public override bool CanSkill()
|
||||||
@ -86,6 +85,7 @@ namespace BlueWater.Players.Combat.Skills
|
|||||||
EnableSkill = false;
|
EnableSkill = false;
|
||||||
_iPhysicMovable.Rigidbody.linearVelocity = Vector3.zero;
|
_iPhysicMovable.Rigidbody.linearVelocity = Vector3.zero;
|
||||||
_iPhysicMovable.Rigidbody.isKinematic = true;
|
_iPhysicMovable.Rigidbody.isKinematic = true;
|
||||||
|
_readyParticleInstance = Instantiate(_theWaltzOfTheSwordData.ReadyParticle, SkillUser.transform);
|
||||||
_readyParticleInstance.Play();
|
_readyParticleInstance.Play();
|
||||||
SortCollidersByDistance();
|
SortCollidersByDistance();
|
||||||
_animationController.SetAnimationParameter("isReadyMainSkill", true);
|
_animationController.SetAnimationParameter("isReadyMainSkill", true);
|
||||||
|
Loading…
Reference in New Issue
Block a user