mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-14 17:13:48 +00:00
Enemy state machine
This commit is contained in:
parent
b9b8834bc2
commit
ef6c240e8e
37 changed files with 545 additions and 36 deletions
|
|
@ -3,6 +3,7 @@ using Godot;
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using Cirno.Scripts.Components;
|
||||
using Cirno.Scripts.Enums;
|
||||
using Godot.Collections;
|
||||
|
||||
public partial class Enemy : CharacterBody2D
|
||||
|
|
@ -319,14 +320,6 @@ public partial class Enemy : CharacterBody2D
|
|||
}
|
||||
}
|
||||
|
||||
public enum EnemyState
|
||||
{
|
||||
Idle,
|
||||
Alert,
|
||||
Patrolling,
|
||||
Shooting
|
||||
}
|
||||
|
||||
public enum AiState
|
||||
{
|
||||
Enabled,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue