public void SendBuildOrder(GameObject building, GameObject buildingGhost, Vector3 position, Quaternion quaternion, bool directOrder, bool postpone)
    {
        if (!postpone)
        {
            if (directOrder)
            {
                foreach (Order order in Orders)
                {
                    if (order.BuildingGhost)
                    {
                        order.BuildingGhost.GetComponent <BuildingGhost>().NbWorkersAssigned--;
                    }
                }
                Orders.Clear();
            }

            SendMessage("StopAction");
            UnitBuildScript.Build(building, buildingGhost, position);
        }
        else
        {
            buildingGhost.GetComponent <BuildingGhost>().NbWorkersAssigned++;
            Orders.AddLast(new Order(OrderName.Build0, position, building.GetComponent <RTSGameObject>(), buildingGhost));
        }
    }
 public override bool doingNothing()
 {
     return(!MoveScript.isInAction() && !UnitBuildScript.isInAction());
 }