public virtual async void disappear(bool collide) { Enabled = false; _velocity_x = _velocity_y = _gravity = 0; if (collide) { hitPlayer?.Play(); if (hasDisappear) { sprite.Play("disappear"); await ToSignal(sprite, "animation_finished"); } } Visible = false; }
private void _on_TotalTimer_timeout_ext() { counter = 0; bulletTimer.Start(); player.Play(); }