Astar3DButton.cs 475 B

123456789101112131415161718
  1. using UnityEngine;
  2. using System.Collections;
  3. namespace Pathfinding.Examples {
  4. /// <summary>Helper script in the example scene 'Turn Based'</summary>
  5. [HelpURL("http://arongranberg.com/astar/documentation/stable/class_pathfinding_1_1_examples_1_1_astar3_d_button.php")]
  6. public class Astar3DButton : MonoBehaviour {
  7. public GraphNode node;
  8. public void OnHover (bool hover) {
  9. // TODO: Play animation
  10. }
  11. public void OnClick () {
  12. // TODO: Play animation
  13. }
  14. }
  15. }