summaryrefslogtreecommitdiff
path: root/Thronefall_v1.0/Decompile/Invulnerable.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Thronefall_v1.0/Decompile/Invulnerable.cs')
-rw-r--r--Thronefall_v1.0/Decompile/Invulnerable.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Thronefall_v1.0/Decompile/Invulnerable.cs b/Thronefall_v1.0/Decompile/Invulnerable.cs
new file mode 100644
index 0000000..9a7857c
--- /dev/null
+++ b/Thronefall_v1.0/Decompile/Invulnerable.cs
@@ -0,0 +1,16 @@
+using UnityEngine;
+
+public class Invulnerable : MonoBehaviour
+{
+ private Hp hp;
+
+ private void Start()
+ {
+ hp = GetComponent<Hp>();
+ }
+
+ private void Update()
+ {
+ hp.Heal(1000000f);
+ }
+}