Exemplo n.º 1
0
 // Will init stuff
 public void Init(Vector2 pos, Texture2D texture)
 {
     spriteObject = new SpriteObject();
     spriteObject.Load(texture);
     collider = new BoxCollider(this, spriteObject);
     this.AddChild(spriteObject);
     this.SetPosition(pos);
 }
Exemplo n.º 2
0
 public void Init(Vector2 pos, Texture2D texture, List <Object> objects)
 {
     spriteObject = new SpriteObject();
     spriteObject.Load(texture);
     collider = new BoxCollider(this, spriteObject);
     this.AddChild(spriteObject);
     this.SetPosition(pos);
     targets = objects;
     // Finding the best target it should go for
     onNewTarget = true;
     UpdateList();
 }