oldie/scenes/enemies/turtle/blue/BlueTurtle.cs

20 lines
351 B
C#
Raw Permalink Normal View History

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