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