From 1495bc0734a002d2d374c7627aa59b1a6bdb7406 Mon Sep 17 00:00:00 2001 From: rodude123 Date: Fri, 6 May 2022 18:09:10 +0100 Subject: [PATCH 1/2] Fixed health variable issue, changed it to a property --- Runtime/Player/FPSPlayer.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Runtime/Player/FPSPlayer.cs b/Runtime/Player/FPSPlayer.cs index 8d71efc..3e38958 100644 --- a/Runtime/Player/FPSPlayer.cs +++ b/Runtime/Player/FPSPlayer.cs @@ -11,10 +11,15 @@ public enum WeaponType Shotgun, Sniper } - public float health = 100f; + + public float health + { + get; + set; + } public abstract void TakeDamage(float damage); public abstract void Shoot(); } -} \ No newline at end of file +} From 4d4cb9a26b792714500117d139c5600d1133d3f6 Mon Sep 17 00:00:00 2001 From: rodude123 Date: Fri, 6 May 2022 18:10:19 +0100 Subject: [PATCH 2/2] Updated version to match fix --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8cb45ad..56fb112 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.rodude123.configurable-fps-ai", - "version": "1.1.0", + "version": "1.1.1", "displayName": "FPS AI System", "description": "This is a configurable FPS AI system designed to help create AI for FPS games", "unity": "2020.3",