CapersProject/Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/RTSHarvestableResource.cs

21 lines
406 B
C#
Raw Normal View History

2024-06-03 18:26:03 +00:00
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
}
}