15 lines
323 B
C#
15 lines
323 B
C#
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"));
|
|
}
|
|
}
|