oldie/scenes/enemies/turtle/red/RedTurtle.cs

20 lines
350 B
C#
Raw Normal View History

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