Beispiel #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;
 }
Beispiel #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);
     }
 }
Beispiel #3
0
 // for testing purpose remove later
 void AwakeTest()
 {
     tailEnd = pManager.entity;
 }
Beispiel #4
0
 public World AddEntity(NEntity.Entity entity)
 {
     entities.Add(entity);
     this.E_EntityAdded(this, entity);
     return(this);
 }
Beispiel #5
0
 void H_FollowingEntityMoved(World world, Entity entity, int fromX, int fromY, int toX, int toY)
 {
     Move (world, fromX,fromY);
 }