コード例 #1
0
        public override void Die()
        {
            CharacterHurtBox.Disable();
            CharacterHitBox.Disable();

            CollisionShape2D.SetDeferred("disabled", true);
            AnimationPlayer.Play("Death");
        }
コード例 #2
0
 public override void StartInvincibility()
 {
     CharacterHurtBox.Disable();
     BlinkAnimationPlayer.Play("Blink");
     AnimationPlayer.Play("Hit");
 }
コード例 #3
0
 public void StartRoll()
 {
     AnimationPlayer.Play("Roll");
     CharacterHurtBox.Disable();
 }