public ButcherDeliveryJob(Butchery butchery, Vector2 location) : base(location, 1, null)
    {
        this.butchery = butchery;
        Location      = butchery.RandomSpot;

        OnJobCompleted += () => { butchery.Deliver(Location, collectable); };
        OnJobCompleted += () => { Owner.Collectable = null; };
    }
Esempio n. 2
0
    public ButcherJob(Vector2 location, Butchery butcher) : base(location, 5, null)
    {
        Location     = location;
        this.butcher = butcher;

        OnJobCompleted += () => { this.butcher.CreateCrate(); };
        OnJobCompleted += () => { Owner.CurrentJob = null; };
        OnJobCompleted += () => { Owner.Collectable = null; };
    }
    public ButcherCollectJob(ICollectable corpse, Vector2 location) : base(location, 1, null)
    {
        this.corpse = corpse;

        butchery = BuildingManager.Instance.GetButchery();
        Location = location;

        OnJobCompleted += () => { Owner.Collectable = corpse; };
        OnJobCompleted += () => { NewDeliveryJob(); };
    }