Tested some custom resources with a test scene.
This commit is contained in:
parent
4c512379c5
commit
1fd4a809f2
14 changed files with 125 additions and 4 deletions
14
test_enemy.gd
Normal file
14
test_enemy.gd
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
extends Area2D
|
||||
|
||||
@export var example_resource: ExampleResource
|
||||
var speed: float = 0
|
||||
var type: String = "null"
|
||||
|
||||
func _ready() -> void:
|
||||
#resource_sprite.texture = example_resource.sprite
|
||||
$Sprite2D.texture = example_resource.sprite
|
||||
#$Sprite2D/Sprite2D.texture = example_resource.sprite
|
||||
speed = example_resource.speed
|
||||
type = example_resource.type
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue