summaryrefslogtreecommitdiff
path: root/Other/AstarPathfindingDemo/Packages/com.arongranberg.astar/ExampleScenes/Scenes/OldExamples/Example18_RTS/RTSHarvestableResource.cs
blob: 9ec094cd11ee72ddf3aea27ccdcc57b792f58b34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
	}
}