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.
34 lines
420 B
34 lines
420 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,
|
|
JUMPING,
|
|
LAND,
|
|
JUMPKICK,
|
|
PUNCH,
|
|
KICK,
|
|
ATTACK,
|
|
DEFEND,
|
|
HIT,
|
|
DEATH,
|
|
THROW,
|
|
PICKUPITEM,
|
|
KNOCKDOWN,
|
|
KNOCKDOWNGROUNDED,
|
|
GROUNDPUNCH,
|
|
GROUNDKICK,
|
|
GROUNDHIT,
|
|
STANDUP,
|
|
USEWEAPON,
|
|
};
|