48 lines
633 B
C#
48 lines
633 B
C#
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// D E R E L I C T
|
|
//
|
|
/// // (c) 2003..2024
|
|
using System;
|
|
using Godot;
|
|
using Godot.Sharp.Extras;
|
|
|
|
namespace fsm;
|
|
|
|
|
|
[GlobalClass]
|
|
public partial class StateNode : Node
|
|
{
|
|
|
|
[Export]
|
|
public bool _moveAndRotate = true;
|
|
|
|
public virtual void OnEnter( NodePath oldNode )
|
|
{
|
|
|
|
}
|
|
|
|
public virtual void OnExit( NodePath newNode )
|
|
{
|
|
|
|
}
|
|
|
|
public override void _Ready()
|
|
{
|
|
base._Ready();
|
|
this.OnReady();
|
|
|
|
|
|
}
|
|
|
|
public override void _PhysicsProcess( double dt )
|
|
{
|
|
base._PhysicsProcess( dt );
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|