scene.gd 882 B

12345678910111213141516171819202122232425262728293031323334353637
  1. extends Spatial
  2. var iTime=0.0
  3. var iFrame=0
  4. var conf_clicked=false
  5. var play_clicked=false
  6. var is_played_once=false
  7. var iChannel_panorama=null
  8. func _ready():
  9. pass
  10. func get_pause_anim_timer():
  11. return smoothstep(4.0,7.0,iTime)
  12. func _process(delta):
  13. iTime+=delta
  14. iFrame+=1
  15. onready var p_ex=get_node("refl_body/sup_p")
  16. onready var right_f=get_node("floor_anix/right_f")
  17. onready var left_f=get_node("floor_anix/left_f")
  18. onready var spawn_group=get_node("spawn_group")
  19. func set_particles(val):
  20. if(val):
  21. p_ex.amount=8192
  22. right_f.amount=18000/2
  23. left_f.amount=18000/2
  24. for a in range(spawn_group.get_child_count()):
  25. spawn_group.get_child(a).get_node("FutariParticles").amount=8192/2
  26. else:
  27. p_ex.amount=8192*2
  28. right_f.amount=18000
  29. left_f.amount=18000
  30. for a in range(spawn_group.get_child_count()):
  31. spawn_group.get_child(a).get_node("FutariParticles").amount=8192