oldie/scenes/enemies/goomba/Goomba.cs

20 lines
347 B
C#
Raw Permalink Normal View History

2022-11-21 00:42:55 -03:00
using Godot;
using System;
public class Goomba : EnemyWalking
{
private AnimatedSprite _sprite;
public override void _Ready()
{
base._Ready();
_sprite = GetNode<AnimatedSprite>("AnimatedSprite");
_sprite.Play("walk");
}
public void OnVisibilityNotifier2DScreenExited()
{
Reset();
}
}