You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
26 lines
612 B
C#
26 lines
612 B
C#
|
|
using UnityEngine;
|
|
|
|
public class GroundParentState : State
|
|
{
|
|
public override void UpdateLogic(PlayerNetwork player)
|
|
{
|
|
base.UpdateLogic(player);
|
|
CheckFlip(player);
|
|
player.canDoubleJump = true;
|
|
player.canDash = true;
|
|
player.hasJumped = false;
|
|
player.canJump = true;
|
|
}
|
|
public override bool ToAttackState(PlayerNetwork player)
|
|
{
|
|
player.enter = false;
|
|
player.state = "Attack";
|
|
return true;
|
|
}
|
|
public override bool ToArcanaState(PlayerNetwork player)
|
|
{
|
|
player.state = "Arcana";
|
|
return true;
|
|
}
|
|
} |