示例#1
0
 private void deploy()
 {
     this.Visible = true;
     this.Frame   = 0;
     _deployed    = true;
     Play("Open");
     GetNode <AudioStreamPlayer2D>("../Audio/UmbrellaOpenPlayer2D").Play();
     umbrellaShape.SetDeferred("disabled", false);
 }
 public override void DisableCollisions()
 {
     _collisionPolygon.SetDeferred("disabled", true);
 }
示例#3
0
 public void Destroy()
 {
     Hide();
     _collisionShape.SetDeferred("disabled", true);
     QueueFree();
 }