20 lines
347 B
C#
20 lines
347 B
C#
|
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();
|
||
|
}
|
||
|
}
|