buckshotroulette-decomp/ShellBranch.gd

20 lines
381 B
GDScript3
Raw Normal View History

2024-01-20 12:17:43 +00:00
class_name ShellClass extends Node
@export var isLive : bool
@export var mat_live : StandardMaterial3D
@export var mat_blank : StandardMaterial3D
@export var mesh : MeshInstance3D
func _ready():
pass
func _process(delta):
pass
func ApplyStatus():
if (isLive):
mesh.set_surface_override_material(1, mat_live)
else:
mesh.set_surface_override_material(1, mat_blank)
pass