mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-31 09:49:06 +03:00
18 lines
258 B
GDScript
18 lines
258 B
GDScript
class_name Pawn
|
|
extends Node2D
|
|
|
|
enum CellType {
|
|
ACTOR,
|
|
OBSTACLE,
|
|
OBJECT,
|
|
}
|
|
|
|
@export var type := CellType.ACTOR
|
|
|
|
var active: bool = true: set = set_active
|
|
|
|
func set_active(value: bool) -> void:
|
|
active = value
|
|
set_process(value)
|
|
set_process_input(value)
|