public NpcStandState(Npc npc) : base(npc) { }
void Awake() { Anim = GetComponent <Animator>(); Rigidbody = GetComponent <Rigidbody2D>(); Owner = GetComponent <Npc>(); }
public NpcDeadState(Npc npc) : base(npc) { }
public NpcWalkState(Npc npc) : base(npc) { moveParam = GameDefine.NpcMoveSpeed; }
protected NpcBaseState(Npc npc) { Owner = npc; Animator = Owner.gameObject.GetComponent <NpcRepresent>(); Rigidbody = Owner.gameObject.GetComponent <Rigidbody2D>(); }
public NpcJumpState(Npc npc) : base(npc) { }