CapersProject/Packages/com.arongranberg.astar/ExampleScenes~/Scenes/OldExamples/Example18_RTS/RTSHarvestableResource.cs
2024-06-04 03:26:03 +09:00

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
}
}