21 lines
406 B
C#
21 lines
406 B
C#
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
|
|
}
|
|
}
|