summaryrefslogtreecommitdiff
path: root/Thronefall_1_0/Decompile/OnDamageFeedbackHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Thronefall_1_0/Decompile/OnDamageFeedbackHandler.cs')
-rw-r--r--Thronefall_1_0/Decompile/OnDamageFeedbackHandler.cs28
1 files changed, 0 insertions, 28 deletions
diff --git a/Thronefall_1_0/Decompile/OnDamageFeedbackHandler.cs b/Thronefall_1_0/Decompile/OnDamageFeedbackHandler.cs
deleted file mode 100644
index 82aed25..0000000
--- a/Thronefall_1_0/Decompile/OnDamageFeedbackHandler.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-using UnityEngine;
-
-public class OnDamageFeedbackHandler : MonoBehaviour
-{
- public Hp target;
-
- public MaterialFlasherFX flasher;
-
- public GameObject onDmgByPlayerFX;
-
- private void Start()
- {
- target.OnReceiveDamage.AddListener(TakeDamage);
- }
-
- private void TakeDamage(bool causedByPlayer)
- {
- if (causedByPlayer)
- {
- Object.Instantiate(onDmgByPlayerFX, target.transform.position + Vector3.up * target.hitFeedbackHeight, onDmgByPlayerFX.transform.rotation);
- flasher.TriggerFlash(special: true);
- }
- else
- {
- flasher.TriggerFlash(special: false);
- }
- }
-}