added 3d card
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class_name PlayingCard
|
||||
extends StaticBody3D
|
||||
|
||||
@export var card_mesh: MeshInstance3D
|
||||
@export var front_texture: Texture
|
||||
var card_details: Card
|
||||
|
||||
func _ready() -> void:
|
||||
set_front_texture(front_texture)
|
||||
|
||||
func set_front_texture(texture: Texture) -> void:
|
||||
card_mesh.get_surface_override_material(0).albedo_texture = front_texture
|
||||
Reference in New Issue
Block a user