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