mirror of
https://github.com/thecatontheceiling/buckshotroulette-decomp.git
synced 2024-11-25 15:07:21 +00:00
16 lines
327 B
GDScript
16 lines
327 B
GDScript
class_name SmokeController extends Node
|
|
|
|
@export var particle_barrel : GPUParticles3D
|
|
@export var particle_chamber : GPUParticles3D
|
|
|
|
func _ready():
|
|
SpawnSmoke("barrel")
|
|
SpawnSmoke("chamber")
|
|
|
|
func SpawnSmoke(alias : String):
|
|
match (alias):
|
|
"barrel":
|
|
particle_barrel.restart()
|
|
"chamber":
|
|
particle_chamber.restart()
|