Exemple #1
0
 public Tail(int x, int y, Entity follow)
     : base(x,y)
 {
     this.entityFollow = follow;
     if (follow == null) return;
     follow.E_Moved += H_FollowingEntityMoved;
 }
Exemple #2
0
 // FTP(For Testing Purpose)
 void UpdateTest()
 {
     if (Input.GetKeyDown (KeyCode.Space)) {
         var tailNew = new NWorld.NEntity.Tail(0,0,this.tailEnd);
         this.tailEnd = tailNew;
         this.world.AddEntity(tailNew);
     }
 }
Exemple #3
0
 // for testing purpose remove later
 void AwakeTest()
 {
     tailEnd = pManager.entity;
 }
Exemple #4
0
 void H_FollowingEntityMoved(World world, Entity entity, int fromX, int fromY, int toX, int toY)
 {
     Move (world, fromX,fromY);
 }