PokemonLike/Library/Characters/Player.cs

16 lines
323 B
C#
Raw Permalink Normal View History

2025-04-11 13:35:55 -05:00
using Godot;
using PokemonLike.Library.Utilities;
namespace PokemonLike.Library.Characters;
[GlobalClass]
public partial class Player : CharacterBody2D
{
[Export] public StateMachine StateMachine;
public override void _Ready()
{
StateMachine.ChangeState(StateMachine.GetNode<State>("Roam"));
}
}