public override bool Interactable(GameObject other) { if (!IsActivated()) { return(false); } var blockComponent = other.gameObject.GetComponent <Block>(); return(blockComponent && blockComponent.IsLot() && blockComponent.IsVacant() && blockComponent.IsInteractable() && CityDocks.Get().CanBuildADock() && GetCandidate(other) != null); }
private bool CanConstructDocks() { return(CityDocks.Get().CanBuildADock()); }