public void ResourceOrders(RubeUnit rube, Construct construct, Resource resource) { rube.NewOrder(new MoveOrder(resource.transform.position)); rube.Mark(resource); rube.AddOrder(new TakeResourceOrder(resource)); rube.AddOrder(new MoveOrder(construct.transform.position)); rube.AddOrder(new UseResourceOrder(construct)); }
public void BuildOrders(RubeUnit rube, Construct construct) { rube.NewOrder(new MoveOrder(construct.transform.position)); rube.AddOrder(new BuildOrder(construct)); }