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