示例#1
0
 public NpcStandState(Npc npc) : base(npc)
 {
 }
示例#2
0
 void Awake()
 {
     Anim      = GetComponent <Animator>();
     Rigidbody = GetComponent <Rigidbody2D>();
     Owner     = GetComponent <Npc>();
 }
示例#3
0
 public NpcDeadState(Npc npc) : base(npc)
 {
 }
示例#4
0
 public NpcWalkState(Npc npc) : base(npc)
 {
     moveParam = GameDefine.NpcMoveSpeed;
 }
示例#5
0
 protected NpcBaseState(Npc npc)
 {
     Owner     = npc;
     Animator  = Owner.gameObject.GetComponent <NpcRepresent>();
     Rigidbody = Owner.gameObject.GetComponent <Rigidbody2D>();
 }
示例#6
0
 public NpcJumpState(Npc npc) : base(npc)
 {
 }