This commit is contained in:
Anuken
2020-05-15 11:11:03 -04:00
parent b68e0a8562
commit 9f20de427e
2 changed files with 7 additions and 1 deletions

View File

@@ -32,6 +32,12 @@ abstract class BuilderComp implements Unitc{
transient float buildSpeed = 1f;
transient boolean building = true;
@Override
public void controller(UnitController next){
//reset building state so AI controlled units will always start off building
building = true;
}
@Override
public void update(){
if(!building) return;