From 7f493f682503f5186308de7b8f74b5b49233cfe4 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Thu, 2 Nov 2023 11:51:31 +0800 Subject: +init --- GameCode/Invulnerable.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 GameCode/Invulnerable.cs (limited to 'GameCode/Invulnerable.cs') diff --git a/GameCode/Invulnerable.cs b/GameCode/Invulnerable.cs new file mode 100644 index 0000000..9a7857c --- /dev/null +++ b/GameCode/Invulnerable.cs @@ -0,0 +1,16 @@ +using UnityEngine; + +public class Invulnerable : MonoBehaviour +{ + private Hp hp; + + private void Start() + { + hp = GetComponent(); + } + + private void Update() + { + hp.Heal(1000000f); + } +} -- cgit v1.1-26-g67d0