summaryrefslogtreecommitdiff
path: root/Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/ExampleScenes/Scenes/OldExamples/Example18_RTS/RTSHarvestableResource.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/ExampleScenes/Scenes/OldExamples/Example18_RTS/RTSHarvestableResource.cs')
-rw-r--r--Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/ExampleScenes/Scenes/OldExamples/Example18_RTS/RTSHarvestableResource.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/ExampleScenes/Scenes/OldExamples/Example18_RTS/RTSHarvestableResource.cs b/Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/ExampleScenes/Scenes/OldExamples/Example18_RTS/RTSHarvestableResource.cs
new file mode 100644
index 0000000..9ec094c
--- /dev/null
+++ b/Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/ExampleScenes/Scenes/OldExamples/Example18_RTS/RTSHarvestableResource.cs
@@ -0,0 +1,20 @@
+using UnityEngine;
+using System.Collections;
+
+namespace Pathfinding.Examples.RTS {
+ [HelpURL("https://arongranberg.com/astar/documentation/stable/rtsharvestableresource.html")]
+ public class RTSHarvestableResource : MonoBehaviour {
+ public float value;
+ public ResourceType resourceType;
+
+ public bool harvestable {
+ get {
+ return value > 0;
+ }
+ }
+ }
+
+ public enum ResourceType {
+ Crystal
+ }
+}