public SetBuildingToConstruct ( GameObject b ) : void | ||
b | GameObject | |
return | void |
public void SetBuildingToConstruct(GameObject b)
{
buildingToConstruct = b;
Collider c = buildingToConstruct.GetComponent<Collider>();
if (c != null)
{
dist = c.bounds.extents.magnitude;//.size.magnitude / 2;
}
}