mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 05:20:06 +01:00
14 lines
279 B
GDScript
14 lines
279 B
GDScript
class_name Pawn
|
|
extends Node2D
|
|
|
|
enum CellType { ACTOR, OBSTACLE, OBJECT }
|
|
#warning-ignore:unused_class_variable
|
|
export(CellType) var type = CellType.ACTOR
|
|
|
|
var active = true setget set_active
|
|
|
|
func set_active(value):
|
|
active = value
|
|
set_process(value)
|
|
set_process_input(value)
|