コード例 #1
0
 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));
 }
コード例 #2
0
 public void BuildOrders(RubeUnit rube, Construct construct)
 {
     rube.NewOrder(new MoveOrder(construct.transform.position));
     rube.AddOrder(new BuildOrder(construct));
 }