Passion & UI

This commit is contained in:
SoulliesOfficial
2026-06-12 17:11:39 -04:00
parent 7bc1e1722c
commit 6d7ebc5825
3444 changed files with 865284 additions and 463132 deletions

View File

@@ -168,18 +168,18 @@ namespace Cielonos.MainGame.Characters
this.normalBlockEffect = data.normalBlockEffect;
this.normalBlockSound = data.normalBlockSound;
this.triggerTime = 0.06f;
this.triggerTime = 0f;
}
public void PerfectBlock(AttackAreaBase attackArea, Vector3 blockEffectPosition)
{
if(triggerTime > 0f) return;
triggerTime = 0.04f;
triggerTime = 0.02f;
if (sourceItem != null)
{
AudioManager.Post(perfectBlockSound, sourceCharacter.gameObject);
sourceItem.feedbackSc.PlayFeedback("PerfectBlock");
sourceItem.feedbackSc?.PlayFeedback("PerfectBlock");
}
VFXObject.Spawn(perfectBlockEffect, sourceCharacter, blockEffectPosition, Quaternion.identity);
@@ -188,17 +188,18 @@ namespace Cielonos.MainGame.Characters
BlockSubmodule blockSm = sourceCharacter.reactionSc.blockSm;
blockSm.perfectBlockedTarget = attackArea.creator;
blockSm.afterPerfectBlockTimer.Reset(blockBufferTime + 0.25f);
Debug.Log($"[BlockSource] Perfect block triggered. Perfect block type: {perfectBlockType}, Block buffer time: {blockBufferTime}");
}
public void NormalBlock(AttackAreaBase attackArea, Vector3 blockEffectPosition)
{
if (triggerTime > 0f) return;
triggerTime = 0.04f;
triggerTime = 0.02f;
if (sourceItem != null)
{
AudioManager.Post(normalBlockSound, sourceCharacter.gameObject);
sourceItem.feedbackSc.PlayFeedback("NormalBlock");
sourceItem.feedbackSc?.PlayFeedback("NormalBlock");
}
VFXObject.Spawn(normalBlockEffect, sourceCharacter, blockEffectPosition, Quaternion.identity);
@@ -207,6 +208,7 @@ namespace Cielonos.MainGame.Characters
BlockSubmodule blockSm = sourceCharacter.reactionSc.blockSm;
blockSm.normalBlockedTarget = attackArea.creator;
blockSm.afterPerfectBlockTimer.Reset(blockBufferTime + 0.25f);
Debug.Log($"[BlockSource] Normal block triggered. Normal block type: {normalBlockType}, Block buffer time: {blockBufferTime}");
}
}
}