oldie/scenes/enemies/Enemy.cs

20 lines
348 B
C#
Raw Normal View History

2022-11-21 00:42:55 -03:00
using Godot;
using System;
public class Enemy : KinematicBody2D
{
[Export]
private Vector2 _startPosition;
public Vector2 StartPosition { get { return _startPosition; } }
public override void _Ready()
{
_startPosition = Position;
}
public virtual void Reset()
{
Position = _startPosition;
}
}