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