// 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); }
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(); }