You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
432 B

using UnityEngine;
public class UnitState : MonoBehaviour {
public UNITSTATE currentState = UNITSTATE.IDLE;
public void SetState(UNITSTATE state){
currentState = state;
}
}
public enum UNITSTATE {
IDLE,
WALK,
RUN,
CHARGE,
JUMPING,
LAND,
JUMPKICK,
PUNCH,
KICK,
ATTACK,
DEFEND,
HIT,
DEATH,
THROW,
PICKUPITEM,
KNOCKDOWN,
KNOCKDOWNGROUNDED,
GROUNDPUNCH,
GROUNDKICK,
GROUNDHIT,
STANDUP,
USEWEAPON,
};