fix(animation): 전투 애니메이션 페이즈 흐름 개선
- 공격 시 prepare 페이즈부터 시작하여 준비 동작 표시 - 이펙트 레이어를 prepare 페이즈에서도 표시 - 공격자 타입을 idle 페이즈 진입 시에만 리셋 - 공격 사이클(prepare→attack→hit→recover) 동안 공격자 유지
This commit is contained in:
@@ -50,8 +50,10 @@ class CanvasBattleComposer {
|
||||
_createMonsterLayer(phase, subFrame, attacker),
|
||||
];
|
||||
|
||||
// 이펙트 레이어 (공격/히트 페이즈에서만, 공격자 있을 때)
|
||||
if ((phase == BattlePhase.attack || phase == BattlePhase.hit) &&
|
||||
// 이펙트 레이어 (준비/공격/히트 페이즈에서, 공격자 있을 때)
|
||||
if ((phase == BattlePhase.prepare ||
|
||||
phase == BattlePhase.attack ||
|
||||
phase == BattlePhase.hit) &&
|
||||
attacker != AttackerType.none) {
|
||||
final effectLayer = _createEffectLayer(phase, subFrame, attacker);
|
||||
if (effectLayer != null) {
|
||||
|
||||
Reference in New Issue
Block a user