mirror of
https://github.com/thecatontheceiling/buckshotroulette-decomp.git
synced 2024-11-25 23:17:22 +00:00
16 lines
327 B
GDScript3
16 lines
327 B
GDScript3
|
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()
|