mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-27 07:47:59 +01:00
43 lines
945 B
C#
43 lines
945 B
C#
using Fie.Object;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Fie.Enemies.HoovesRaces.QueenChrysalis
|
|
{
|
|
public class FieStateMachineQueenChrysalisIdle : FieStateMachineGameCharacterBase
|
|
{
|
|
private bool _isEnd;
|
|
|
|
private Type _nextState = typeof(FieStateMachineQueenChrysalisIdle);
|
|
|
|
public override void updateState<T>(ref T gameCharacter)
|
|
{
|
|
if (gameCharacter is FieQueenChrysalis)
|
|
{
|
|
if (gameCharacter.groundState == FieObjectGroundState.Flying)
|
|
{
|
|
_nextState = typeof(FieStateMachineQueenChrysalisJumpIdle);
|
|
_isEnd = true;
|
|
}
|
|
gameCharacter.animationManager.SetAnimation(0, isLoop: true);
|
|
}
|
|
}
|
|
|
|
public override bool isEnd()
|
|
{
|
|
return _isEnd;
|
|
}
|
|
|
|
public override Type getNextState()
|
|
{
|
|
return _nextState;
|
|
}
|
|
|
|
public override List<Type> getAllowedStateList()
|
|
{
|
|
List<Type> list = new List<Type>();
|
|
list.Add(typeof(FieStateMachineAnyConsider));
|
|
return list;
|
|
}
|
|
}
|
|
}
|