pawn.gd 282 B

123456789101112131415
  1. class_name Pawn
  2. extends Node2D
  3. enum CellType { ACTOR, OBSTACLE, OBJECT }
  4. #warning-ignore:unused_class_variable
  5. @export var type: CellType = CellType.ACTOR
  6. var active = true: set = set_active
  7. func set_active(value):
  8. active = value
  9. set_process(value)
  10. set_process_input(value)